@@ -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" );
@@ -183,7 +184,7 @@ struct PidDiHadron {
183184
184185 // make the filters and cuts.
185186 Filter collisionFilter = (nabs(aod::collision::posZ) < cfgCutVertex);
186- Filter trackFilter = (nabs(aod::track::eta) < cfgCutEta) && (aod::track::pt > cfgCutPtPOIMin) && (aod::track::pt < cfgCutPtPOIMax) && ((requireGlobalTrackInFilter()) || (aod::track::isGlobalTrackSDD == (uint8_t ) true )) && (aod::track::tpcChi2NCl < cfgCutChi2prTPCcls) && (nabs(aod::track::dcaZ) < cfgCutDCAz);
187+ Filter trackFilter = (nabs(aod::track::eta) < cfgCutEta) && (aod::track::pt > cfgCutPtPOIMin) && (aod::track::pt < cfgCutPtPOIMax) && ((requireGlobalTrackInFilter()) || (aod::track::isGlobalTrackSDD == (uint8_t )true )) && (aod::track::tpcChi2NCl < cfgCutChi2prTPCcls) && (nabs(aod::track::dcaZ) < cfgCutDCAz);
187188
188189 using FilteredCollisions = soa::Filtered<soa::Join<aod::Collisions, aod::EvSel, aod::CentFT0Cs, aod::CentFT0CVariant1s, aod::CentFT0Ms, aod::CentFV0As, aod::Mults>>;
189190 using FilteredTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TrackSelection, aod::TracksExtra, aod::TracksDCA, aod::pidTPCFullPi, aod::pidTPCFullKa, aod::pidTPCFullPr, aod::pidTOFbeta, aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr>>;
@@ -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