Skip to content

Commit 8018361

Browse files
authored
[PWGLF] Nuclei proton correlation: add TOF proton rejection (#18280)
1 parent 3e98361 commit 8018361

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ struct HadronNucleiCorrelation {
131131
Configurable<float> nsigmaElDe{"nsigmaElDe", 3.0f, "cut nsigma TPC El for protons"};
132132
Configurable<float> nsigmaTOF{"nsigmaTOF", 3.5f, "cut nsigma TOF"};
133133
Configurable<float> nsigmaTPCPrRej{"nsigmaTPCPrRej", 3.f, "cut nsigma TPC for proton rejection"};
134+
Configurable<float> nsigmaTOFPrRej{"nsigmaTOFPrRej", 3.f, "cut nsigma TOF for proton rejection"};
134135
Configurable<bool> doPrRej{"doPrRej", true, "do TPC proton rejection"};
135136
Configurable<float> nsigmaQuadratic{"nsigmaQuadratic", 3.0f, "cut on sqrt(nsigmaTPC^2 + nsigmaTOF^2), used above the TOF pT threshold when doQuadraticPID is on"};
136137
Configurable<float> nsigmaITSPr{"nsigmaITSPr", -2.0f, "cut nsigma ITS Pr"};
@@ -621,7 +622,7 @@ struct HadronNucleiCorrelation {
621622
const bool isTOFPID = std::abs(track.tofNSigmaDe()) < nsigmaTOF.value;
622623
const bool isTPCElRejection = rejectionEl.value && track.beta() < BetahasTOFthr && track.pt() < pTthrdeTPCEl.value && track.tpcNSigmaEl() >= nsigmaElDe.value;
623624
const bool isITSPID = track.itsNSigmaDe() > nsigmaITSDe.value;
624-
const bool isNotPr = std::abs(track.tpcNSigmaPr()) >= nsigmaTPCPrRej.value || !doPrRej.value;
625+
const bool isNotPr = (std::abs(track.tpcNSigmaPr()) >= nsigmaTPCPrRej.value && std::abs(track.tofNSigmaPr()) >= nsigmaTOFPrRej.value) || !doPrRej.value;
625626

626627
const bool isQuadraticPID = std::hypot(track.tpcNSigmaDe(), track.tofNSigmaDe()) < nsigmaQuadratic.value;
627628

@@ -1030,7 +1031,7 @@ struct HadronNucleiCorrelation {
10301031

10311032
const bool isTPCElRejection = rejectionEl.value && track.beta() < BetahasTOFthr && track.pt() < pTthrdeTPCEl.value && track.tpcNSigmaEl() >= nsigmaElDe.value;
10321033
const bool isTOFPID = std::abs(track.tofNSigmaDe()) < nsigmaTOF.value;
1033-
const bool isNotPr = std::abs(track.tpcNSigmaPr()) >= nsigmaTPCPrRej.value || !doPrRej.value;
1034+
const bool isNotPr = (std::abs(track.tpcNSigmaPr()) >= nsigmaTPCPrRej.value && std::abs(track.tofNSigmaPr()) >= nsigmaTOFPrRej.value) || !doPrRej.value;
10341035

10351036
if (track.sign() > 0) {
10361037

0 commit comments

Comments
 (0)