Skip to content

Commit 103e3e1

Browse files
authored
add pt cuts for mixing
1 parent 266e80d commit 103e3e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PWGLF/TableProducer/Nuspex/ebyeMaker.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ struct EbyeMaker {
257257
Configurable<float> antidPtItsClsSizeCut{"antidPtItsClsSizeCut", 10.f, "pt for cluster size cut for antideuterons"};
258258

259259
Configurable<float> trklEtaMax{"trklEtaMax", 0.8f, "maximum eta for run 2 tracklets"};
260+
Configurable<bool> ptCutForMixing{"ptCutForMixing", true, "toggle pt range to select global tracks for mixing"};
260261
Configurable<LabeledArray<float>> cfgTrackSels{"cfgTrackSels", {kTrackSels, 1, 12, particleName, trackSelsNames}, "Track selections"};
261262

262263
std::array<float, kNpart> ptMin;
@@ -571,7 +572,9 @@ struct EbyeMaker {
571572
continue;
572573
}
573574
histos.fill(HIST("QA/tpcSignal"), track.tpcInnerParam(), track.tpcSignal());
574-
575+
if ((trackPt < ptMin[0] || trackPt > ptMax[0]) && ptCutForMixing) {
576+
continue;
577+
}
575578
nTracksColl++;
576579

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

0 commit comments

Comments
 (0)