@@ -91,7 +91,7 @@ DECLARE_SOA_COLUMN(TpcChi2NClLfTrack1, tpcChi2NClLfTrack1, float);
9191DECLARE_SOA_COLUMN (AbsEtaLfTrack1, absEtaLfTrack1, float ); // ! |eta|
9292DECLARE_SOA_COLUMN (MJpsi, mJpsi , float ); // ! Invariant mass of Jpsi daughter candidates (GeV/c)
9393DECLARE_SOA_COLUMN (MK0Star, mK0Star , float ); // ! Invariant mass of K*0 daughter candidates (GeV/c)
94- DECLARE_SOA_COLUMN (M, m, float ); // ! Invariant mass of candidate (GeV/c2)
94+ DECLARE_SOA_COLUMN (M, m, float ); // ! Invariant mass of candidate particle (GeV/c2)
9595DECLARE_SOA_COLUMN (Pt, pt, float ); // ! Transverse momentum of candidate (GeV/c)
9696DECLARE_SOA_COLUMN (PtGen, ptGen, float ); // ! Transverse momentum of candidate (GeV/c)
9797DECLARE_SOA_COLUMN (P, p, float ); // ! Momentum of candidate (GeV/c)
@@ -127,7 +127,7 @@ DECLARE_SOA_COLUMN(DecayLength, decayLength, float);
127127DECLARE_SOA_COLUMN (DecayLengthXY, decayLengthXY, float ); // ! Transverse decay length of candidate (cm)
128128DECLARE_SOA_COLUMN (DecayLengthNormalised, decayLengthNormalised, float ); // ! Normalised decay length of candidate
129129DECLARE_SOA_COLUMN (DecayLengthXYNormalised, decayLengthXYNormalised, float ); // ! Normalised transverse decay length of candidate
130- DECLARE_SOA_COLUMN (CtXY, ctXY, float ); // ! Pseudo-proper decay length of candidate
130+ DECLARE_SOA_COLUMN (CtXY, ctXY, float ); // ! Pseudo-proper decay length of candidate particle
131131DECLARE_SOA_COLUMN (ImpactParameterProduct, impactParameterProduct, float ); // ! Impact parameter product of B daughters
132132DECLARE_SOA_COLUMN (ImpactParameterProductJpsi, impactParameterProductJpsi, float ); // ! Impact parameter product of Jpsi daughters
133133DECLARE_SOA_COLUMN (ImpactParameterProductK0Star, impactParameterProductK0Star, float ); // ! Impact parameter product of K*0 daughters
@@ -154,6 +154,7 @@ DECLARE_SOA_TABLE(HfRedCandB0Lites, "AOD", "HFREDCANDB0LITE", //! Table with som
154154 hf_cand_b0tojpsik0star_lite::Y,
155155 hf_cand_b0tojpsik0star_lite::Cpa,
156156 hf_cand_b0tojpsik0star_lite::CpaXY,
157+ hf_cand_b0tojpsik0star_lite::CpaJpsi,
157158 hf_cand::Chi2PCA,
158159 hf_cand_b0tojpsik0star_lite::DecayLength,
159160 hf_cand_b0tojpsik0star_lite::DecayLengthXY,
@@ -565,37 +566,35 @@ struct HfTaskB0ToJpsiK0StarReduced {
565566 }
566567
567568 auto fillTable = [&](bool isSelKPi) {
568- auto ctXY = isSelKPi ? candidate.ctXY (std::array{o2::constants::physics::MassMuon, o2::constants::physics::MassMuon, o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus})
569- : candidate.ctXY (std::array{o2::constants::physics::MassMuon, o2::constants::physics::MassMuon, o2::constants::physics::MassPiPlus, o2::constants::physics::MassKPlus});
570- auto mlScoreSig = isSelKPi ? mlScoreSigKPi : mlScoreSigPiK;
571- auto invMassB0 = isSelKPi ? invMassB0KPi : invMassB0PiK;
572- auto invMassK0Star = isSelKPi ? invMassK0StarKPi : invMassK0StarPiK;
569+ auto ctXY = candidate.ctXY (std::array{o2::constants::physics::MassMuon, o2::constants::physics::MassMuon, o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus});
570+ auto ctXYBar = candidate.ctXY (std::array{o2::constants::physics::MassMuon, o2::constants::physics::MassMuon, o2::constants::physics::MassPiPlus, o2::constants::physics::MassKPlus});
573571 hfRedCandB0Lite (
574572 // B0 - meson features
575- invMassB0 ,
573+ isSelKPi ? invMassB0KPi : invMassB0PiK ,
576574 ptCandB0,
577575 candidate.eta (),
578576 candidate.phi (),
579577 HfHelper::yB0 (candidate),
580578 candidate.cpa (),
581579 candidate.cpaXY (),
580+ candidate.cpaJpsi (),
582581 candidate.chi2PCA (),
583582 candidate.decayLength (),
584583 candidate.decayLengthXY (),
585584 candidate.decayLengthNormalised (),
586585 candidate.decayLengthXYNormalised (),
587- ctXY,
586+ isSelKPi ? ctXY : ctXYBar ,
588587 candidate.impactParameterProduct (),
589588 candidate.impactParameterProductJpsi (),
590589 candidate.impactParameterProductK0Star (),
591590 candidate.maxNormalisedDeltaIP (),
592- mlScoreSig ,
591+ isSelKPi ? mlScoreSigKPi : mlScoreSigPiK ,
593592 isSelKPi ? statusB0KPi : -1 ,
594593 isSelKPi ? -1 : statusB0PiK,
595594 // J/Psi features
596595 invMassJpsi,
597596 ptJpsi,
598- invMassK0Star ,
597+ isSelKPi ? invMassK0StarKPi : invMassK0StarPiK ,
599598 candidate.impactParameter0 (),
600599 candidate.impactParameter1 (),
601600 candidate.impactParameter2 (),
0 commit comments