Skip to content

Commit 33ef972

Browse files
authored
[PWGLF] NPV-based rejection for light-ion data (#12537)
1 parent 0dfdc43 commit 33ef972

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

PWGLF/Tasks/GlobalEventProperties/uccZdc.cxx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ struct UccZdc {
227227
const char* tiT0C{"T0C (#times 1/100, -3.3 < #eta < -2.1)"};
228228
const char* tiT0M{"T0A+T0C (#times 1/100, -3.3 < #eta < -2.1 and 3.5 < #eta < 4.9)"};
229229
const char* tiNch{"#it{N}_{ch} (|#eta| < 0.8)"};
230+
const char* tiNPV{"#it{N}_{PV} (|#eta|<1)"};
230231
const char* tiV0A{"V0A (#times 1/100, 2.2 < #eta < 5)"};
231232
const char* tiZNs{"ZNA + ZNC"};
232233
const char* tiZPs{"ZPA + ZPC"};
@@ -250,6 +251,7 @@ struct UccZdc {
250251
registry.add("ExcludedEvtVsFT0M", Form(";%s;Entries;", tiT0M), kTH1F, {{nBinsAmpFT0, 0., maxAmpFT0}});
251252
registry.add("ExcludedEvtVsFV0A", Form(";%s;Entries;", tiT0M), kTH1F, {{nBinsAmpV0A, 0., maxAmpV0A}});
252253
registry.add("ExcludedEvtVsNch", Form(";%s;Entries;", tiNch), kTH1F, {{nBinsNch, minNch, maxNch}});
254+
registry.add("ExcludedEvtVsNPV", Form(";%s;Entries;", tiNPV), kTH1F, {{nBinsITSTrack, 0, maxITSTrack}});
253255
registry.add("Nch", Form(";%s;Entries;", tiNch), kTH1F, {{nBinsNch, minNch, maxNch}});
254256
registry.add("NchVsOneParCorr", Form(";%s;%s;", tiNch, tiOneParCorr), kTProfile, {{nBinsNch, minNch, maxNch}});
255257

@@ -549,6 +551,7 @@ struct UccZdc {
549551
}
550552
}
551553

554+
const double nPV{collision.multNTracksPVeta1() / 1.};
552555
const double normT0M{(aT0A + aT0C) / 100.};
553556
const double normV0A{aV0A / 100.};
554557
const double normT0A{aT0A / 100.};
@@ -619,6 +622,9 @@ struct UccZdc {
619622
if (s1 == "V0A") {
620623
xEval = normV0A;
621624
}
625+
if (s1 == "NPV") {
626+
xEval = nPV;
627+
}
622628

623629
const int bin4Calibration{cfgNch.hMeanNch->FindBin(xEval)};
624630
const double meanNch{cfgNch.hMeanNch->GetBinContent(bin4Calibration)};
@@ -630,6 +636,7 @@ struct UccZdc {
630636
registry.fill(HIST("ExcludedEvtVsFT0M"), normT0M);
631637
registry.fill(HIST("ExcludedEvtVsFV0A"), normV0A);
632638
registry.fill(HIST("ExcludedEvtVsNch"), glbTracks);
639+
registry.fill(HIST("ExcludedEvtVsNPV"), nPV);
633640
skipEvent = true;
634641
}
635642
}
@@ -725,6 +732,7 @@ struct UccZdc {
725732
}
726733
}
727734

735+
const double nPV{collision.multNTracksPVeta1() / 1.};
728736
const double normT0M{(aT0A + aT0C) / 100.};
729737
const double normV0A{aV0A / 100.};
730738
float znA{foundBC.zdc().amplitudeZNA()};
@@ -802,6 +810,9 @@ struct UccZdc {
802810
if (s1 == "V0A") {
803811
xEval = normV0A;
804812
}
813+
if (s1 == "NPV") {
814+
xEval = nPV;
815+
}
805816

806817
const int bin4Calibration{cfgNch.hMeanNch->FindBin(xEval)};
807818
const double meanNch{cfgNch.hMeanNch->GetBinContent(bin4Calibration)};
@@ -813,6 +824,7 @@ struct UccZdc {
813824
registry.fill(HIST("ExcludedEvtVsFT0M"), normT0M);
814825
registry.fill(HIST("ExcludedEvtVsFV0A"), normV0A);
815826
registry.fill(HIST("ExcludedEvtVsNch"), glbTracks);
827+
registry.fill(HIST("ExcludedEvtVsNPV"), nPV);
816828
skipEvent = true;
817829
}
818830
}

0 commit comments

Comments
 (0)