Skip to content

Commit 20a2474

Browse files
authored
[PWGLF] add configurable to skip triggered samples (#9250)
1 parent c38e4b3 commit 20a2474

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PWGLF/TableProducer/Nuspex/ebyeMaker.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ struct ebyeMaker {
240240
Configurable<bool> fillOnlySignal{"fillOnlySignal", false, "fill histograms only for true signal candidates (MC)"};
241241
Configurable<std::string> genName{"genname", "", "Genearator name: HIJING, PYTHIA8, ... Default: \"\""};
242242

243+
Configurable<uint8_t> triggerCut{"triggerCut", 0x0, "trigger cut to select"};
243244
Configurable<bool> kINT7Intervals{"kINT7Intervals", false, "toggle kINT7 trigger selection in the 10-30% and 50-90% centrality intervals (2018 Pb-Pb)"};
244245
Configurable<bool> kUseTPCPileUpCut{"kUseTPCPileUpCut", false, "toggle strong correlation cuts (Run 2)"};
245246
Configurable<bool> kUseEstimatorsCorrelationCut{"kUseEstimatorsCorrelationCut", false, "toggle cut on the correlation between centrality estimators (2018 Pb-Pb)"};
@@ -1175,6 +1176,9 @@ struct ebyeMaker {
11751176
if (trigger == 0x0) {
11761177
continue;
11771178
}
1179+
if (triggerCut != 0x0 && (trigger & triggerCut) != triggerCut) {
1180+
continue;
1181+
}
11781182
miniCollTable(static_cast<int8_t>(collision.posZ() * 10), trigger, nTrackletsColl, cV0M);
11791183

11801184
for (auto& candidateTrack : candidateTracks[0]) { // protons

0 commit comments

Comments
 (0)