Skip to content

Commit ad6693a

Browse files
authored
add switch to count all or only negative tracks
1 parent e5d1eb6 commit ad6693a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGLF/TableProducer/Nuspex/ebyeMaker.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ struct EbyeMaker {
201201
Configurable<float> etaMaxV0dau{"etaMaxV0dau", 0.8f, "maximum eta V0 daughters"};
202202
Configurable<float> outerPIDMin{"outerPIDMin", -4.f, "minimum outer PID"};
203203

204+
Configurable<bool> countOnlyNeg{"countOnlyNeg", false, "count only negative charged particles in the event"};
204205
Configurable<bool> useAllEvSel{"useAllEvSel", false, "use additional event selections fo run 3 analyses"};
205206
Configurable<uint8_t> triggerCut{"triggerCut", 0x0, "trigger cut to select"};
206207
Configurable<bool> kINT7Intervals{"kINT7Intervals", false, "toggle kINT7 trigger selection in the 10-30% and 50-90% centrality intervals (2018 Pb-Pb)"};
@@ -571,7 +572,7 @@ struct EbyeMaker {
571572
continue;
572573
}
573574
histos.fill(HIST("QA/tpcSignal"), track.tpcInnerParam(), track.tpcSignal());
574-
if (trackPt > ptMin[0] && trackPt < ptMax[0])
575+
if (trackPt > ptMin[0] && trackPt < ptMax[0] && ((countOnlyNeg && track.sign() < 0) || !countOnlyNeg))
575576
nTracksColl++;
576577

577578
for (int iP{0}; iP < kNpart; ++iP) {

0 commit comments

Comments
 (0)