Skip to content

Commit 7b0f900

Browse files
[PWGHF] choose the correct way for gen. particles loop and filling (#8477)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 7fb7fa1 commit 7b0f900

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

PWGHF/D2H/Tasks/taskLc.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,10 +673,9 @@ struct HfTaskLc {
673673
for (const auto& collision : collisions) {
674674
// MC Rec.
675675
fillHistosMcRec<fillMl>(collision, candidates, mcParticles);
676-
// MC gen.
677-
auto mcParticlesPerColl = mcParticles.sliceBy(perMcCollision, collision.globalIndex());
678-
fillHistosMcGen(mcParticlesPerColl);
679676
}
677+
// MC gen.
678+
fillHistosMcGen(mcParticles);
680679
}
681680

682681
void processDataStd(Collisions const& collisions,

0 commit comments

Comments
 (0)