File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments