Skip to content

Commit 9054f40

Browse files
MarcellocostiMarcello Di Costanzo
andauthored
[PWGHF] Fix correlated bkgs filling in derived data creators (#18139)
Co-authored-by: Marcello Di Costanzo <mdicosta@aliceml.cern.ch>
1 parent b2754cc commit 9054f40

5 files changed

Lines changed: 5 additions & 5 deletions

‎PWGHF/TableProducer/derivedDataCreatorD0ToKPi.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ struct HfDerivedDataCreatorD0ToKPi {
299299
}
300300
}
301301
if constexpr (OnlySig) {
302-
if (std::abs(flagMcRec) != o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
302+
if (!acceptCorrelatedBkgs && (std::abs(flagMcRec) != o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK)) {
303303
continue;
304304
}
305305
}

‎PWGHF/TableProducer/derivedDataCreatorDplusToPiKPi.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ struct HfDerivedDataCreatorDplusToPiKPi {
304304
}
305305
}
306306
if constexpr (OnlySig) {
307-
if (std::abs(flagMcRec) != hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi) {
307+
if (!acceptCorrelatedBkgs && (std::abs(flagMcRec) != hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi)) {
308308
continue;
309309
}
310310
}

‎PWGHF/TableProducer/derivedDataCreatorDsToKKPi.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ struct HfDerivedDataCreatorDsToKKPi {
287287
}
288288
}
289289
if constexpr (OnlySig) {
290-
if (std::abs(flagMcRec) != hf_decay::hf_cand_3prong::DecayChannelMain::DsToPiKK) {
290+
if (!acceptCorrelatedBkgs && (std::abs(flagMcRec) != hf_decay::hf_cand_3prong::DecayChannelMain::DsToPiKK)) {
291291
continue;
292292
}
293293
}

‎PWGHF/TableProducer/derivedDataCreatorDstarToD0Pi.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ struct HfDerivedDataCreatorDstarToD0Pi {
279279
}
280280
}
281281
if constexpr (OnlySig) {
282-
if (std::abs(flagMcRec) != hf_decay::hf_cand_dstar::DecayChannelMain::DstarToPiKPi) {
282+
if (!acceptCorrelatedBkgs && (std::abs(flagMcRec) != hf_decay::hf_cand_dstar::DecayChannelMain::DstarToPiKPi)) {
283283
continue;
284284
}
285285
}

‎PWGHF/TableProducer/derivedDataCreatorLcToPKPi.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ struct HfDerivedDataCreatorLcToPKPi {
280280
}
281281
}
282282
if constexpr (OnlySig) {
283-
if (std::abs(flagMcRec) != hf_decay::hf_cand_3prong::DecayChannelMain::LcToPKPi) {
283+
if (!acceptCorrelatedBkgs && (std::abs(flagMcRec) != hf_decay::hf_cand_3prong::DecayChannelMain::LcToPKPi)) {
284284
continue;
285285
}
286286
}

0 commit comments

Comments
 (0)