Skip to content

Commit 5c53903

Browse files
authored
[PWGHF] Fix B+ selection in derived data creator (#10829)
1 parent 69b8e67 commit 5c53903

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PWGHF/TableProducer/derivedDataCreatorBplusToD0Pi.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct HfDerivedDataCreatorBplusToD0Pi {
9393
using TypeMcCollisions = soa::Join<aod::McCollisions, aod::McCentFT0Ms>;
9494
using THfCandDaughtersMl = soa::Join<aod::HfCand2ProngWPid, aod::HfMlD0>;
9595

96-
Filter filterSelectCandidates = aod::hf_sel_candidate_bplus::isSelBplusToD0Pi >= 1;
96+
Filter filterSelectCandidates = (aod::hf_sel_candidate_bplus::isSelBplusToD0Pi & static_cast<int8_t>(BIT(aod::SelectionStep::RecoMl - 1))) != 0;
9797
Filter filterMcGenMatching = nabs(aod::hf_cand_bplus::flagMcMatchGen) == static_cast<int8_t>(BIT(aod::hf_cand_bplus::DecayType::BplusToD0Pi));
9898

9999
Preslice<SelectedCandidates> candidatesPerCollision = aod::hf_cand::collisionId;
@@ -272,6 +272,11 @@ struct HfDerivedDataCreatorBplusToD0Pi {
272272
}
273273
int8_t flagMcRec = 0, origin = 0;
274274
for (const auto& candidate : candidatesThisColl) {
275+
if constexpr (isMl) {
276+
if (!TESTBIT(candidate.isSelBplusToD0Pi(), aod::SelectionStep::RecoMl)) {
277+
continue;
278+
}
279+
}
275280
if constexpr (isMc) {
276281
flagMcRec = candidate.flagMcMatchRec();
277282
origin = candidate.originMcRec();

0 commit comments

Comments
 (0)