@@ -91,7 +91,9 @@ 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 (MK0StarBar, mK0StarBar , float ); // ! Invariant mass of K*0bar daughter candidates (GeV/c)
95+ DECLARE_SOA_COLUMN (M, m, float ); // ! Invariant mass of candidate particle (GeV/c2)
96+ DECLARE_SOA_COLUMN (MBar, mBar , float ); // ! Invariant mass of candidate antiparticle (GeV/c2)
9597DECLARE_SOA_COLUMN (Pt, pt, float ); // ! Transverse momentum of candidate (GeV/c)
9698DECLARE_SOA_COLUMN (PtGen, ptGen, float ); // ! Transverse momentum of candidate (GeV/c)
9799DECLARE_SOA_COLUMN (P, p, float ); // ! Momentum of candidate (GeV/c)
@@ -127,7 +129,8 @@ DECLARE_SOA_COLUMN(DecayLength, decayLength, float);
127129DECLARE_SOA_COLUMN (DecayLengthXY, decayLengthXY, float ); // ! Transverse decay length of candidate (cm)
128130DECLARE_SOA_COLUMN (DecayLengthNormalised, decayLengthNormalised, float ); // ! Normalised decay length of candidate
129131DECLARE_SOA_COLUMN (DecayLengthXYNormalised, decayLengthXYNormalised, float ); // ! Normalised transverse decay length of candidate
130- DECLARE_SOA_COLUMN (CtXY, ctXY, float ); // ! Pseudo-proper decay length of candidate
132+ DECLARE_SOA_COLUMN (CtXY, ctXY, float ); // ! Pseudo-proper decay length of candidate particle
133+ DECLARE_SOA_COLUMN (CtXYBar, ctXYBar, float ); // ! Pseudo-proper decay length of candidate antiparticle
131134DECLARE_SOA_COLUMN (ImpactParameterProduct, impactParameterProduct, float ); // ! Impact parameter product of B daughters
132135DECLARE_SOA_COLUMN (ImpactParameterProductJpsi, impactParameterProductJpsi, float ); // ! Impact parameter product of Jpsi daughters
133136DECLARE_SOA_COLUMN (ImpactParameterProductK0Star, impactParameterProductK0Star, float ); // ! Impact parameter product of K*0 daughters
@@ -148,18 +151,21 @@ DECLARE_SOA_COLUMN(FlagWrongCollision, flagWrongCollision, int8_t);
148151
149152DECLARE_SOA_TABLE (HfRedCandB0Lites, " AOD" , " HFREDCANDB0LITE" , // ! Table with some B0 properties
150153 hf_cand_b0tojpsik0star_lite::M,
154+ hf_cand_b0tojpsik0star_lite::MBar,
151155 hf_cand_b0tojpsik0star_lite::Pt,
152156 hf_cand_b0tojpsik0star_lite::Eta,
153157 hf_cand_b0tojpsik0star_lite::Phi,
154158 hf_cand_b0tojpsik0star_lite::Y,
155159 hf_cand_b0tojpsik0star_lite::Cpa,
156160 hf_cand_b0tojpsik0star_lite::CpaXY,
161+ hf_cand_b0tojpsik0star_lite::CpaJpsi,
157162 hf_cand::Chi2PCA,
158163 hf_cand_b0tojpsik0star_lite::DecayLength,
159164 hf_cand_b0tojpsik0star_lite::DecayLengthXY,
160165 hf_cand_b0tojpsik0star_lite::DecayLengthNormalised,
161166 hf_cand_b0tojpsik0star_lite::DecayLengthXYNormalised,
162167 hf_cand_b0tojpsik0star_lite::CtXY,
168+ hf_cand_b0tojpsik0star_lite::CtXYBar,
163169 hf_cand_b0tojpsik0star_lite::ImpactParameterProduct,
164170 hf_cand_b0tojpsik0star_lite::ImpactParameterProductJpsi,
165171 hf_cand_b0tojpsik0star_lite::ImpactParameterProductK0Star,
@@ -171,6 +177,7 @@ DECLARE_SOA_TABLE(HfRedCandB0Lites, "AOD", "HFREDCANDB0LITE", //! Table with som
171177 hf_cand_b0tojpsik0star_lite::MJpsi,
172178 hf_cand_b0tojpsik0star_lite::PtJpsi,
173179 hf_cand_b0tojpsik0star_lite::MK0Star,
180+ hf_cand_b0tojpsik0star_lite::MK0StarBar,
174181 hf_cand_b0tojpsik0star_lite::ImpactParameterJpsiDauPos,
175182 hf_cand_b0tojpsik0star_lite::ImpactParameterJpsiDauNeg,
176183 hf_cand_b0tojpsik0star_lite::ImpactParameterLfTrack0,
@@ -565,37 +572,39 @@ struct HfTaskB0ToJpsiK0StarReduced {
565572 }
566573
567574 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;
575+ auto ctXY = candidate.ctXY (std::array{o2::constants::physics::MassMuon, o2::constants::physics::MassMuon, o2::constants::physics::MassKPlus, o2::constants::physics::MassPiPlus});
576+ auto ctXYBar = candidate.ctXY (std::array{o2::constants::physics::MassMuon, o2::constants::physics::MassMuon, o2::constants::physics::MassPiPlus, o2::constants::physics::MassKPlus});
577+ auto mlScoreSig = TESTBIT (isSelKPi, SelectionStep::RecoPID) ? mlScoreSigKPi : mlScoreSigPiK;
573578 hfRedCandB0Lite (
574579 // B0 - meson features
575- invMassB0,
580+ invMassB0KPi,
581+ invMassB0PiK,
576582 ptCandB0,
577583 candidate.eta (),
578584 candidate.phi (),
579585 HfHelper::yB0 (candidate),
580586 candidate.cpa (),
581587 candidate.cpaXY (),
588+ candidate.cpaJpsi (),
582589 candidate.chi2PCA (),
583590 candidate.decayLength (),
584591 candidate.decayLengthXY (),
585592 candidate.decayLengthNormalised (),
586593 candidate.decayLengthXYNormalised (),
587594 ctXY,
595+ ctXYBar,
588596 candidate.impactParameterProduct (),
589597 candidate.impactParameterProductJpsi (),
590598 candidate.impactParameterProductK0Star (),
591599 candidate.maxNormalisedDeltaIP (),
592600 mlScoreSig,
593- isSelKPi ? statusB0KPi : - 1 ,
594- isSelKPi ? - 1 : statusB0PiK,
601+ statusB0KPi,
602+ statusB0PiK,
595603 // J/Psi features
596604 invMassJpsi,
597605 ptJpsi,
598- invMassK0Star,
606+ invMassK0StarKPi,
607+ invMassK0StarPiK,
599608 candidate.impactParameter0 (),
600609 candidate.impactParameter1 (),
601610 candidate.impactParameter2 (),
0 commit comments