Skip to content

Commit cb91f76

Browse files
authored
[PWGLF] Nuclei proton correlation: fix proton rejection (#18220)
1 parent 6d04944 commit cb91f76

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ struct HadronNucleiCorrelation {
9595
Configurable<bool> isPrim{"isPrim", true, "is isPrim"};
9696
Configurable<bool> doCorrection{"doCorrection", false, "do efficiency correction"};
9797
Configurable<bool> doQuadraticPID{"doQuadraticPID", false, "do PID with sum in quadrature of TOF and TPC"};
98-
Configurable<bool> doPIDRej{"doPIDRej", false, "do PID rejection of competing species"};
9998

10099
struct : ConfigurableGroup {
101100
std::string prefix = "Coalescence"; // JSON group name
@@ -116,7 +115,7 @@ struct HadronNucleiCorrelation {
116115
Configurable<bool> removeSameBunchPileup{"removeSameBunchPileup", false, "remove Same Bunch Pileup"};
117116

118117
// Track selection
119-
Configurable<bool> doClosePairRejection{"doClosePairRejection", false, "doClosePairRejection"};
118+
Configurable<bool> doClosePairRejection{"doClosePairRejection", false, "doClosePairRejection for non identical particles"};
120119
Configurable<double> dcaPar0{"dcaPar0", 0.004, "par 0"};
121120
Configurable<double> dcaPar1{"dcaPar1", 0.013, "par 1"};
122121
Configurable<bool> doDCAZ{"doDCAZ", true, "do DCA z cut"};
@@ -131,8 +130,8 @@ struct HadronNucleiCorrelation {
131130
Configurable<float> nsigmaElPr{"nsigmaElPr", 1.0f, "cut nsigma TPC El for protons"};
132131
Configurable<float> nsigmaElDe{"nsigmaElDe", 3.0f, "cut nsigma TPC El for protons"};
133132
Configurable<float> nsigmaTOF{"nsigmaTOF", 3.5f, "cut nsigma TOF"};
134-
Configurable<float> nsigmaTOFPrRej{"nsigmaTOFPrRej", 3.f, "cut nsigma TOF for proton rejection"};
135-
Configurable<bool> doPrRej{"doPrRej", true, "do TOF proton rejection"};
133+
Configurable<float> nsigmaTPCPrRej{"nsigmaTPCPrRej", 3.f, "cut nsigma TPC for proton rejection"};
134+
Configurable<bool> doPrRej{"doPrRej", true, "do TPC proton rejection"};
136135
Configurable<float> nsigmaQuadratic{"nsigmaQuadratic", 3.0f, "cut on sqrt(nsigmaTPC^2 + nsigmaTOF^2), used above the TOF pT threshold when doQuadraticPID is on"};
137136
Configurable<float> nsigmaITSPr{"nsigmaITSPr", -2.0f, "cut nsigma ITS Pr"};
138137
Configurable<float> nsigmaITSDe{"nsigmaITSDe", -2.0f, "cut nsigma ITS De"};
@@ -622,7 +621,7 @@ struct HadronNucleiCorrelation {
622621
const bool isTOFPID = std::abs(track.tofNSigmaDe()) < nsigmaTOF.value;
623622
const bool isTPCElRejection = rejectionEl.value && track.beta() < BetahasTOFthr && track.pt() < pTthrdeTPCEl.value && track.tpcNSigmaEl() >= nsigmaElDe.value;
624623
const bool isITSPID = track.itsNSigmaDe() > nsigmaITSDe.value;
625-
const bool isNotPr = std::abs(track.tofNSigmaPr()) >= nsigmaTOFPrRej.value || !doPrRej.value;
624+
const bool isNotPr = std::abs(track.tpcNSigmaPr()) >= nsigmaTPCPrRej.value || !doPrRej.value;
626625

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

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

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

10361035
if (track.sign() > 0) {
10371036

0 commit comments

Comments
 (0)