@@ -709,38 +709,38 @@ DECLARE_SOA_DYNAMIC_COLUMN(PFracNeg, pfracneg,
709709
710710// Calculated on the fly with mass assumption + dynamic tables
711711DECLARE_SOA_DYNAMIC_COLUMN (MLambda, mLambda , // ! mass under lambda hypothesis
712- [](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
713- if (v0type== 1 ) {
714- return RecoDecay::m (std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
715- };
716- return 0 .0f ; // do not provide valid mass if TPC-only
717- });
712+ [](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
713+ if (v0type == 1 ) {
714+ return RecoDecay::m (std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
715+ };
716+ return 0 .0f ; // do not provide valid mass if TPC-only
717+ });
718718DECLARE_SOA_DYNAMIC_COLUMN (MAntiLambda, mAntiLambda , // ! mass under antilambda hypothesis
719- [](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
720- if (v0type== 1 ) {
721- 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});
722- };
723- return 0 .0f ; // do not provide valid mass if TPC-only
724- });
719+ [](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
720+ if (v0type == 1 ) {
721+ 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});
722+ };
723+ return 0 .0f ; // do not provide valid mass if TPC-only
724+ });
725725DECLARE_SOA_DYNAMIC_COLUMN (MK0Short, mK0Short , // ! mass under K0short hypothesis
726- [](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
727- if (v0type== 1 ) {
728- 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});
729- };
730- return 0 .0f ; // do not provide valid mass if TPC-only
731- });
726+ [](int v0type, float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
727+ if (v0type == 1 ) {
728+ 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});
729+ };
730+ return 0 .0f ; // do not provide valid mass if TPC-only
731+ });
732732DECLARE_SOA_DYNAMIC_COLUMN (MLambda_unchecked, mLambda_unchecked , // ! mass under lambda hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
733733 [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
734- return RecoDecay::m (std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
735- });
734+ return RecoDecay::m (std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
735+ });
736736DECLARE_SOA_DYNAMIC_COLUMN (MAntiLambda_unchecked, mAntiLambda_unchecked , // ! mass under antilambda hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
737- [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
738- 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});
739- });
737+ [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
738+ 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});
739+ });
740740DECLARE_SOA_DYNAMIC_COLUMN (MK0Short_unchecked, mK0Short_unchecked , // ! mass under K0short hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
741- [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
742- 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});
743- });
741+ [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
742+ 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});
743+ });
744744DECLARE_SOA_DYNAMIC_COLUMN (MGamma, mGamma , // ! mass under gamma hypothesis
745745 [](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::MassElectron, o2::constants::physics::MassElectron}); });
746746// Account for rigidity in case of hypertriton
@@ -824,20 +824,21 @@ DECLARE_SOA_DYNAMIC_COLUMN(PtMC, ptMC, //! V0 pT
824824
825825// declare legacy mass getters in v0data legacy name space
826826// caution: these do not have intrinsic protection against photon candidates
827- namespace legacy {
827+ namespace legacy
828+ {
828829DECLARE_SOA_DYNAMIC_COLUMN (MLambda, mLambda , // ! mass under lambda hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
829830 [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
830- return RecoDecay::m (std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
831- });
831+ return RecoDecay::m (std::array{std::array{pxpos, pypos, pzpos}, std::array{pxneg, pyneg, pzneg}}, std::array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});
832+ });
832833DECLARE_SOA_DYNAMIC_COLUMN (MAntiLambda, mAntiLambda , // ! mass under antilambda hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
833- [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
834- 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});
835- });
834+ [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
835+ 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});
836+ });
836837DECLARE_SOA_DYNAMIC_COLUMN (MK0Short, mK0Short , // ! mass under K0short hypothesis without v0 type check (will include TPC only and potentially duplicates! use with care)
837- [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
838- 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});
839- });
840- } // namespace v0data:: legacy
838+ [](float pxpos, float pypos, float pzpos, float pxneg, float pyneg, float pzneg) -> float {
839+ 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});
840+ });
841+ } // namespace legacy
841842} // namespace v0data
842843
843844DECLARE_SOA_TABLE (V0Indices, " AOD" , " V0INDEX" , // ! index table when using AO2Ds
0 commit comments