Skip to content

Commit 8638b23

Browse files
authored
Add monitoring of the delta momentum (#3981)
1 parent 07aa6b6 commit 8638b23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PWGLF/TableProducer/nucleiSpectra.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ std::shared_ptr<TH3> hTOFmassEta[5][2];
137137
std::shared_ptr<TH3> hDCAxy[2][5][2];
138138
std::shared_ptr<TH3> hDCAz[2][5][2];
139139
std::shared_ptr<TH2> hGloTOFtracks[2];
140+
std::shared_ptr<TH2> hDeltaP[2][5];
140141
o2::base::MatLayerCylSet* lut = nullptr;
141142

142143
std::vector<NucleusCandidate> candidates;
@@ -287,6 +288,7 @@ struct nucleiSpectra {
287288
for (int iPID{0}; iPID < 2; ++iPID) {
288289
nuclei::hDCAxy[iPID][iS][iC] = spectra.add<TH3>(fmt::format("hDCAxy{}_{}_{}", nuclei::pidName[iPID], nuclei::matter[iC], nuclei::names[iS]).data(), fmt::format("DCAxy {} {} {}", nuclei::pidName[iPID], nuclei::matter[iC], nuclei::names[iS]).data(), HistType::kTH3D, {centAxis, ptAxes[iS], dcaxyAxes[iS]});
289290
nuclei::hDCAz[iPID][iS][iC] = spectra.add<TH3>(fmt::format("hDCAz{}_{}_{}", nuclei::pidName[iPID], nuclei::matter[iC], nuclei::names[iS]).data(), fmt::format("DCAz {} {} {}", nuclei::pidName[iPID], nuclei::matter[iC], nuclei::names[iS]).data(), HistType::kTH3D, {centAxis, ptAxes[iS], dcazAxes[iS]});
291+
nuclei::hDeltaP[iPID][iS] = spectra.add<TH2>(fmt::format("hDeltaP{}_{}", nuclei::pidName[iPID], nuclei::names[iS]).data(), fmt::format("#Delta#it{p}/#it{p} {} {}", nuclei::pidName[iPID], nuclei::names[iS]).data(), HistType::kTH2D, {{232, 0.2, 6., "#it{p} (GeV/#it{c})"}, {200, -1, 1, "(#it{p}_{IU} - #it{p}_{TPC}) / #it{p}"}});
290292
}
291293
nuclei::hTOFmass[iS][iC] = spectra.add<TH3>(fmt::format("h{}TOFmass{}", nuclei::matter[iC], nuclei::names[iS]).data(), fmt::format("TOF mass - {} PDG mass", nuclei::names[iS]).data(), HistType::kTH3D, {centAxis, ptAxes[iS], tofMassAxis});
292294
nuclei::hTOFmassEta[iS][iC] = spectra.add<TH3>(fmt::format("h{}TOFmassEta{}", nuclei::matter[iC], nuclei::names[iS]).data(), fmt::format("TOF mass - {} PDG mass", nuclei::names[iS]).data(), HistType::kTH3D, {etaAxis, ptAxes[iS], tofMassAxis});
@@ -355,6 +357,9 @@ struct nucleiSpectra {
355357
nSigma[0][iS] = static_cast<float>((track.tpcSignal() - expBethe) / expSigma);
356358
selectedTPC[iS] = (nSigma[0][iS] > nuclei::pidCuts[0][iS][0] && nSigma[0][iS] < nuclei::pidCuts[0][iS][1]);
357359
goodToAnalyse = goodToAnalyse || selectedTPC[iS];
360+
if (selectedTPC[iS] && track.p() > 0.2) {
361+
nuclei::hDeltaP[iC][iS]->Fill(track.p(), 1 - track.tpcInnerParam() / track.p());
362+
}
358363
}
359364
if (!goodToAnalyse) {
360365
continue;

0 commit comments

Comments
 (0)