Skip to content

Commit 5029a0a

Browse files
authored
[TOF] Add pT lower/upper cut (#5566)
1 parent dfa41a3 commit 5029a0a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

DPG/Tasks/AOTTrack/PID/qaPIDTOF.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ struct tofPidQa {
132132
Configurable<bool> applyRapidityCut{"applyRapidityCut", false, "Flag to apply rapidity cut"};
133133
Configurable<bool> enableEvTimeSplitting{"enableEvTimeSplitting", false, "Flag to enable histograms splitting depending on the Event Time used"};
134134
Configurable<bool> produceDeltaTEtaPhiMap{"produceDeltaTEtaPhiMap", false, "Produces the map of the delta time as a function of eta and phi"};
135-
Configurable<float> ptDeltaTEtaPhiMap{"ptDeltaTEtaPhiMap", 3.f, "Threshold in pT to build the map of the delta time as a function of eta and phi"};
135+
Configurable<float> ptDeltaTEtaPhiMapMin{"ptDeltaTEtaPhiMapMin", 1.45f, "Threshold in pT to build the map of the delta time as a function of eta and phi"};
136+
Configurable<float> ptDeltaTEtaPhiMapMax{"ptDeltaTEtaPhiMapMax", 1.55f, "Threshold in pT to build the map of the delta time as a function of eta and phi"};
136137
Configurable<bool> splitSignalPerCharge{"splitSignalPerCharge", true, "Split the signal per charge (reduces memory footprint if off)"};
137138
Configurable<bool> enableVsMomentumHistograms{"enableVsMomentumHistograms", false, "Enables plots vs momentum instead of just pT (reduces memory footprint if off)"};
138139
Configurable<bool> requireGoodMatchTracks{"requireGoodMatchTracks", false, "Require good match tracks"};
@@ -224,7 +225,7 @@ struct tofPidQa {
224225
histos.add(hdelta_pt[id].data(), axisTitle, kTH2F, {ptAxis, deltaAxis});
225226
}
226227
if (produceDeltaTEtaPhiMap) {
227-
histos.add(hdelta_etaphi[id].data(), Form("%s, #it{p}_{T} > %.2f", axisTitle, ptDeltaTEtaPhiMap.value), kTH3F, {etaAxis, phiAxis, deltaAxis});
228+
histos.add(hdelta_etaphi[id].data(), Form("%s, %.2f < #it{p}_{T} < %.2f", axisTitle, ptDeltaTEtaPhiMapMin.value, ptDeltaTEtaPhiMapMax.value), kTH3F, {etaAxis, phiAxis, deltaAxis});
228229
}
229230

230231
// Exp Sigma
@@ -562,7 +563,7 @@ struct tofPidQa {
562563
}
563564

564565
if (produceDeltaTEtaPhiMap) {
565-
if (t.pt() > ptDeltaTEtaPhiMap) {
566+
if (t.pt() > ptDeltaTEtaPhiMapMin && t.pt() < ptDeltaTEtaPhiMapMax) {
566567
histos.fill(HIST(hdelta_etaphi[id]), t.eta(), t.phi(), diff);
567568
}
568569
}

0 commit comments

Comments
 (0)