Skip to content

Commit a0f4b20

Browse files
authored
add variable to control the charge of tracks counted
1 parent df88af4 commit a0f4b20

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<short> cutChargeNtracks{"cutChargeNtracks", "-2", "lower value of the track charge to add in the output counter variable"};
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] && track.sign() > cutChargeNtracks)
575576
nTracksColl++;
576577

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

0 commit comments

Comments
 (0)