Skip to content

Commit 436e5d9

Browse files
Preet-BhanjanPreet Patialibuild
authored
[PWGCF] Addition of switch for PID exclusion criteria (#14900)
Co-authored-by: Preet Pati <preet@preet-6.local> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent d76fcfc commit 436e5d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGCF/TwoParticleCorrelations/Tasks/pidDiHadron.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ struct PidDiHadron {
119119
O2_DEFINE_CONFIGURABLE(cfgPIDParticle, int, 0, "1 = pion, 2 = kaon, 3 = proton, 4 = kshort, 5 = lambda, 6 = phi, 0 for no PID")
120120
O2_DEFINE_CONFIGURABLE(cfgGetNsigmaQA, bool, true, "Get QA histograms for selection of pions, kaons, and protons")
121121
O2_DEFINE_CONFIGURABLE(cfgUseAntiLambda, bool, true, "Use AntiLambda candidates for analysis")
122+
O2_DEFINE_CONFIGURABLE(cfgPIDUseRejection, bool, true, "Turn off and on the exclusion criteria for PID determination")
122123

123124
struct : ConfigurableGroup {
124125
O2_DEFINE_CONFIGURABLE(cfgMultCentHighCutFunction, std::string, "[0] + [1]*x + [2]*x*x + [3]*x*x*x + [4]*x*x*x*x + 10.*([5] + [6]*x + [7]*x*x + [8]*x*x*x + [9]*x*x*x*x)", "Functional for multiplicity correlation cut");
@@ -671,7 +672,7 @@ struct PidDiHadron {
671672
isProton = isDetectedProton;
672673
}
673674

674-
if ((isPion && isKaon) || (isPion && isProton) || (isKaon && isProton)) {
675+
if (cfgPIDUseRejection && ((isPion && isKaon) || (isPion && isProton) || (isKaon && isProton))) {
675676
return -1; // more than one particle satisfy the criteria
676677
}
677678

0 commit comments

Comments
 (0)