Skip to content

Commit 4afd797

Browse files
jikim1290junleekim
andauthored
update for pileup study (#7797)
Co-authored-by: junleekim <junleekim@junleekimsMBP2.lan>
1 parent 1d9e7c6 commit 4afd797

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Common/Tasks/qVectorsCorrection.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ struct qVectorsCorrection {
7575
Configurable<bool> cfgQAFinal{"cfgQAFinal", false, "draw final q-vector steps"};
7676
Configurable<bool> cfgQAFlowStudy{"cfgQAFlowStudy", false, "configurable for flow study"};
7777
Configurable<bool> cfgQAOccupancyStudy{"cfgQAOccupancyStudy", false, "configurable for occupancy study"};
78+
Configurable<bool> cfgAddEvtSelPileup{"cfgAddEvtSelPileup", false, "configurable for pileup selection"};
7879

7980
Configurable<float> cfgMinPt{"cfgMinPt", 0.15, "Minimum transverse momentum for charged track"};
8081
Configurable<float> cfgMaxEta{"cfgMaxEta", 0.8, "Maximum pseudorapidiy for charged track"};
@@ -548,6 +549,9 @@ struct qVectorsCorrection {
548549
if (cfgAddEvtSel && (qVec.trackOccupancyInTimeRange() > cfgMaxOccupancy || qVec.trackOccupancyInTimeRange() < cfgMinOccupancy)) {
549550
return;
550551
}
552+
if (cfgAddEvtSelPileup && !qVec.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard)) {
553+
return;
554+
}
551555

552556
for (uint i = 0; i < cfgnMods->size(); i++) {
553557
fillHistosQvec(qVec, cfgnMods->at(i));

0 commit comments

Comments
 (0)