Skip to content

Commit ea22be9

Browse files
committed
moved fillIsPrimary before selecting primaries
1 parent 4509764 commit ea22be9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PWGCF/Flow/Tasks/flowSP.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,14 +1496,13 @@ struct FlowSP {
14961496
histos.fill(HIST("hTrackCount"), trackSel_ZeroCharge);
14971497

14981498
fillMCPtHistos<kBefore, kReco>(track, mcParticle.pdgCode(), centrality);
1499+
fillPrimaryHistos<kBefore>(mcParticle, centrality);
14991500

15001501
if (!mcParticle.isPhysicalPrimary())
15011502
continue;
15021503

15031504
bool pos = (track.sign() > 0) ? true : false;
15041505

1505-
fillPrimaryHistos<kBefore>(mcParticle, centrality);
1506-
15071506
// This neglects PID (for now) later use getPID like in data.
15081507
if (cfgFillQABefore) {
15091508
fillAllQA<kBefore, kUnidentified>(track, vtxz, centrality, pos);

0 commit comments

Comments
 (0)