@@ -212,15 +212,18 @@ DECLARE_SOA_COLUMN(GammaPdgCode, gammaPdgCode, int); //! PDG code
212212DECLARE_SOA_COLUMN (GammaMotherPdgCode, gammaMotherPdgCode, int ); // ! PDG code of the photon's MC mother (expected: pi0)
213213DECLARE_SOA_COLUMN (GammaGMotherPdgCode, gammaGMotherPdgCode, int ); // ! PDG code of the photon's MC grandmother (expected: Sigma+)
214214
215- DECLARE_SOA_COLUMN (XDecVtxMC, xDecVtxMC, float ); // ! MC-truth Sigma+ decay vertex (x direction)
216- DECLARE_SOA_COLUMN (YDecVtxMC, yDecVtxMC, float ); // ! MC-truth Sigma+ decay vertex (y direction)
217- DECLARE_SOA_COLUMN (ZDecVtxMC, zDecVtxMC, float ); // ! MC-truth Sigma+ decay vertex (z direction)
218- DECLARE_SOA_COLUMN (PxProtonMC, pxProtonMC, float ); // ! MC-truth proton Px
219- DECLARE_SOA_COLUMN (PyProtonMC, pyProtonMC, float ); // ! MC-truth proton Py
220- DECLARE_SOA_COLUMN (PzProtonMC, pzProtonMC, float ); // ! MC-truth proton Pz
221- DECLARE_SOA_COLUMN (PxGammaMC, pxGammaMC, float ); // ! MC-truth momentum of the measured photon (Px)
222- DECLARE_SOA_COLUMN (PyGammaMC, pyGammaMC, float ); // ! MC-truth momentum of the measured photon (Py)
223- DECLARE_SOA_COLUMN (PzGammaMC, pzGammaMC, float ); // ! MC-truth momentum of the measured photon (Pz)
215+ DECLARE_SOA_COLUMN (XDecVtxMC, xDecVtxMC, float ); // ! MC-truth Sigma+ decay vertex (x direction)
216+ DECLARE_SOA_COLUMN (YDecVtxMC, yDecVtxMC, float ); // ! MC-truth Sigma+ decay vertex (y direction)
217+ DECLARE_SOA_COLUMN (ZDecVtxMC, zDecVtxMC, float ); // ! MC-truth Sigma+ decay vertex (z direction)
218+ DECLARE_SOA_COLUMN (PxSigmaPlusMC, pxSigmaPlusMC, float ); // ! MC-truth Sigma+ mother Px
219+ DECLARE_SOA_COLUMN (PySigmaPlusMC, pySigmaPlusMC, float ); // ! MC-truth Sigma+ mother Py
220+ DECLARE_SOA_COLUMN (PzSigmaPlusMC, pzSigmaPlusMC, float ); // ! MC-truth Sigma+ mother Pz
221+ DECLARE_SOA_COLUMN (PxProtonMC, pxProtonMC, float ); // ! MC-truth proton Px
222+ DECLARE_SOA_COLUMN (PyProtonMC, pyProtonMC, float ); // ! MC-truth proton Py
223+ DECLARE_SOA_COLUMN (PzProtonMC, pzProtonMC, float ); // ! MC-truth proton Pz
224+ DECLARE_SOA_COLUMN (PxGammaMC, pxGammaMC, float ); // ! MC-truth momentum of the measured photon (Px)
225+ DECLARE_SOA_COLUMN (PyGammaMC, pyGammaMC, float ); // ! MC-truth momentum of the measured photon (Py)
226+ DECLARE_SOA_COLUMN (PzGammaMC, pzGammaMC, float ); // ! MC-truth momentum of the measured photon (Pz)
224227
225228// DYNAMIC COLUMNS
226229
@@ -244,6 +247,12 @@ DECLARE_SOA_DYNAMIC_COLUMN(MassSigmaPlus, massSigmaPlus, //! Invariant mass of t
244247 std::array{pxGamma2, pyGamma2, pzGamma2}},
245248 std::array{o2::constants::physics::MassProton, o2::constants::physics::MassGamma, o2::constants::physics::MassGamma}); });
246249
250+ DECLARE_SOA_DYNAMIC_COLUMN (PtSigmaPlusMC, ptSigmaPlusMC, // ! True pT of the Sigma+ mother
251+ [](float pxSigmaPlusMC, float pySigmaPlusMC) -> float { return std::hypot (pxSigmaPlusMC, pySigmaPlusMC); });
252+
253+ DECLARE_SOA_DYNAMIC_COLUMN (YSigmaPlusMC, ySigmaPlusMC, // ! True rapidity of the Sigma+ mother
254+ [](float pxSigmaPlusMC, float pySigmaPlusMC, float pzSigmaPlusMC) -> float { return RecoDecay::y (std::array{pxSigmaPlusMC, pySigmaPlusMC, pzSigmaPlusMC}, o2::constants::physics::MassSigmaPlus); });
255+
247256} // namespace sigmapluscand
248257
249258DECLARE_SOA_TABLE (SigmaPlusCands, " AOD" , " SIGMAPLUSCANDS" ,
@@ -286,13 +295,16 @@ DECLARE_SOA_TABLE(SigmaPlusCandsMC, "AOD", "SIGMAPLUSMC",
286295 sigmapluscand::XDecVtxMC, sigmapluscand::YDecVtxMC, sigmapluscand::ZDecVtxMC,
287296 sigmapluscand::PxProtonMC, sigmapluscand::PyProtonMC, sigmapluscand::PzProtonMC,
288297 sigmapluscand::PxGammaMC, sigmapluscand::PyGammaMC, sigmapluscand::PzGammaMC,
298+ sigmapluscand::PxSigmaPlusMC, sigmapluscand::PySigmaPlusMC, sigmapluscand::PzSigmaPlusMC,
289299
290300 // dynamic columns
291301 sigmapluscand::PxSigmaPlus<sigmapluscand::PxProton, sigmapluscand::PxGamma1, sigmapluscand::PxGamma2>,
292302 sigmapluscand::PySigmaPlus<sigmapluscand::PyProton, sigmapluscand::PyGamma1, sigmapluscand::PyGamma2>,
293303 sigmapluscand::PzSigmaPlus<sigmapluscand::PzProton, sigmapluscand::PzGamma1, sigmapluscand::PzGamma2>,
294304 sigmapluscand::PtSigmaPlus<sigmapluscand::PxProton, sigmapluscand::PxGamma1, sigmapluscand::PxGamma2, sigmapluscand::PyProton, sigmapluscand::PyGamma1, sigmapluscand::PyGamma2>,
295- sigmapluscand::MassSigmaPlus<sigmapluscand::PxProton, sigmapluscand::PyProton, sigmapluscand::PzProton, sigmapluscand::PxGamma1, sigmapluscand::PyGamma1, sigmapluscand::PzGamma1, sigmapluscand::PxGamma2, sigmapluscand::PyGamma2, sigmapluscand::PzGamma2>);
305+ sigmapluscand::MassSigmaPlus<sigmapluscand::PxProton, sigmapluscand::PyProton, sigmapluscand::PzProton, sigmapluscand::PxGamma1, sigmapluscand::PyGamma1, sigmapluscand::PzGamma1, sigmapluscand::PxGamma2, sigmapluscand::PyGamma2, sigmapluscand::PzGamma2>,
306+ sigmapluscand::PtSigmaPlusMC<sigmapluscand::PxSigmaPlusMC, sigmapluscand::PySigmaPlusMC>,
307+ sigmapluscand::YSigmaPlusMC<sigmapluscand::PxSigmaPlusMC, sigmapluscand::PySigmaPlusMC, sigmapluscand::PzSigmaPlusMC>);
296308
297309} // namespace o2::aod
298310
0 commit comments