Skip to content

Commit 1a9c6e6

Browse files
committed
Added switch for sel8 selection
1 parent fba90a7 commit 1a9c6e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGLF/Tasks/Resonances/kstar892LightIon.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ struct Kstar892LightIon {
7979
struct : ConfigurableGroup {
8080
// Configurables for event selections
8181
Configurable<float> cfgVrtxZCut{"cfgVrtxZCut", 10.0f, "Accepted z-vertex range (cm)"};
82+
Configurable<bool> isApplysel8{"isApplysel8", true, "Apply sel8 event selection"};
8283
Configurable<bool> isTriggerTVX{"isTriggerTVX", true, "TriggerTVX"};
8384
Configurable<bool> isGoodZvtxFT0vsPV{"isGoodZvtxFT0vsPV", true, "IsGoodZvtxFT0vsPV"};
8485
Configurable<bool> isApplyOccCut{"isApplyOccCut", false, "Apply occupancy cut"};
@@ -222,7 +223,7 @@ struct Kstar892LightIon {
222223
std::vector<std::string> eveCutLabels = {
223224
"All Events",
224225
Form("|Vz| < %.1f", selectionConfig.cfgVrtxZCut.value),
225-
"sel8",
226+
std::string("sel8") + check(selectionConfig.isApplysel8.value),
226227
std::string("kNoTimeFrameBorder") + check(selectionConfig.isNoTimeFrameBorder.value),
227228
std::string("kNoITSROFrameBorder") + check(selectionConfig.isNoITSROFrameBorder.value),
228229
std::string("kIsTriggerTVX") + check(selectionConfig.isTriggerTVX.value),
@@ -371,7 +372,7 @@ struct Kstar892LightIon {
371372
if (fillHist)
372373
hEventSelection.fill(HIST("hEventCut"), 1);
373374

374-
if (!collision.sel8())
375+
if (selectionConfig.isApplysel8 && !collision.sel8())
375376
return false;
376377
if (fillHist)
377378
hEventSelection.fill(HIST("hEventCut"), 2);

0 commit comments

Comments
 (0)