Skip to content

Commit 722eaa4

Browse files
authored
[PWGLF,PWGMM] Undo preslice in MC reassociation (#17286)
1 parent e40292b commit 722eaa4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3939,7 +3939,7 @@ struct DndetaMFTPbPb {
39393939
}
39403940
}
39413941

3942-
if (ids.size() > 0) {
3942+
if (!ids.empty()) {
39433943
if (ids.size() == 1) {
39443944
registry.fill(HIST("TimeAssocMC/hVTXkSelNonAmb"), deltaXv2, deltaYv2, deltaZv2);
39453945
registry.fill(HIST("TimeAssocMC/hAmbTrkTypeAssocFlag"), static_cast<int>(AmbTrkTypeAssocFlag::kSelNonAmb));
@@ -4445,8 +4445,6 @@ struct DndetaMFTPbPb {
44454445

44464446
PROCESS_SWITCH(DndetaMFTPbPb, processAssocMC, "Process collision-association information, requires extra table from TrackToCollisionAssociation task (fillTableOfCollIdsPerTrack=true)", false);
44474447

4448-
PresliceUnsorted<BestTracks3dWCollsMC> perColBest = aod::fwdtrack::bestCollisionId;
4449-
44504448
template <typename C, typename B>
44514449
void processReAssocMC(typename soa::Join<C, aod::McCollisionLabels> const& collisions,
44524450
B const& besttracks,
@@ -4545,9 +4543,7 @@ struct DndetaMFTPbPb {
45454543
}
45464544
registry.fill(HIST("ReAssocMC/hReAssocMCEventStatus"), static_cast<int>(ReAssocMCEventStatus::kEvtReAsZVtxCutMC), crec, occ);
45474545

4548-
auto perCollisionASample = besttracks.sliceBy(perColBest, collision.globalIndex());
4549-
for (auto const& atrack : perCollisionASample) {
4550-
// for (auto const& atrack : besttracks) {
4546+
for (auto const& atrack : besttracks) {
45514547
registry.fill(HIST("ReAssocMC/hReAssocMCTrackStatus"), static_cast<int>(ReAssocMCTrackStatus::kTrkReAssocAll), crec, occ);
45524548
if (!isBestTrackSelected<true>(atrack)) {
45534549
continue;

0 commit comments

Comments
 (0)