Skip to content

Commit 9ae227e

Browse files
authored
[PWGCF] Flow-decorrelations ITS layers (#15511)
1 parent aff3c9d commit 9ae227e

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

PWGCF/TwoParticleCorrelations/Tasks/flowDecorrelation.cxx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ struct FlowDecorrelation {
8787
O2_DEFINE_CONFIGURABLE(cfgEvSelkIsGoodZvtxFT0vsPV, bool, false, "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")
8888
O2_DEFINE_CONFIGURABLE(cfgEvSelkNoCollInTimeRangeStandard, bool, false, "no collisions in specified time range")
8989
O2_DEFINE_CONFIGURABLE(cfgEvSelkIsGoodITSLayersAll, bool, true, "cut time intervals with dead ITS staves")
90+
O2_DEFINE_CONFIGURABLE(cfgEvSelkIsGoodITSLayer0123, bool, false, "cut time intervals with dead ITS staves (layers 0-3 only, for pp)")
9091
O2_DEFINE_CONFIGURABLE(cfgEvSelkNoCollInRofStandard, bool, false, "no other collisions in this Readout Frame with per-collision multiplicity above threshold")
9192
O2_DEFINE_CONFIGURABLE(cfgEvSelkNoHighMultCollInPrevRof, bool, false, "veto an event if FT0C amplitude in previous ITS ROF is above threshold")
9293
O2_DEFINE_CONFIGURABLE(cfgEvSelMultCorrelation, bool, true, "Multiplicity correlation cut")
@@ -252,19 +253,20 @@ struct FlowDecorrelation {
252253
LOGF(info, "Starting init");
253254
// Event Counter
254255
if ((doprocessSameTpcFt0a || doprocessSameTpcFt0c || doprocessSameFt0aFt0c || doprocessSameTpcMft || doprocessSameTpcFv0) && cfgUseAdditionalEventCut) {
255-
registry.add("hEventCountSpecific", "Number of Event;; Count", {HistType::kTH1D, {{12, 0, 12}}});
256+
registry.add("hEventCountSpecific", "Number of Event;; Count", {HistType::kTH1D, {{13, 0, 13}}});
256257
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(1, "after sel8");
257258
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(2, "kNoSameBunchPileup");
258259
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(3, "kNoITSROFrameBorder");
259260
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(4, "kNoTimeFrameBorder");
260261
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(5, "kIsGoodZvtxFT0vsPV");
261262
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(6, "kNoCollInTimeRangeStandard");
262263
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(7, "kIsGoodITSLayersAll");
263-
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(8, "kNoCollInRofStandard");
264-
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(9, "kNoHighMultCollInPrevRof");
265-
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(10, "occupancy");
266-
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(11, "MultCorrelation");
267-
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(12, "cfgEvSelV0AT0ACut");
264+
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(8, "kIsGoodITSLayer0123");
265+
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(9, "kNoCollInRofStandard");
266+
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(10, "kNoHighMultCollInPrevRof");
267+
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(11, "occupancy");
268+
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(12, "MultCorrelation");
269+
registry.get<TH1>(HIST("hEventCountSpecific"))->GetXaxis()->SetBinLabel(13, "cfgEvSelV0AT0ACut");
268270
}
269271

270272
if (cfgEvSelMultCorrelation) {
@@ -917,23 +919,29 @@ struct FlowDecorrelation {
917919
}
918920
if (fillCounter && cfgEvSelkIsGoodITSLayersAll)
919921
registry.fill(HIST("hEventCountSpecific"), 6.5);
922+
if (cfgEvSelkIsGoodITSLayer0123 && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayer0123)) {
923+
// for pp: cut time intervals with dead ITS staves on layers 0-3 only
924+
return 0;
925+
}
926+
if (fillCounter && cfgEvSelkIsGoodITSLayer0123)
927+
registry.fill(HIST("hEventCountSpecific"), 7.5);
920928
if (cfgEvSelkNoCollInRofStandard && !collision.selection_bit(o2::aod::evsel::kNoCollInRofStandard)) {
921929
// no other collisions in this Readout Frame with per-collision multiplicity above threshold
922930
return 0;
923931
}
924932
if (fillCounter && cfgEvSelkNoCollInRofStandard)
925-
registry.fill(HIST("hEventCountSpecific"), 7.5);
933+
registry.fill(HIST("hEventCountSpecific"), 8.5);
926934
if (cfgEvSelkNoHighMultCollInPrevRof && !collision.selection_bit(o2::aod::evsel::kNoHighMultCollInPrevRof)) {
927935
// veto an event if FT0C amplitude in previous ITS ROF is above threshold
928936
return 0;
929937
}
930938
if (fillCounter && cfgEvSelkNoHighMultCollInPrevRof)
931-
registry.fill(HIST("hEventCountSpecific"), 8.5);
939+
registry.fill(HIST("hEventCountSpecific"), 9.5);
932940
auto occupancy = collision.trackOccupancyInTimeRange();
933941
if (cfgEvSelOccupancy && (occupancy < cfgCutOccupancyLow || occupancy > cfgCutOccupancyHigh))
934942
return 0;
935943
if (fillCounter && cfgEvSelOccupancy)
936-
registry.fill(HIST("hEventCountSpecific"), 9.5);
944+
registry.fill(HIST("hEventCountSpecific"), 10.5);
937945

938946
auto multNTracksPV = collision.multNTracksPV();
939947
if (cfgEvSelMultCorrelation) {
@@ -963,14 +971,14 @@ struct FlowDecorrelation {
963971
}
964972
}
965973
if (fillCounter && cfgEvSelMultCorrelation)
966-
registry.fill(HIST("hEventCountSpecific"), 10.5);
974+
registry.fill(HIST("hEventCountSpecific"), 11.5);
967975

968976
// V0A T0A 5 sigma cut
969977
float sigma = 5.0;
970978
if (cfgEvSelV0AT0ACut && (std::fabs(collision.multFV0A() - cfgFuncParas.fT0AV0AMean->Eval(collision.multFT0A())) > sigma * cfgFuncParas.fT0AV0ASigma->Eval(collision.multFT0A())))
971979
return 0;
972980
if (fillCounter && cfgEvSelV0AT0ACut)
973-
registry.fill(HIST("hEventCountSpecific"), 11.5);
981+
registry.fill(HIST("hEventCountSpecific"), 12.5);
974982

975983
return 1;
976984
}

0 commit comments

Comments
 (0)