Skip to content

Commit 866ce58

Browse files
authored
[PWGCF] add configurable for pion selection (#16382)
1 parent 57aeff0 commit 866ce58

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ struct HadNucleiFemto {
193193
Configurable<bool> settingEnablePionProtonRejection{"settingEnablePionProtonRejection", true, "If true, apply proton rejection in the pion PID"};
194194
Configurable<bool> settingEnablePionKaonRejection{"settingEnablePionKaonRejection", true, "If true, apply kaon rejection in the pion PID"};
195195
Configurable<bool> settingUsePionReferencePIDCuts{"settingUsePionReferencePIDCuts", false, "If true, use the reference pion track/PID cuts from the pi-p study"};
196+
Configurable<float> settingPionRefPtMin{"settingPionRefPtMin", 0.14f, "Minimum pT for the reference pion track cuts"};
197+
Configurable<float> settingPionRefPtMax{"settingPionRefPtMax", 2.5f, "Maximum pT for the reference pion track cuts"};
198+
Configurable<int> settingPionRefITSInnerBarrelMin{"settingPionRefITSInnerBarrelMin", 3, "Minimum ITS inner barrel clusters for the reference pion track cuts"};
199+
Configurable<int> settingPionRefITSNClsMin{"settingPionRefITSNClsMin", 7, "Minimum ITS clusters for the reference pion track cuts"};
200+
Configurable<int> settingPionRefTPCNClsFoundMin{"settingPionRefTPCNClsFoundMin", 80, "Minimum found TPC clusters for the reference pion track cuts"};
201+
Configurable<int> settingPionRefTPCCrossedRowsMin{"settingPionRefTPCCrossedRowsMin", 90, "Minimum crossed TPC rows for the reference pion track cuts"};
196202
// Deuteron purity and PID cuts
197203
Configurable<float> settingCutPinMinDe{"settingCutPinMinDe", 0.0f, "Minimum Pin for De"};
198204
Configurable<float> settingCutClSizeItsDe{"settingCutClSizeItsDe", 4.0f, "Minimum ITS cluster size for De"};
@@ -540,26 +546,19 @@ struct HadNucleiFemto {
540546
template <typename Ttrack>
541547
bool selectTrackPionReference(const Ttrack& candidate)
542548
{
543-
constexpr float pionRefPtMin = 0.14f;
544-
constexpr float pionRefPtMax = 2.5f;
545-
constexpr int pionRefITSInnerBarrelMin = 3;
546-
constexpr int pionRefITSNClsMin = 7;
547-
constexpr int pionRefTPCNClsFoundMin = 80;
548-
constexpr int pionRefTPCCrossedRowsMin = 90;
549-
550549
if (std::abs(candidate.eta()) > settingCutEta) {
551550
return false;
552551
}
553552

554553
const float absPt = std::abs(candidate.pt());
555-
if (absPt < pionRefPtMin || absPt > pionRefPtMax) {
554+
if (absPt < settingPionRefPtMin || absPt > settingPionRefPtMax) {
556555
return false;
557556
}
558557

559-
if (candidate.itsNClsInnerBarrel() < pionRefITSInnerBarrelMin ||
560-
candidate.itsNCls() < pionRefITSNClsMin ||
561-
candidate.tpcNClsFound() < pionRefTPCNClsFoundMin ||
562-
candidate.tpcNClsCrossedRows() < pionRefTPCCrossedRowsMin) {
558+
if (candidate.itsNClsInnerBarrel() < settingPionRefITSInnerBarrelMin ||
559+
candidate.itsNCls() < settingPionRefITSNClsMin ||
560+
candidate.tpcNClsFound() < settingPionRefTPCNClsFoundMin ||
561+
candidate.tpcNClsCrossedRows() < settingPionRefTPCCrossedRowsMin) {
563562
return false;
564563
}
565564

0 commit comments

Comments
 (0)