Skip to content

Commit 00dbad6

Browse files
JStaaalibuild
andauthored
[PWGCF] Changed the Partition to slice by MC collision index (#10935)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 76cb914 commit 00dbad6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGCF/MultiparticleCorrelations/Tasks/threeParticleCorrelations.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,11 +470,13 @@ struct ThreeParticleCorrelations {
470470
// End of the MC Mixed-events Correlations
471471
}
472472

473-
void processMCGen(MyFilteredMCGenCollision const&, MyFilteredMCParticles const&)
473+
void processMCGen(MyFilteredMCGenCollision const& collision, MyFilteredMCParticles const&)
474474
{
475475

476+
auto groupMCParticles = mcParticles->sliceByCached(aod::mcparticle::mcCollisionId, collision.globalIndex(), cache);
477+
476478
// Start of the Monte-Carlo generated QA
477-
for (const auto& particle : mcParticles) {
479+
for (const auto& particle : groupMCParticles) {
478480
if (particle.isPhysicalPrimary()) {
479481

480482
// Efficiency - Generated

0 commit comments

Comments
 (0)