Skip to content

Commit ee3a0d6

Browse files
committed
Implement comments from Vit
1 parent b6595a8 commit ee3a0d6

File tree

5 files changed

+26
-19
lines changed

5 files changed

+26
-19
lines changed

PWGHF/Core/DecayChannels.h

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,27 @@ enum DecayChannelResonant : int8_t {
176176
};
177177
/// @brief beauty candidates: beauty to J/ψ decay channels
178178
enum DecayChannelToJpsiMain : int8_t {
179+
// B0
180+
B0ToJpsiPiK, // J/ψ π- K+
181+
// Bs0
182+
BsToJpsiKK, // J/ψ K+ K-
183+
// Λb0
184+
LbToJpsiPK, // J/ψ p K-
185+
// B+
179186
BplusToJpsiK = 1, // J/ψ K+
180-
B0ToJpsiPiK, // J/ψ π- K+
181-
BsToJpsiKK, // J/ψ K+ K-
182-
BcToJPsiPi, // J/ψ π+
183-
LbToJpsipK, // J/ψ p K-
187+
// Bc+
188+
BcToJpsiPi, // J/ψ π+
184189
//
185-
LastChannelBeautyToJpsi
190+
LastChannelToJpsiMain
186191
};
187192
/// @brief beauty candidates: beauty to J/ψ resonant decay channels
188193
enum DecayChannelToJpsiResonant : int8_t {
189-
B0ToJpsiKStar0 = 1, // J/ψ K*0(892)
190-
BsToJpsiPhi, // J/ψ φ
194+
// B0
195+
B0ToJpsiKstar0 = 1, // J/ψ K*0(892)
196+
// Bs0
197+
BsToJpsiPhi, // J/ψ φ
191198
//
192-
LastChannelBeautyToJpsiResonant
199+
LastChannelToJpsiResonant
193200
};
194201
} // namespace hf_cand_beauty
195202
} // namespace o2::hf_decay

PWGHF/Core/HfHelper.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,9 +1084,9 @@ class HfHelper
10841084
{
10851085
auto ptCandBs = candBs.pt();
10861086
auto mCandBs = invMassBsToJpsiPhi(candBs);
1087-
std::array<float, 3> pVecKa0 = {candKa0.px(), candKa0.py(), candKa0.pz()};
1088-
std::array<float, 3> pVecKa1 = {candKa1.px(), candKa1.py(), candKa1.pz()};
1089-
auto mcandPhi = RecoDecay::m(std::array{pVecKa0, pVecKa1}, std::array{o2::constants::physics::MassKPlus, o2::constants::physics::MassKPlus});
1087+
std::array<float, 3> pVecKa0 = candKa0.pVector();
1088+
std::array<float, 3> pVecKa1 = candKa1.pVector();
1089+
auto mCandPhi = RecoDecay::m(std::array{pVecKa0, pVecKa1}, std::array{o2::constants::physics::MassKPlus, o2::constants::physics::MassKPlus});
10901090
auto ptJpsi = RecoDecay::pt(candBs.pxProng0(), candBs.pyProng0());
10911091
auto candJpsi = candBs.jPsi();
10921092
float pseudoPropDecLen = candBs.decayLengthXY() * mCandBs / ptCandBs;
@@ -1113,7 +1113,7 @@ class HfHelper
11131113
}
11141114

