Skip to content

Commit 4e48261

Browse files
authored
Copying of index bindings (#5000)
1 parent 1bb0a22 commit 4e48261

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Analysis/Tutorials/src/compatibleBCs.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ T getCompatibleBCs(aod::Collision const& collision, T const& bcs)
5151

5252
LOGF(INFO, "Will consider BC entries from %d to %d", minBCId, maxBCId);
5353

54-
return T{{bcs.asArrowTable()->Slice(minBCId, maxBCId - minBCId + 1)}, (uint64_t)minBCId};
54+
T slice{{bcs.asArrowTable()->Slice(minBCId, maxBCId - minBCId + 1)}, (uint64_t)minBCId};
55+
bcs.copyIndexBindings(slice);
56+
return slice;
5557
}
5658

5759
// Example 1 (academic, because it is not enough to just access the BC table):
@@ -82,8 +84,6 @@ struct CompatibleT0V0A {
8284
LOGF(INFO, "Vertex with most probable BC %llu and collision time %f +- %f ps", bc.globalBC(), collision.collisionTime(), collision.collisionTimeRes());
8385

8486
auto bcSlice = getCompatibleBCs(collision, bct0s);
85-
// TODO move to getCompatibleBCs
86-
bcSlice.bindExternalIndices(&ft0s, &fv0as);
8787

8888
for (auto& bc : bcSlice) {
8989
if (bc.has_ft0() && bc.has_fv0a()) {

0 commit comments

Comments
 (0)