Skip to content

Commit 3371fcb

Browse files
authored
[PWGCF] change TPC TOF nsigma selection (AliceO2Group#16777)
1 parent 23d64fa commit 3371fcb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ struct HadNucleiFemto {
207207
Configurable<float> settingCutNsigmaTPCDe{"settingCutNsigmaTPCDe", 2.5f, "Value of the TPC Nsigma cut on De"};
208208
Configurable<float> settingCutNsigmaITSDe{"settingCutNsigmaITSDe", 2.5f, "Value of the ITD Nsigma cut on De"};
209209
Configurable<float> settingCutNsigmaTOFTPCDe{"settingCutNsigmaTOFTPCDe", 2.5f, "Value of the De TOF TPC combNsigma cut"};
210+
Configurable<bool> settingReqSingleNsig{"settingReqSingleNsig", false, "If true, also require individual TPC and TOF n-sigma cuts in branches using combined TPC+TOF PID"};
210211
Configurable<bool> settingUseProtonMassForKstarMt{"settingUseProtonMassForKstarMt", false, "If true, use proton mass instead of deuteron mass for kstar and mT"};
211212
Configurable<bool> settingEnableClosePairRejection{"settingEnableClosePairRejection", false, "Enable close pair rejection for deuteron-hadron track pairs"};
212213
Configurable<float> settingClosePairDeltaPhiMax{"settingClosePairDeltaPhiMax", 0.01f, "Maximum delta phi star for close pair rejection"};
@@ -765,6 +766,10 @@ struct HadNucleiFemto {
765766
if (combNsigma > protonCombNsigmaMax) {
766767
return false;
767768
}
769+
if (settingReqSingleNsig.value &&
770+
(std::abs(tpcNSigmaPr) > protonCombNsigmaMax || std::abs(tofNSigmaPr) > protonCombNsigmaMax)) {
771+
return false;
772+
}
768773

769774
mQaRegistry.fill(HIST("h2NsigmaHadTPC"), candidate.sign() * candidate.pt(), tpcNSigmaPr);
770775
mQaRegistry.fill(HIST("h2NsigmaHadTOF"), candidate.sign() * candidate.pt(), tofNSigmaPr);
@@ -856,6 +861,10 @@ struct HadNucleiFemto {
856861
if (combNsigma > pionRefCombNsigmaMax) {
857862
return false;
858863
}
864+
if (settingReqSingleNsig.value &&
865+
(std::abs(tpcNSigmaPi) > pionRefCombNsigmaMax || std::abs(tofNSigmaPi) > pionRefCombNsigmaMax)) {
866+
return false;
867+
}
859868
mQaRegistry.fill(HIST("h2NsigmaHadTPC"), candidate.sign() * candidate.pt(), tpcNSigmaPi);
860869
mQaRegistry.fill(HIST("h2NsigmaHadTOF"), candidate.sign() * candidate.pt(), tofNSigmaPi);
861870
mQaRegistry.fill(HIST("h2NsigmaHadComb"), candidate.sign() * candidate.pt(), combNsigma);
@@ -991,6 +1000,10 @@ struct HadNucleiFemto {
9911000
if (combNsigma > settingCutNsigmaTOFTPCDe) {
9921001
return false;
9931002
}
1003+
if (settingReqSingleNsig.value &&
1004+
(std::abs(tpcNSigmaDe) > settingCutNsigmaTOFTPCDe || std::abs(tofNSigmaDe) > settingCutNsigmaTOFTPCDe)) {
1005+
return false;
1006+
}
9941007
mQaRegistry.fill(HIST("h2dEdxNucandidates"), candidate.sign() * tpcInnerParam, candidate.tpcSignal());
9951008
mQaRegistry.fill(HIST("h2NsigmaNuComb"), candidate.sign() * candidate.pt(), combNsigma);
9961009
mQaRegistry.fill(HIST("h2NsigmaNuTPC"), candidate.sign() * candidate.pt(), tpcNSigmaDe);

0 commit comments

Comments
 (0)