Skip to content

Commit 144bfce

Browse files
authored
[PWGCF] d-pt flow event cuts (#14072)
1 parent 00ea7e0 commit 144bfce

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

PWGCF/Flow/Tasks/flowGfwEse.cxx

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ struct FlowGfwEse {
244244
O2_DEFINE_CONFIGURABLE(cfgAnalysisType, bool, true, "true for ese, false for mean-pT");
245245
const std::string shapesel = cfgAnalysisType ? "ese" : "mpt";
246246
static constexpr int EseBins = 100;
247+
static constexpr float MeanPtThr = -998.0;
247248

248249
// region indices for consistency flag
249250
int posRegionIndex = -1;
@@ -628,7 +629,7 @@ struct FlowGfwEse {
628629
return 0;
629630
}
630631
registry.fill(HIST("eventQA/eventSel"), kTVXTRD);
631-
if (cfgRunByRun)
632+
if (cfgRunByRun && run != -1)
632633
th1sList[run][hEventSel]->Fill(kTVXTRD);
633634
}
634635
if (cfgNoSameBunchPileupCut) {
@@ -638,7 +639,7 @@ struct FlowGfwEse {
638639
return 0;
639640
}
640641
registry.fill(HIST("eventQA/eventSel"), kNoSamebunchPU);
641-
if (cfgRunByRun)
642+
if (cfgRunByRun && run != -1)
642643
th1sList[run][hEventSel]->Fill(kNoSamebunchPU);
643644
}
644645
if (cfgIsGoodZvtxFT0vsPV) {
@@ -648,7 +649,7 @@ struct FlowGfwEse {
648649
return 0;
649650
}
650651
registry.fill(HIST("eventQA/eventSel"), kZVtxFT0PV);
651-
if (cfgRunByRun)
652+
if (cfgRunByRun && run != -1)
652653
th1sList[run][hEventSel]->Fill(kZVtxFT0PV);
653654
}
654655
if (cfgNoCollInTimeRangeStandard) {
@@ -657,7 +658,7 @@ struct FlowGfwEse {
657658
return 0;
658659
}
659660
registry.fill(HIST("eventQA/eventSel"), kNoCollTRStd);
660-
if (cfgRunByRun)
661+
if (cfgRunByRun && run != -1)
661662
th1sList[run][hEventSel]->Fill(kNoCollTRStd);
662663
}
663664

@@ -667,7 +668,7 @@ struct FlowGfwEse {
667668
return 0;
668669
}
669670
registry.fill(HIST("eventQA/eventSel"), kVtxITSTPC);
670-
if (cfgRunByRun)
671+
if (cfgRunByRun && run != -1)
671672
th1sList[run][hEventSel]->Fill(kVtxITSTPC);
672673
}
673674

@@ -676,7 +677,7 @@ struct FlowGfwEse {
676677
return 0;
677678
}
678679
registry.fill(HIST("eventQA/eventSel"), kGoodITSLayers);
679-
if (cfgRunByRun)
680+
if (cfgRunByRun && run != -1)
680681
th1sList[run][hEventSel]->Fill(kGoodITSLayers);
681682
}
682683

@@ -715,7 +716,7 @@ struct FlowGfwEse {
715716
if (!(cfgGlobalAsideCorrCuts.cfgMultGlobalASideCorrCutFunction->empty()) && static_cast<double>(collision.multFT0A()) > fMultGlobalT0ACutHigh->Eval(multTrk))
716717
return 0;
717718
registry.fill(HIST("eventQA/eventSel"), kMultCuts);
718-
if (cfgRunByRun)
719+
if (cfgRunByRun && run != -1)
719720
th1sList[run][hEventSel]->Fill(kMultCuts);
720721
}
721722
return 1;
@@ -1200,18 +1201,34 @@ struct FlowGfwEse {
12001201
}
12011202
PROCESS_SWITCH(FlowGfwEse, processData, "Process analysis for non-derived data", true);
12021203

1203-
// void processMptq2(soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Cs, aod::CentFT0CVariant1s, aod::CentFT0Ms, aod::CentFV0As, aod::CentNTPVs, aod::CentNGlobals, aod::CentMFTs, aod::Qvectors, aod::QPercentileFT0Cs/*, aod::MeanPtShape*/>::iterator const& collision, aod::BCsWithTimestamps const&, GFWTracks const& tracks)
1204-
1205-
void processMptq2(soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Cs, aod::CentFT0CVariant1s, aod::CentFT0Ms, aod::CentFV0As, aod::CentNTPVs, aod::CentNGlobals, aod::CentMFTs, aod::Qvectors, aod::QPercentileFT0Cs, aod::MeanPtShapes, aod::MeanPts>>::iterator const& collision, aod::BCsWithTimestamps const& /*, GFWTracks const& tracks*/)
1204+
void processMptq2(soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Cs, aod::CentFT0CVariant1s, aod::CentFT0Ms, aod::CentFV0As, aod::CentNTPVs, aod::CentNGlobals, aod::CentMFTs, aod::Qvectors, aod::QPercentileFT0Cs, aod::MeanPtShapes, aod::MeanPts>>::iterator const& collision, aod::BCsWithTimestamps const&, GFWTracks const& tracks)
12061205
{
12071206
float count{0.5};
12081207
registry.fill(HIST("mptcorr/eventcounter"), count++);
1208+
if (!collision.sel8()) {
1209+
return;
1210+
}
1211+
registry.fill(HIST("mptcorr/eventcounter"), count++);
1212+
if (cfgDoOccupancySel) {
1213+
int occupancy = collision.trackOccupancyInTimeRange();
1214+
if (occupancy < 0 || occupancy > cfgOccupancySelection) {
1215+
return;
1216+
}
1217+
}
1218+
registry.fill(HIST("mptcorr/eventcounter"), count++);
1219+
12091220
const auto centr = collision.centFT0C();
12101221
const auto qPerc = collision.qPERCFT0C();
12111222
const auto mPt = collision.fMEANPTSHAPE();
12121223
const auto mPtv = collision.fMEANPT();
12131224
if (qPerc[0] < 0 || mPt[0] < 0)
12141225
return;
1226+
if (mPtv[0] < MeanPtThr)
1227+
return;
1228+
const XAxis xaxis{getCentrality(collision), tracks.size(), -1.0};
1229+
if (cfgUseAdditionalEventCut && !eventSelected(collision, xaxis.multiplicity, xaxis.centrality, -1))
1230+
return;
1231+
12151232
registry.fill(HIST("mptcorr/eventcounter"), count++);
12161233
registry.fill(HIST("mptcorr/h3_cent_q2_meanptperc"), centr, qPerc[0], mPt[0]);
12171234
registry.fill(HIST("mptcorr/h3_cent_q2_mptvalue"), centr, qPerc[0], mPtv[0]);

0 commit comments

Comments
 (0)