[PWGHF] Improve tasks for B to JPsi analyses#16500
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Hi @fchinu , can you please add brief descriptions of the bugs you're fixing in this PR? |
| } else if (useJpsiPdgMass && !usePhiPdgMass) { | ||
| return RecoDecay::m(std::array{RecoDecay::pVec(pVecMuPos, pVecMuNeg), pVecKaPos, pVecKaNeg}, | ||
| std::array{o2::constants::physics::MassJPsi, o2::constants::physics::MassKPlus, o2::constants::physics::MassKPlus}); | ||
| } else if (!useJpsiPdgMass && usePhiPdgMass) { | ||
| return RecoDecay::m(std::array{pVecMuPos, pVecMuNeg, RecoDecay::pVec(pVecKaPos, pVecKaNeg)}, | ||
| std::array{o2::constants::physics::MassMuon, o2::constants::physics::MassMuon, o2::constants::physics::MassPhi}); | ||
| } else { | ||
| return RecoDecay::m(std::array{pVecMuPos, pVecMuNeg, pVecKaPos, pVecKaNeg}, | ||
| std::array{o2::constants::physics::MassMuon, o2::constants::physics::MassMuon, o2::constants::physics::MassKPlus, o2::constants::physics::MassKPlus}); |
There was a problem hiding this comment.
The else statements seem redundant here.
There was a problem hiding this comment.
It seems you only removed the last else while the other redundant ones are still there.
| std::array<float, 3> const pVecMu0 = {candBp.pxProng0(), candBp.pyProng0(), candBp.pzProng0()}; | ||
| std::array<float, 3> const pVecMu1 = {candBp.pxProng1(), candBp.pyProng1(), candBp.pzProng1()}; | ||
| std::array<float, 3> const pVecKa = {candBp.pxProng2(), candBp.pyProng2(), candBp.pzProng2()}; |
There was a problem hiding this comment.
<float, 3> seems redundant here.
There was a problem hiding this comment.
You can actually also remove the = parts, as you did in invMassBplusToJpsiK.
|
It seems you could profit from |
|
Error while checking build/O2Physics/o2 for e7295f8 at 2026-06-03 05:55: Full log here. |
|
Hi @vkucera thanks for the comments! I have implemented them, and updated the description following the commit messages. |
|
Thanks @fchinu . Please see my further suggestions. |
Done, thanks! |
I don't see |
|
Sorry, I changed the ones you pointed me to, now everything should be updated |
|
In if (useJpsiPdgMass && usePhiPdgMass) {
return RecoDecay::m(...);
} else if (useJpsiPdgMass && !usePhiPdgMass) {
return RecoDecay::m(...);
} else if (!useJpsiPdgMass && usePhiPdgMass) {
return RecoDecay::m(...);
}
return RecoDecay::m(...);All the |
I have spotted a few bugs that were preventing the signals to be observed, and added a configurable to use J/Psi PDG mass instead of the reconstructed one when computing the B meson mass. (tagging @fgrosa)