Skip to content

Commit f991e08

Browse files
EloviyoShirajum Monira
andauthored
[PWGCF] FemtoUniverse cascade task -- to fill output cascades for mc truth (#9686)
Co-authored-by: Shirajum Monira <shirajum.monira@cernch>
1 parent 41e9d8b commit f991e08

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,17 +1657,29 @@ struct FemtoUniverseProducerTask {
16571657
tmpIDtrack.push_back(particle.globalIndex());
16581658
continue;
16591659
}
1660-
outputParts(outputCollision.lastIndex(),
1661-
particle.pt(),
1662-
particle.eta(),
1663-
particle.phi(),
1664-
aod::femtouniverseparticle::ParticleType::kMCTruthTrack,
1665-
0,
1666-
pdgCode,
1667-
pdgCode,
1668-
childIDs,
1669-
0,
1670-
0);
1660+
if (!confIsActivateCascade) {
1661+
outputParts(outputCollision.lastIndex(),
1662+
particle.pt(),
1663+
particle.eta(),
1664+
particle.phi(),
1665+
aod::femtouniverseparticle::ParticleType::kMCTruthTrack,
1666+
0,
1667+
pdgCode,
1668+
pdgCode,
1669+
childIDs,
1670+
0,
1671+
0);
1672+
} else {
1673+
outputCascParts(outputCollision.lastIndex(),
1674+
particle.pt(),
1675+
particle.eta(),
1676+
particle.phi(),
1677+
aod::femtouniverseparticle::ParticleType::kMCTruthTrack,
1678+
0,
1679+
pdgCode,
1680+
pdgCode,
1681+
childIDs, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
1682+
}
16711683
if (confIsDebug) {
16721684
fillDebugParticle<false, true, false>(particle);
16731685
}

0 commit comments

Comments
 (0)