Skip to content

Commit 700f650

Browse files
committed
Add also muon pts
1 parent 8f3a39a commit 700f650

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

‎PWGHF/D2H/Tasks/taskB0ToJpsiK0StarReduced.cxx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ namespace o2::aod
6565
namespace hf_cand_b0tojpsik0star_lite
6666
{
6767
DECLARE_SOA_COLUMN(PtJpsi, ptJpsi, float); //! Transverse momentum of Jpsi daughter candidate (GeV/c)
68+
DECLARE_SOA_COLUMN(PtJpsiDauPos, ptJpsiDauPos, float); //! Transverse momentum of Jpsi positive daughter candidate (GeV/c)
69+
DECLARE_SOA_COLUMN(PtJpsiDauNeg, ptJpsiDauNeg, float); //! Transverse momentum of Jpsi negative daughter candidate (GeV/c)
6870
DECLARE_SOA_COLUMN(PtBach0, ptBach0, float); //! Transverse momentum of bachelor kaon(<- K*0) (GeV/c)
6971
DECLARE_SOA_COLUMN(PtBach1, ptBach1, float); //! Transverse momentum of bachelor kaon(<- K*0) (GeV/c)
7072
DECLARE_SOA_COLUMN(ItsNClsJpsiDauPos, itsNClsJpsiDauPos, int); //! Number of clusters in ITS
@@ -174,11 +176,13 @@ DECLARE_SOA_TABLE(HfRedCandB0Lites, "AOD", "HFREDCANDB0LITE", //! Table with som
174176
hf_cand_b0tojpsik0star_lite::ImpactParameterLfTrack0,
175177
hf_cand_b0tojpsik0star_lite::ImpactParameterLfTrack1,
176178
// Jpsi daughter features
179+
hf_cand_b0tojpsik0star_lite::PtJpsiDauPos,
177180
hf_cand_b0tojpsik0star_lite::ItsNClsJpsiDauPos,
178181
hf_cand_b0tojpsik0star_lite::TpcNClsCrossedRowsJpsiDauPos,
179182
hf_cand_b0tojpsik0star_lite::ItsChi2NClJpsiDauPos,
180183
hf_cand_b0tojpsik0star_lite::TpcChi2NClJpsiDauPos,
181184
hf_cand_b0tojpsik0star_lite::AbsEtaJpsiDauPos,
185+
hf_cand_b0tojpsik0star_lite::PtJpsiDauNeg,
182186
hf_cand_b0tojpsik0star_lite::ItsNClsJpsiDauNeg,
183187
hf_cand_b0tojpsik0star_lite::TpcNClsCrossedRowsJpsiDauNeg,
184188
hf_cand_b0tojpsik0star_lite::ItsChi2NClJpsiDauNeg,
@@ -410,6 +414,8 @@ struct HfTaskB0ToJpsiK0StarReduced {
410414
auto const pVecLfDau0 = candidate.pVectorProng2();
411415
auto const pVecLfDau1 = candidate.pVectorProng3();
412416
auto ptJpsi = RecoDecay::pt(pVecMu0, pVecMu1);
417+
auto ptMuPos = RecoDecay::pt(pVecMu0);
418+
auto ptMuNeg = RecoDecay::pt(pVecMu1);
413419
auto ptK0Star = RecoDecay::pt(pVecLfDau0, pVecLfDau1);
414420
auto invMassJpsi = RecoDecay::m(std::array{pVecMu0, pVecMu1}, std::array{o2::constants::physics::MassMuonPlus, o2::constants::physics::MassMuonMinus});
415421
auto invMassK0StarKPi = RecoDecay::m(std::array{pVecLfDau0, pVecLfDau1}, std::array{o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus});
@@ -594,11 +600,13 @@ struct HfTaskB0ToJpsiK0StarReduced {
594600
candidate.impactParameter1(),
595601
candidate.impactParameter2(),
596602
candidate.impactParameter3(),
603+
ptMuPos,
597604
candJpsi.itsNClsDauPos(),
598605
candJpsi.tpcNClsCrossedRowsDauPos(),
599606
candJpsi.itsChi2NClDauPos(),
600607
candJpsi.tpcChi2NClDauPos(),
601608
absEta(candJpsi.tglDauPos()),
609+
ptMuNeg,
602610
candJpsi.itsNClsDauNeg(),
603611
candJpsi.tpcNClsCrossedRowsDauNeg(),
604612
candJpsi.itsChi2NClDauNeg(),

‎PWGHF/D2H/Tasks/taskBplusToJpsiKReduced.cxx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ namespace o2::aod
6565
namespace hf_cand_bplustojpsik_lite
6666
{
6767
DECLARE_SOA_COLUMN(PtJpsi, ptJpsi, float); //! Transverse momentum of Jpsi daughter candidate (GeV/c)
68+
DECLARE_SOA_COLUMN(PtJpsiDauPos, ptJpsiDauPos, float); //! Transverse momentum of Jpsi positive daughter candidate (GeV/c)
69+
DECLARE_SOA_COLUMN(PtJpsiDauNeg, ptJpsiDauNeg, float); //! Transverse momentum of Jpsi negative daughter candidate (GeV/c)
6870
DECLARE_SOA_COLUMN(PtBach, ptBach, float); //! Transverse momentum of bachelor kaon (GeV/c)
6971
DECLARE_SOA_COLUMN(ItsNClsJpsiDauPos, itsNClsJpsiDauPos, int); //! Number of clusters in ITS
7072
DECLARE_SOA_COLUMN(TpcNClsCrossedRowsJpsiDauPos, tpcNClsCrossedRowsJpsiDauPos, int); //! Number of TPC crossed rows
@@ -149,11 +151,13 @@ DECLARE_SOA_TABLE(HfRedCandBpLites, "AOD", "HFREDCANDBPLITE", //! Table with som
149151
hf_cand_bplustojpsik_lite::ImpactParameterJpsiDauPos,
150152
hf_cand_bplustojpsik_lite::ImpactParameterJpsiDauNeg,
151153
// Jpsi daughter features
154+
hf_cand_bplustojpsik_lite::PtJpsiDauPos,
152155
hf_cand_bplustojpsik_lite::ItsNClsJpsiDauPos,
153156
hf_cand_bplustojpsik_lite::TpcNClsCrossedRowsJpsiDauPos,
154157
hf_cand_bplustojpsik_lite::ItsChi2NClJpsiDauPos,
155158
hf_cand_bplustojpsik_lite::TpcChi2NClJpsiDauPos,
156159
hf_cand_bplustojpsik_lite::AbsEtaJpsiDauPos,
160+
hf_cand_bplustojpsik_lite::PtJpsiDauNeg,
157161
hf_cand_bplustojpsik_lite::ItsNClsJpsiDauNeg,
158162
hf_cand_bplustojpsik_lite::TpcNClsCrossedRowsJpsiDauNeg,
159163
hf_cand_bplustojpsik_lite::ItsChi2NClJpsiDauNeg,
@@ -366,6 +370,8 @@ struct HfTaskBplusToJpsiKReduced {
366370
auto const pVecMu0 = candidate.pVectorProng0();
367371
auto const pVecMu1 = candidate.pVectorProng1();
368372
auto ptJpsi = RecoDecay::pt(pVecMu0, pVecMu1);
373+
auto ptMuPos = RecoDecay::pt(pVecMu0);
374+
auto ptMuNeg = RecoDecay::pt(pVecMu1);
369375
auto invMassJpsi = RecoDecay::m(std::array{pVecMu0, pVecMu1}, std::array{o2::constants::physics::MassMuonPlus, o2::constants::physics::MassMuonMinus});
370376
uint8_t statusBplus = 0;
371377

@@ -459,11 +465,13 @@ struct HfTaskBplusToJpsiKReduced {
459465
ptJpsi,
460466
candidate.impactParameter0(),
461467
candidate.impactParameter1(),
468+
ptMuPos,
462469
candJpsi.itsNClsDauPos(),
463470
candJpsi.tpcNClsCrossedRowsDauPos(),
464471
candJpsi.itsChi2NClDauPos(),
465472
candJpsi.tpcChi2NClDauPos(),
466473
absEta(candJpsi.tglDauPos()),
474+
ptMuNeg,
467475
candJpsi.itsNClsDauNeg(),
468476
candJpsi.tpcNClsCrossedRowsDauNeg(),
469477
candJpsi.itsChi2NClDauNeg(),

‎PWGHF/D2H/Tasks/taskBsToJpsiPhiReduced.cxx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ namespace o2::aod
6565
namespace hf_cand_bstojpsiphi_lite
6666
{
6767
DECLARE_SOA_COLUMN(PtJpsi, ptJpsi, float); //! Transverse momentum of Jpsi daughter candidate (GeV/c)
68+
DECLARE_SOA_COLUMN(PtJpsiDauPos, ptJpsiDauPos, float); //! Transverse momentum of Jpsi positive daughter candidate (GeV/c)
69+
DECLARE_SOA_COLUMN(PtJpsiDauNeg, ptJpsiDauNeg, float); //! Transverse momentum of Jpsi negative daughter candidate (GeV/c)
6870
DECLARE_SOA_COLUMN(PtBach0, ptBach0, float); //! Transverse momentum of bachelor kaon(<- phi) (GeV/c)
6971
DECLARE_SOA_COLUMN(PtBach1, ptBach1, float); //! Transverse momentum of bachelor kaon(<- phi) (GeV/c)
7072
DECLARE_SOA_COLUMN(ItsNClsJpsiDauPos, itsNClsJpsiDauPos, int); //! Number of clusters in ITS
@@ -165,11 +167,13 @@ DECLARE_SOA_TABLE(HfRedCandBsLites, "AOD", "HFREDCANDBSLITE", //! Table with som
165167
hf_cand_bstojpsiphi_lite::ImpactParameterLfTrack0,
166168
hf_cand_bstojpsiphi_lite::ImpactParameterLfTrack1,
167169
// Jpsi daughter features
170+
hf_cand_bstojpsiphi_lite::PtJpsiDauPos,
168171
hf_cand_bstojpsiphi_lite::ItsNClsJpsiDauPos,
169172
hf_cand_bstojpsiphi_lite::TpcNClsCrossedRowsJpsiDauPos,
170173
hf_cand_bstojpsiphi_lite::ItsChi2NClJpsiDauPos,
171174
hf_cand_bstojpsiphi_lite::TpcChi2NClJpsiDauPos,
172175
hf_cand_bstojpsiphi_lite::AbsEtaJpsiDauPos,
176+
hf_cand_bstojpsiphi_lite::PtJpsiDauNeg,
173177
hf_cand_bstojpsiphi_lite::ItsNClsJpsiDauNeg,
174178
hf_cand_bstojpsiphi_lite::TpcNClsCrossedRowsJpsiDauNeg,
175179
hf_cand_bstojpsiphi_lite::ItsChi2NClJpsiDauNeg,
@@ -397,6 +401,8 @@ struct HfTaskBsToJpsiPhiReduced {
397401
auto const pVecKa0 = candidate.pVectorProng2();
398402
auto const pVecKa1 = candidate.pVectorProng3();
399403
auto ptJpsi = RecoDecay::pt(pVecMu0, pVecMu1);
404+
auto ptMuPos = RecoDecay::pt(pVecMu0);
405+
auto ptMuNeg = RecoDecay::pt(pVecMu1);
400406
auto ptPhi = RecoDecay::pt(pVecKa0, pVecKa1);
401407
auto invMassJpsi = RecoDecay::m(std::array{pVecMu0, pVecMu1}, std::array{o2::constants::physics::MassMuonPlus, o2::constants::physics::MassMuonMinus});
402408
auto invMassPhi = RecoDecay::m(std::array{pVecKa0, pVecKa1}, std::array{o2::constants::physics::MassKPlus, o2::constants::physics::MassKPlus});
@@ -499,11 +505,13 @@ struct HfTaskBsToJpsiPhiReduced {
499505
candidate.impactParameter1(),
500506
candidate.impactParameter2(),
501507
candidate.impactParameter3(),
508+
ptMuPos,
502509
candJpsi.itsNClsDauPos(),
503510
candJpsi.tpcNClsCrossedRowsDauPos(),
504511
candJpsi.itsChi2NClDauPos(),
505512
candJpsi.tpcChi2NClDauPos(),
506513
absEta(candJpsi.tglDauPos()),
514+
ptMuNeg,
507515
candJpsi.itsNClsDauNeg(),
508516
candJpsi.tpcNClsCrossedRowsDauNeg(),
509517
candJpsi.itsChi2NClDauNeg(),

0 commit comments

Comments
 (0)