Skip to content

Commit 779da32

Browse files
Update HFFilter.cxx
1 parent 2566544 commit 779da32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

EventFiltering/PWGHF/HFFilter.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,11 @@ struct HfFilter { // Main struct for HF triggers
552552
if (!keepEvent[kBeauty3P] && isD0BeautyTagged) {
553553
int16_t isTrackSelected = helper.isSelectedTrackForSoftPionOrBeauty<kBeauty3P>(track, trackParThird, dcaThird);
554554
if (TESTBIT(isTrackSelected, kForBeauty) && ((TESTBIT(selD0InMass, 0) && track.sign() < 0) || (TESTBIT(selD0InMass, 1) && track.sign() > 0))) { // D0 pi- and D0bar pi+
555-
auto massCand = RecoDecay::m(std::array{pVec2Prong, pVecThird}, std::array{massD0, massPi});
555+
auto massCandD0Pi = RecoDecay::m(std::array{pVec2Prong, pVecThird}, std::array{massD0, massPi});
556+
auto massCandD0K = RecoDecay::m(std::array{pVec2Prong, pVecThird}, std::array{massD0, massKa});
556557
auto pVecBeauty3Prong = RecoDecay::pVec(pVec2Prong, pVecThird);
557558
auto ptCand = RecoDecay::pt(pVecBeauty3Prong);
558-
if (TESTBIT(isTrackSelected, kForBeauty) && helper.isSelectedBhadronInMassRange(ptCand, massCand, kBplus)) {
559+
if (TESTBIT(isTrackSelected, kForBeauty) && (helper.isSelectedBhadronInMassRange(ptCand, massCandD0Pi, kBplus) || helper.isSelectedBhadronInMassRange(ptCand, massCandD0K, kBc))) {
559560
if (activateQA) {
560561
registry.fill(HIST("fHfVtxStages"), 1 + HfVtxStage::Skimmed, kBplus);
561562
}

0 commit comments

Comments
 (0)