Skip to content

Commit 84cc3ed

Browse files
author
Emil Gorm Nielsen
committed
Added kIsGoodITSLayersAll
1 parent 7f394db commit 84cc3ed

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ struct GenericFramework {
104104
O2_DEFINE_CONFIGURABLE(cfgOccupancySelection, int, -999, "Max occupancy selection, -999 to disable");
105105
O2_DEFINE_CONFIGURABLE(cfgNoSameBunchPileupCut, bool, true, "kNoSameBunchPileupCut");
106106
O2_DEFINE_CONFIGURABLE(cfgIsGoodZvtxFT0vsPV, bool, true, "kIsGoodZvtxFT0vsPV");
107+
O2_DEFINE_CONFIGURABLE(cfgIsGoodITSLayersAll, bool, true, "kIsGoodITSLayersAll");
107108
O2_DEFINE_CONFIGURABLE(cfgNoCollInTimeRangeStandard, bool, true, "kNoCollInTimeRangeStandard");
108109
O2_DEFINE_CONFIGURABLE(cfgDoOccupancySel, bool, true, "Bool for event selection on detector occupancy");
109110
O2_DEFINE_CONFIGURABLE(cfgMultCut, bool, true, "Use additional evenr cut on mult correlations");
@@ -267,8 +268,9 @@ struct GenericFramework {
267268
registry.get<TH1>(HIST("eventQA/eventSel"))->GetXaxis()->SetBinLabel(6, "kIsGoodZvtxFT0vsPV");
268269
registry.get<TH1>(HIST("eventQA/eventSel"))->GetXaxis()->SetBinLabel(7, "kNoCollInTimeRangeStandard");
269270
registry.get<TH1>(HIST("eventQA/eventSel"))->GetXaxis()->SetBinLabel(8, "kIsVertexITSTPC");
270-
registry.get<TH1>(HIST("eventQA/eventSel"))->GetXaxis()->SetBinLabel(9, "after Mult cuts");
271-
registry.get<TH1>(HIST("eventQA/eventSel"))->GetXaxis()->SetBinLabel(10, "has track + within cent");
271+
registry.get<TH1>(HIST("eventQA/eventSel"))->GetXaxis()->SetBinLabel(9, "kIsGoodITSLayersAll");
272+
registry.get<TH1>(HIST("eventQA/eventSel"))->GetXaxis()->SetBinLabel(10, "after Mult cuts");
273+
registry.get<TH1>(HIST("eventQA/eventSel"))->GetXaxis()->SetBinLabel(11, "has track + within cent");
272274
}
273275

274276
if (regions.GetSize() < 0)
@@ -538,6 +540,13 @@ struct GenericFramework {
538540
}
539541
registry.fill(HIST("eventQA/eventSel"), 7.5);
540542
}
543+
544+
if (cfgIsGoodITSLayersAll) {
545+
if (!collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) {
546+
return 0;
547+
}
548+
registry.fill(HIST("eventQA/eventSel"), 8.5);
549+
}
541550
float vtxz = -999;
542551
if (collision.numContrib() > 1) {
543552
vtxz = collision.posZ();
@@ -560,7 +569,7 @@ struct GenericFramework {
560569
return 0;
561570
if (multTrk > fMultCutHigh->Eval(centrality))
562571
return 0;
563-
registry.fill(HIST("eventQA/eventSel"), 8.5);
572+
registry.fill(HIST("eventQA/eventSel"), 9.5);
564573
/* 22s
565574
if (multNTracksPV < fMultPVCutLow->Eval(centrality))
566575
return 0;
@@ -701,7 +710,7 @@ struct GenericFramework {
701710
return;
702711
if (centrality < centbinning.front() || centrality > centbinning.back())
703712
return;
704-
registry.fill(HIST("eventQA/eventSel"), 9.5);
713+
registry.fill(HIST("eventQA/eventSel"), 10.5);
705714
float vtxz = collision.posZ();
706715
fGFW->Clear();
707716
fFCpt->clearVector();

0 commit comments

Comments
 (0)