Skip to content

Commit d403037

Browse files
authored
[PWGCF] flow task: add kIsGoodITSLayersAll event selection (#9314)
1 parent 0ed052b commit d403037

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

PWGCF/Flow/Tasks/flowTask.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ struct FlowTask {
7777
O2_DEFINE_CONFIGURABLE(cfgEvSelkNoSameBunchPileup, bool, true, "rejects collisions which are associated with the same found-by-T0 bunch crossing")
7878
O2_DEFINE_CONFIGURABLE(cfgEvSelkIsGoodZvtxFT0vsPV, bool, true, "removes collisions with large differences between z of PV by tracks and z of PV from FT0 A-C time difference, use this cut at low multiplicities with caution")
7979
O2_DEFINE_CONFIGURABLE(cfgEvSelkNoCollInTimeRangeStandard, bool, true, "no collisions in specified time range")
80+
O2_DEFINE_CONFIGURABLE(cfgEvSelkIsGoodITSLayersAll, bool, true, "cut time intervals with dead ITS staves")
8081
O2_DEFINE_CONFIGURABLE(cfgEvSelMultCorrelation, bool, true, "Multiplicity correlation cut")
8182
O2_DEFINE_CONFIGURABLE(cfgEvSelV0AT0ACut, bool, true, "V0A T0A 5 sigma cut")
8283
O2_DEFINE_CONFIGURABLE(cfgGetInteractionRate, bool, false, "Get interaction rate from CCDB")
@@ -599,6 +600,11 @@ struct FlowTask {
599600
// no collisions in specified time range
600601
return 0;
601602
}
603+
if (cfgEvSelkIsGoodITSLayersAll && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) {
604+
// from Jan 9 2025 AOT meeting
605+
// cut time intervals with dead ITS staves
606+
return 0;
607+
}
602608
auto multNTracksPV = collision.multNTracksPV();
603609
auto occupancy = collision.trackOccupancyInTimeRange();
604610
if (cfgEvSelOccupancy && (occupancy < cfgCutOccupancyLow || occupancy > cfgCutOccupancyHigh))

PWGCF/GenericFramework/Core/GFWWeightsList.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ void GFWWeightsList::addGFWWeightsByName(const char* weightName, int nPtBins, do
4646
if (!list) {
4747
init("weightList");
4848
}
49+
if (reinterpret_cast<GFWWeights*>(list->FindObject(weightName))) {
50+
return;
51+
}
4952
GFWWeights* weight = new GFWWeights(weightName);
5053
weight->SetPtBins(nPtBins, ptBins);
5154
weight->Init(addData, addMC);
@@ -66,6 +69,9 @@ void GFWWeightsList::addGFWWeightsByRun(int runNumber, int nPtBins, double* ptBi
6669
if (!list) {
6770
init("weightList");
6871
}
72+
if (runNumerMap.contains(runNumber)) {
73+
return;
74+
}
6975
GFWWeights* weight = new GFWWeights(Form("weight_%d", runNumber));
7076
weight->SetPtBins(nPtBins, ptBins);
7177
weight->Init(addData, addMC);

0 commit comments

Comments
 (0)