11151115
// phi mass
1116-
if (std::abs(mcandPhi - o2::constants::physics::MassPhi) < cuts->get(binPt, "DeltaM phi")) {
1116+
if (std::abs(mCandPhi - o2::constants::physics::MassPhi) < cuts->get(binPt, "DeltaM phi")) {
11171117
return false;
11181118
}
11191119

PWGHF/D2H/DataModel/ReducedDataModel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ namespace hf_cand_bplus_reduced
681681
{
682682
DECLARE_SOA_INDEX_COLUMN_FULL(Prong0, prong0, int, HfRed2Prongs, "_0"); //! Prong0 index
683683
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, HfRedTrackBases, "_1"); //! Prong1 index
684-
DECLARE_SOA_INDEX_COLUMN_FULL(Jpsi, jPsi, int, HfRedJpsis, "_0"); //! J/Psi index
684+
DECLARE_SOA_INDEX_COLUMN_FULL(Jpsi, jpsi, int, HfRedJpsis, "_0"); //! J/Psi index
685685
DECLARE_SOA_INDEX_COLUMN_FULL(BachKa, bachKa, int, HfRedBach0Bases, "_0"); //! J/Psi index
686686
DECLARE_SOA_COLUMN(Prong0MlScoreBkg, prong0MlScoreBkg, float); //! Bkg ML score of the D daughter
687687
DECLARE_SOA_COLUMN(Prong0MlScorePrompt, prong0MlScorePrompt, float); //! Prompt ML score of the D daughter
@@ -707,7 +707,7 @@ namespace hf_cand_bs_reduced
707707
{
708708
DECLARE_SOA_INDEX_COLUMN_FULL(Prong0, prong0, int, HfRed3Prongs, "_0"); //! Prong0 index
709709
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, HfRedTrackBases, "_1"); //! Prong1 index
710-
DECLARE_SOA_INDEX_COLUMN_FULL(Jpsi, jPsi, int, HfRedJpsis, "_0"); //! J/Psi index
710+
DECLARE_SOA_INDEX_COLUMN_FULL(Jpsi, jpsi, int, HfRedJpsis, "_0"); //! J/Psi index
711711
DECLARE_SOA_INDEX_COLUMN_FULL(Prong0Phi, prong0Phi, int, HfRedBach0Bases, "_0"); //! J/Psi index
712712
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1Phi, prong1Phi, int, HfRedBach1Bases, "_0"); //! J/Psi index
713713
DECLARE_SOA_COLUMN(Prong0MlScoreBkg, prong0MlScoreBkg, float); //! Bkg ML score of the D daughter

PWGHF/D2H/TableProducer/candidateCreatorBToJpsiReduced.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ struct HfCandidateCreatorBToJpsiReduced {
6767
double massBplus{0.}, massBs{0.};
6868
double bz{0.};
6969
o2::vertexing::DCAFitterN<2> df2; // fitter for B vertex (2-prong vertex fitter)
70-
o2::vertexing::DCAFitterN<3> df3; // fitter for B vertex (2-prong vertex fitter)
71-
o2::vertexing::DCAFitterN<4> df4; // fitter for B vertex (2-prong vertex fitter)
70+
o2::vertexing::DCAFitterN<3> df3; // fitter for B vertex (3-prong vertex fitter)
71+
o2::vertexing::DCAFitterN<4> df4; // fitter for B vertex (4-prong vertex fitter)
7272

7373
using HfRedCollisionsWithExtras = soa::Join<aod::HfRedCollisions, aod::HfRedCollExtras>;
7474

@@ -139,8 +139,8 @@ struct HfCandidateCreatorBToJpsiReduced {
139139
Cands const& candsJpsiThisColl,
140140
TTracks0 const& tracksLfDau0ThisCollision,
141141
TTracks1 const& tracksLfDau1ThisCollision,
142-
const float& invMass2JpsiHadMin,
143-
const float& invMass2JpsiHadMax)
142+
const float invMass2JpsiHadMin,
143+
const float invMass2JpsiHadMax)
144144
{
145145
auto primaryVertex = getPrimaryVertex(collision);
146146
auto covMatrixPV = primaryVertex.getCov();

PWGHF/D2H/TableProducer/dataCreatorJpsiHadReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ struct HfDataCreatorJpsiHadReduced {
551551
}
552552

553553
// save information for Bs task
554-
if (abs(flag) != o2::hf_decay::hf_cand_beauty::BsToJpsiKK) {
554+
if (std::abs(flag) != o2::hf_decay::hf_cand_beauty::BsToJpsiKK) {
555555
continue;
556556
}
557557

0 commit comments

Comments
 (0)