Skip to content

Commit 49eb932

Browse files
committed
Fix bugs for B->JPsi(->mumu) triggers
1 parent 9857c8b commit 49eb932

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

EventFiltering/PWGHF/HFFilter.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ struct HfFilter { // Main struct for HF triggers
715715

716716
// Beauty with JPsi
717717
if (preselJPsiToMuMu) {
718-
if (TESTBIT(helper.isSelectedTrackForSoftPionOrBeauty<kBtoJPsiKa>(track, trackParThird, dcaThird), kForBeauty)) { // same for all channels
718+
if (!TESTBIT(helper.isSelectedTrackForSoftPionOrBeauty<kBtoJPsiKa>(track, trackParThird, dcaThird), kForBeauty)) { // same for all channels
719719
continue;
720720
}
721721
std::array<float, 3> pVecPosVtx{}, pVecNegVtx{}, pVecThirdVtx{}, pVecFourthVtx{};
@@ -753,7 +753,7 @@ struct HfFilter { // Main struct for HF triggers
753753
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParFourth, 2.f, noMatCorr, &dcaFourth);
754754
getPxPyPz(trackParFourth, pVecFourth);
755755
}
756-
if (TESTBIT(helper.isSelectedTrackForSoftPionOrBeauty<kBtoJPsiKa>(trackFourth, trackParFourth, dcaFourth), kForBeauty)) { // same for all channels
756+
if (!TESTBIT(helper.isSelectedTrackForSoftPionOrBeauty<kBtoJPsiKa>(trackFourth, trackParFourth, dcaFourth), kForBeauty)) { // same for all channels
757757
continue;
758758
}
759759
if (df4.process(trackParPos, trackParNeg, trackParThird, trackParFourth) != 0) {

EventFiltering/PWGHF/HFFilterHelpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,7 @@ inline int8_t HfFilterHelper::isSelectedBhadronToJPsi(std::array<T1, Nprongs> pV
21662166
}
21672167
if (isFirstKaon) {
21682168
auto massKaPi = RecoDecay::m(std::array{pVecDauTracks[2], pVecDauTracks[3]}, std::array{massKa, massPi});
2169-
if (std::fabs(massKaPi - massPhi) < 0.1f) {
2169+
if (std::fabs(massKaPi - massK0Star892) < 0.1f) {
21702170
auto massJPsiKaPi = RecoDecay::m(std::array{pVecJPsi, pVecDauTracks[2], pVecDauTracks[3]}, std::array{massJPsi, massKa, massPi});
21712171
if (std::fabs(massJPsiKaPi - massB0) < mCutsBhadToJPsi.get(binPtB, 1u)) {
21722172
SETBIT(isSelected, kB0ToJPsi);
@@ -2178,7 +2178,7 @@ inline int8_t HfFilterHelper::isSelectedBhadronToJPsi(std::array<T1, Nprongs> pV
21782178
}
21792179
if (isSeconKaon) {
21802180
auto massPiKa = RecoDecay::m(std::array{pVecDauTracks[2], pVecDauTracks[3]}, std::array{massPi, massKa});
2181-
if (std::fabs(massPiKa - massPhi) < 0.1f) {
2181+
if (std::fabs(massPiKa - massK0Star892) < 0.1f) {
21822182
auto massJPsiPiKa = RecoDecay::m(std::array{pVecJPsi, pVecDauTracks[2], pVecDauTracks[3]}, std::array{massJPsi, massPi, massKa});
21832183
if (std::fabs(massJPsiPiKa - massB0) < mCutsBhadToJPsi.get(binPtB, 1u)) {
21842184
SETBIT(isSelected, kB0ToJPsi);

0 commit comments

Comments
 (0)