@@ -676,12 +676,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(Pt, pt, //!
676676 [](float pxProng0, float pxProng1, float pxProng2, float pyProng0, float pyProng1, float pyProng2) -> float { return RecoDecay::pt ((1 .f * pxProng0 + 1 .f * pxProng1 + 1 .f * pxProng2), (1 .f * pyProng0 + 1 .f * pyProng1 + 1 .f * pyProng2)); });
677677DECLARE_SOA_DYNAMIC_COLUMN (InvMassDplus, invMassDplus,
678678 [](float px0, float py0, float pz0, float px1, float py1, float pz1, float px2, float py2, float pz2) -> float { return RecoDecay::m (std::array{std::array{px0, py0, pz0}, std::array{px1, py1, pz1}, std::array{px2, py2, pz2}}, std::array{constants::physics::MassPiPlus, constants::physics::MassKPlus, constants::physics::MassPiPlus}); });
679- DECLARE_SOA_DYNAMIC_COLUMN (InvMassDstar, invMassDstar,
680- [](float pxSoftPi, float pySoftPi, float pzSoftPi, float pxProng0, float pyProng0, float pzProng0, float pxProng1, float pyProng1, float pzProng1)
681- -> float { return RecoDecay::m (std::array{std::array{pxSoftPi, pySoftPi, pzSoftPi}, std::array{pxProng0, pyProng0, pzProng0}, std::array{pxProng1, pyProng1, pzProng1}}, std::array{constants::physics::MassPiPlus, constants::physics::MassPiPlus, constants::physics::MassKPlus}) - RecoDecay::m (std::array{std::array{pxProng0, pyProng0, pzProng0}, std::array{pxProng1, pyProng1, pzProng1}}, std::array{constants::physics::MassPiPlus, constants::physics::MassKPlus}); });
682- DECLARE_SOA_DYNAMIC_COLUMN (InvMassAntiDstar, invMassAntiDstar,
683- [](float pxSoftPi, float pySoftPi, float pzSoftPi, float pxProng0, float pyProng0, float pzProng0, float pxProng1, float pyProng1, float pzProng1)
684- -> float { return RecoDecay::m (std::array{std::array{pxSoftPi, pySoftPi, pzSoftPi}, std::array{pxProng0, pyProng0, pzProng0}, std::array{pxProng1, pyProng1, pzProng1}}, std::array{constants::physics::MassPiPlus, constants::physics::MassKPlus, constants::physics::MassPiPlus}) - RecoDecay::m (std::array{std::array{pxProng0, pyProng0, pzProng0}, std::array{pxProng1, pyProng1, pzProng1}}, std::array{constants::physics::MassKPlus, constants::physics::MassPiPlus}); });
679+ DECLARE_SOA_DYNAMIC_COLUMN (PVector, pVector,
680+ [](float px0, float py0, float pz0, float px1, float py1, float pz1, float px2, float py2, float pz2) -> std::array<float , 3 > { return std::array{px0 + px1 + px2, py0 + py1 + py2, pz0 + pz1 + pz2}; });
685681} // namespace hf_reso_3_prong
686682
687683namespace hf_reso_v0
@@ -707,6 +703,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(InvMassAntiLambda, invMassAntiLambda, //! mass under
707703 [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float { return RecoDecay::m (std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassProton}); });
708704DECLARE_SOA_DYNAMIC_COLUMN (InvMassK0s, invMassK0s, // ! mass under K0short hypothesis
709705 [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float { return RecoDecay::m (std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassPionCharged}); });
706+ DECLARE_SOA_DYNAMIC_COLUMN (PVector, pVector,
707+ [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> std::array<float , 3 > { return std::array{pxpos + pxneg, pypos + pyneg, pzpos + pzneg}; });
710708} // namespace hf_reso_v0
711709
712710DECLARE_SOA_TABLE (HfRedVzeros, " AOD" , " HFREDVZERO" , // ! Table with V0 candidate information for resonances reduced workflow
@@ -733,7 +731,10 @@ DECLARE_SOA_TABLE(HfRedVzeros, "AOD", "HFREDVZERO", //! Table with V0 candidate
733731 hf_reso_v0::InvMassLambda<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
734732 hf_reso_v0::InvMassAntiLambda<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
735733 hf_reso_v0::V0Radius<hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex>,
736- hf_reso_v0::Pt<hf_cand::PxProng0, hf_cand::PxProng1, hf_cand::PyProng0, hf_cand::PyProng1>);
734+ hf_reso_v0::Pt<hf_cand::PxProng0, hf_cand::PxProng1, hf_cand::PyProng0, hf_cand::PyProng1>,
735+ hf_cand::PVectorProng0<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0>,
736+ hf_cand::PVectorProng1<hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
737+ hf_reso_v0::PVector<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>);
737738
738739DECLARE_SOA_TABLE (HfRedTrkNoParams, " AOD" , " HFREDTRKNOPARAM" , // ! Table with tracks without track parameters for resonances reduced workflow
739740 o2::soa::Index<>,
@@ -786,15 +787,23 @@ DECLARE_SOA_TABLE(HfRed3PrNoTrks, "AOD", "HFRED3PRNOTRK", //! Table with 3 prong
786787 hf_track_vars_reduced::EtaProng1<hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
787788 hf_track_vars_reduced::EtaProng2<hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2>,
788789 hf_reso_3_prong::InvMassDplus<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1, hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2>,
789- hf_reso_3_prong::InvMassDstar<hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2, hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
790- hf_reso_3_prong::InvMassAntiDstar<hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2, hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
791- hf_reso_3_prong::Pt<hf_cand::PxProng0, hf_cand::PxProng1, hf_cand::PxProng2, hf_cand::PyProng0, hf_cand::PyProng1, hf_cand::PyProng2>);
790+ hf_cand_dstar::InvMassDstar<hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2, hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
791+ hf_cand_dstar::InvMassAntiDstar<hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2, hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
792+ hf_cand_dstar::InvMassD0<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
793+ hf_cand_dstar::InvMassD0Bar<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
794+ hf_reso_3_prong::Pt<hf_cand::PxProng0, hf_cand::PxProng1, hf_cand::PxProng2, hf_cand::PyProng0, hf_cand::PyProng1, hf_cand::PyProng2>,
795+ hf_cand::PVectorProng0<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0>,
796+ hf_cand::PVectorProng1<hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
797+ hf_cand::PVectorProng2<hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2>,
798+ hf_reso_3_prong::PVector<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1, hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2>);
792799
793800namespace hf_reso_cand_reduced
794801{
795802DECLARE_SOA_COLUMN (InvMass, invMass, float ); // ! Invariant mass in GeV/c2
796803DECLARE_SOA_COLUMN (InvMassProng0, invMassProng0, float ); // ! Invariant Mass of D daughter in GeV/c
797804DECLARE_SOA_COLUMN (InvMassProng1, invMassProng1, float ); // ! Invariant Mass of V0 daughter in GeV/c
805+ DECLARE_SOA_COLUMN (InvMassD0, invMassD0, float ); // ! Invariant Mass of potential D0 daughter
806+
798807DECLARE_SOA_COLUMN (MlScoreBkgProng0, mlScoreBkgProng0, float ); // ! Bkg ML score of the D daughter
799808DECLARE_SOA_COLUMN (MlScorePromptProng0, mlScorePromptProng0, float ); // ! Prompt ML score of the D daughter
800809DECLARE_SOA_COLUMN (MlScoreNonpromptProng0, mlScoreNonpromptProng0, float ); // ! Nonprompt ML score of the D daughter
@@ -823,10 +832,6 @@ DECLARE_SOA_DYNAMIC_COLUMN(CosThetaStarXiC3055, cosThetaStarXiC3055, //! costhet
823832
824833DECLARE_SOA_TABLE (HfCandCharmReso, " AOD" , " HFCANDCHARMRESO" , // ! Table with Resonance candidate information for resonances reduced workflow
825834 o2::soa::Index<>,
826- // Indices
827- hf_track_index_reduced::HfRedCollisionId,
828- hf_reso_cand_reduced::Prong0Id,
829- hf_reso_cand_reduced::Prong1Id,
830835 // Static
831836 hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0,
832837 hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1,
@@ -836,16 +841,25 @@ DECLARE_SOA_TABLE(HfCandCharmReso, "AOD", "HFCANDCHARMRESO", //! Table with Reso
836841 hf_reso_v0::Cpa,
837842 hf_reso_v0::Dca,
838843 hf_reso_v0::Radius,
844+ hf_reso_cand_reduced::InvMassD0,
839845 // Dynamic
840846 hf_reso_cand_reduced::Pt<hf_cand::PxProng0, hf_cand::PxProng1, hf_cand::PyProng0, hf_cand::PyProng1>,
841847 hf_reso_cand_reduced::PtProng0<hf_cand::PxProng0, hf_cand::PyProng0>,
842848 hf_reso_cand_reduced::PtProng1<hf_cand::PxProng1, hf_cand::PyProng1>,
849+ hf_reso_v0::Px<hf_cand::PxProng0, hf_cand::PxProng1>,
850+ hf_reso_v0::Py<hf_cand::PyProng0, hf_cand::PyProng1>,
851+ hf_reso_v0::Pz<hf_cand::PzProng0, hf_cand::PzProng1>,
843852 hf_cand::PVectorProng0<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0>,
844853 hf_cand::PVectorProng1<hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
845854 hf_reso_cand_reduced::CosThetaStarDs1<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1, hf_reso_cand_reduced::InvMass>,
846855 hf_reso_cand_reduced::CosThetaStarDs2Star<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1, hf_reso_cand_reduced::InvMass>,
847856 hf_reso_cand_reduced::CosThetaStarXiC3055<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1, hf_reso_cand_reduced::InvMass>);
848857
858+ DECLARE_SOA_TABLE (HfResoIndices, " AOD" , " HFRESOINDICES" , // ! Table with Indices of resonance daughters for MC matching
859+ hf_track_index_reduced::HfRedCollisionId,
860+ hf_reso_cand_reduced::Prong0Id,
861+ hf_reso_cand_reduced::Prong1Id);
862+
849863DECLARE_SOA_TABLE (HfCharmResoMLs, " AOD" , " HFCHARMRESOML" , // ! Table with ML scores for the D daughter
850864 hf_reso_cand_reduced::MlScoreBkgProng0,
851865 hf_reso_cand_reduced::MlScorePromptProng0,
0 commit comments