Skip to content

Commit 73f6f87

Browse files
committed
Found missing primaryParticles in MCReco and added it
1 parent dc20981 commit 73f6f87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PWGCF/Flow/Tasks/flowSP.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,10 @@ struct FlowSP {
14961496
histos.fill(HIST("hTrackCount"), trackSel_ZeroCharge);
14971497

14981498
fillMCPtHistos<kBefore, kReco>(track, mcParticle.pdgCode(), centrality);
1499+
1500+
if (!mcParticle.isPhysicalPrimary())
1501+
continue;
1502+
14991503
bool pos = (track.sign() > 0) ? true : false;
15001504

15011505
fillPrimaryHistos<kBefore>(mcParticle, centrality);

0 commit comments

Comments
 (0)