Skip to content

Commit ff658d9

Browse files
authored
[PWGLF] add switch to count only negative tracks (#12754)
1 parent 9e7df81 commit ff658d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGLF/TableProducer/Nuspex/ebyeMaker.cxx

Lines changed: 4 additions & 4 deletions
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> countOnlyNegTrk{"countOnlyNegTrk", false, "count only negative tracks in Ntracks"};
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)"};
@@ -256,7 +257,6 @@ struct EbyeMaker {
256257
Configurable<float> antidItsClsSizeCut{"antidItsClsSizeCut", 1.e-10f, "cluster size cut for antideuterons"};
257258
Configurable<float> antidPtItsClsSizeCut{"antidPtItsClsSizeCut", 10.f, "pt for cluster size cut for antideuterons"};
258259

259-
Configurable<float> trklEtaMax{"trklEtaMax", 0.8f, "maximum eta for run 2 tracklets"};
260260
Configurable<LabeledArray<float>> cfgTrackSels{"cfgTrackSels", {kTrackSels, 1, 12, particleName, trackSelsNames}, "Track selections"};
261261

262262
std::array<float, kNpart> ptMin;
@@ -553,9 +553,9 @@ struct EbyeMaker {
553553

554554
std::array<float, 2> dcaInfo;
555555
for (const auto& track : tracks) {
556-
if (track.trackType() == o2::aod::track::TrackTypeEnum::Run2Tracklet && std::abs(track.eta()) < trklEtaMax && !(doprocessRun3 || doprocessMcRun3)) { // tracklet
556+
if (track.trackType() == o2::aod::track::TrackTypeEnum::Run2Tracklet && std::abs(track.eta()) < etaMax && !(doprocessRun3 || doprocessMcRun3)) { // tracklet
557557
nTrackletsColl++;
558-
} else if (std::abs(track.eta()) < trklEtaMax && track.itsNCls() > 3 && (doprocessRun3 || doprocessMcRun3)) { // ITS only + global tracks
558+
} else if (std::abs(track.eta()) < etaMax && track.itsNCls() > 3 && (doprocessRun3 || doprocessMcRun3)) { // ITS only + global tracks
559559
nTrackletsColl++;
560560
}
561561
if (!selectTrack(track)) {
@@ -571,7 +571,7 @@ struct EbyeMaker {
571571
continue;
572572
}
573573
histos.fill(HIST("QA/tpcSignal"), track.tpcInnerParam(), track.tpcSignal());
574-
if (trackPt > ptMin[0] && trackPt < ptMax[0])
574+
if (trackPt > ptMin[0] && trackPt < ptMax[0] && ((track.sign() < 0 && countOnlyNegTrk) || !countOnlyNegTrk))
575575
nTracksColl++;
576576

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

0 commit comments

Comments
 (0)