Skip to content

Commit c66dbb2

Browse files
authored
Fix bug in D+ selector, due to wrong logic for correlated bkgs (#11709)
1 parent 7fb2719 commit c66dbb2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PWGHF/TableProducer/candidateSelectorDplusToPiKPi.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ struct HfCandidateSelectorDplusToPiKPi {
6464
Configurable<std::vector<double>> binsPtTrack{"binsPtTrack", std::vector<double>{hf_cuts_single_track::vecBinsPtTrack}, "track pT bin limits for DCA pT-dependent cut"};
6565
// QA switch
6666
Configurable<bool> activateQA{"activateQA", false, "Flag to enable QA histogram"};
67-
// Correlated background from Ds and D+
68-
Configurable<bool> storeDsDplusBkg{"storeDsDplusBkg", false, "Flag to store correlated background from misidentified product of Ds and D+ decay"};
6967
// ML inference
7068
Configurable<bool> applyMl{"applyMl", false, "Flag to apply ML selections"};
7169
Configurable<std::vector<double>> binsPtMl{"binsPtMl", std::vector<double>{hf_cuts_ml::vecBinsPt}, "pT bin limits for ML application"};
@@ -229,7 +227,7 @@ struct HfCandidateSelectorDplusToPiKPi {
229227

230228
auto ptCand = candidate.pt();
231229

232-
if (!TESTBIT(candidate.hfflag(), aod::hf_cand_3prong::DecayType::DplusToPiKPi) && !(storeDsDplusBkg && TESTBIT(candidate.hfflag(), aod::hf_cand_3prong::DecayType::DsToKKPi))) { // DecayType::DsToKKPi is used to flag both Ds± → K± K∓ π± and D± → K± K∓ π±
230+
if (!TESTBIT(candidate.hfflag(), aod::hf_cand_3prong::DecayType::DplusToPiKPi)) {
233231
hfSelDplusToPiKPiCandidate(statusDplusToPiKPi);
234232
if (applyMl) {
235233
hfMlDplusToPiKPiCandidate(outputMlNotPreselected);

0 commit comments

Comments
 (0)