Skip to content

Commit 6ef0097

Browse files
sustripathySushanta Tripathyalibuild
authored
[PWGCF] Updating PID strategy for nuclei (#16742)
Co-authored-by: Sushanta Tripathy <sushantatripathy@eduroam-175238411-1.dyndns.cern.ch> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 1a073d1 commit 6ef0097

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

PWGCF/TwoParticleCorrelations/Tasks/nucleibalance.cxx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,7 @@ struct Lambdastarproxy {
17101710
Configurable<float> lstarCutNsigmaTOFKaon{"lstarCutNsigmaTOFKaon", float{NsigmaTOFDefault}, "|nSigma^{TOF}_{K}| cut"};
17111711
Configurable<float> lstarCutNsigmaTPCDe{"lstarCutNsigmaTPCDe", float{NsigmaTPCDefault}, "|nSigma^{TPC}_{d}| cut"};
17121712
Configurable<float> lstarCutNsigmaTOFDe{"lstarCutNsigmaTOFDe", float{NsigmaTOFDefault}, "|nSigma^{TOF}_{d}| cut"};
1713+
Configurable<int> lstarEnableTOFNsigmaCutDe{"lstarEnableTOFNsigmaCutDe", 0, "Enable deuteron-only TOF nSigma cut in PID strategy 2"};
17131714
// Optional deuteron-only TOF auxiliary selections.
17141715
// Defaults are OFF, so strategy 2 remains TPC nSigma only for deuterons.
17151716
Configurable<int> lstarEnableBetaCutDe{"lstarEnableBetaCutDe", 0, "Enable deuteron-only TOF beta cut using beta() > lstarBetaCutDe"};
@@ -2453,7 +2454,16 @@ struct Lambdastarproxy {
24532454
// For deuterons, follow the default idea of the official nuclei task:
24542455
// use TPC nσ as the main hard PID selection.
24552456
if (isDeuteron) {
2456-
return std::abs(nsTPC) < tpcCut;
2457+
if (std::abs(nsTPC) >= tpcCut) {
2458+
return false;
2459+
}
2460+
if (lstarEnableTOFNsigmaCutDe.value != 0) {
2461+
if (!hasTof) {
2462+
return false;
2463+
}
2464+
return std::abs(nsTOF) < tofCut;
2465+
}
2466+
return true;
24572467
}
24582468

24592469
// For kaons/protons, use the Lambda(1520)-like pT-ref circular TPC+TOF logic.

0 commit comments

Comments
 (0)