Skip to content

Commit 4ac64ac

Browse files
hfribertHenrik Fribert
andauthored
[PWGLF] Apply pT dependent TOF PID (AliceO2Group#15800)
Co-authored-by: Henrik Fribert <ge35huh@nidoqueen.ktas.ph.tum.de>
1 parent 581c41c commit 4ac64ac

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

PWGLF/TableProducer/Strangeness/sigmaHadCorr.cxx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ struct sigmaHadCorrTask {
157157
// qa histograms
158158
rEventSelection.add("hVertexZRec", "hVertexZRec", {HistType::kTH1F, {vertexZAxis}});
159159
// Dedicated QA folder
160+
rSigmaHad.add("QA/hHadronPt", "Hadron #it{p}_{T}", {HistType::kTH1F, {ptHadAxis}});
160161
rSigmaHad.add("QA/h2TPCNSigmaHadVsPtHad", "TPC n#sigma_{had} vs #it{p}_{T,had}", {HistType::kTH2F, {ptHadAxis, nSigmaHadAxis}});
161162
rSigmaHad.add("QA/h2TOFNSigmaHadVsPtHad", "TOF n#sigma_{had} vs #it{p}_{T,had}", {HistType::kTH2F, {ptHadAxis, nSigmaHadAxis}});
162163
rSigmaHad.add("QA/hSigmaPt", "#Sigma #it{p}_{T}", {HistType::kTH1F, {sigmaPtAxis}});
@@ -329,11 +330,13 @@ struct sigmaHadCorrTask {
329330
return false;
330331
}
331332

332-
if (!candidate.hasTOF()) {
333-
return false;
334-
}
335-
if (std::abs(getTOFNSigmaHad(candidate)) > cutNSigmaTOF) {
336-
return false;
333+
if (candidate.pt() >= ptMinTOFHad) {
334+
if (!candidate.hasTOF()) {
335+
return false;
336+
}
337+
if (std::abs(getTOFNSigmaHad(candidate)) > cutNSigmaTOF) {
338+
return false;
339+
}
337340
}
338341
return true; // Track is selected
339342
}
@@ -458,6 +461,7 @@ struct sigmaHadCorrTask {
458461
continue;
459462
}
460463

464+
rSigmaHad.fill(HIST("QA/hHadronPt"), candidate.ptHad());
461465
rSigmaHad.fill(HIST("QA/h2TPCNSigmaHadVsPtHad"), candidate.ptHad(), candidate.nSigmaTPCHad);
462466
if (hadTrack.hasTOF()) {
463467
rSigmaHad.fill(HIST("QA/h2TOFNSigmaHadVsPtHad"), candidate.ptHad(), candidate.nSigmaTOFHad);

0 commit comments

Comments
 (0)