Skip to content

Commit 366cf21

Browse files
jikim1290junleekim
andauthored
add flag for event selections (AliceO2Group#7908)
Co-authored-by: junleekim <[email protected]>
1 parent 539c390 commit 366cf21

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PWGLF/Tasks/Strangeness/lambdapolarization.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ struct lambdapolarization {
8787
Configurable<float> cfgCentSel{"cfgCentSel", 80., "Centrality selection"};
8888
Configurable<int> cfgCentEst{"cfgCentEst", 1, "Centrality estimator, 1: FT0C, 2: FT0M"};
8989

90+
Configurable<bool> cfgPVSel{"cfgPVSel", false, "Additional PV selection flag for syst"};
91+
Configurable<float> cfgPV{"cfgPV", 8.0, "Additional PV selection range for syst"};
92+
Configurable<bool> cfgAddEvtSelPileup{"cfgAddEvtSelPileup", false, "flag for additional pileup selection"};
93+
9094
Configurable<float> cfgv0radiusMin{"cfgv0radiusMin", 1.2, "minimum decay radius"};
9195
Configurable<float> cfgDCAPosToPVMin{"cfgDCAPosToPVMin", 0.05, "minimum DCA to PV for positive track"};
9296
Configurable<float> cfgDCANegToPVMin{"cfgDCANegToPVMin", 0.2, "minimum DCA to PV for negative track"};
@@ -274,6 +278,12 @@ struct lambdapolarization {
274278
if (!collision.selection_bit(aod::evsel::kNoSameBunchPileup)) {
275279
return 0;
276280
}
281+
if (cfgPVSel && std::abs(collision.posZ()) > cfgPV) {
282+
return 0;
283+
}
284+
if (cfgAddEvtSelPileup && !collision.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard)) {
285+
return 0;
286+
}
277287

278288
return 1;
279289
} // event selection

0 commit comments

Comments
 (0)