1717#ifndef PWGLF_DATAMODEL_VTX3BODYTABLES_H_
1818#define PWGLF_DATAMODEL_VTX3BODYTABLES_H_
1919
20- #include < cmath>
21- #include " Framework/AnalysisDataModel.h"
2220#include " Common/Core/RecoDecay.h"
21+
2322#include " CommonConstants/PhysicsConstants.h"
23+ #include " Framework/AnalysisDataModel.h"
24+
25+ #include < cmath>
2426
2527namespace o2 ::aod
2628{
@@ -30,8 +32,8 @@ namespace vtx3body
3032DECLARE_SOA_INDEX_COLUMN_FULL (TrackPr, trackPr, int , Tracks, " _pr" ); // !
3133DECLARE_SOA_INDEX_COLUMN_FULL (TrackPi, trackPi, int , Tracks, " _pi" ); // !
3234DECLARE_SOA_INDEX_COLUMN_FULL (TrackDe, trackDe, int , Tracks, " _de" ); // !
33- DECLARE_SOA_INDEX_COLUMN (Collision, collision); // !
34- DECLARE_SOA_INDEX_COLUMN (Decay3Body, decay3body); // !
35+ DECLARE_SOA_INDEX_COLUMN (Collision, collision); // !
36+ DECLARE_SOA_INDEX_COLUMN (Decay3Body, decay3body); // !
3537
3638// General 3 body Vtx properties
3739DECLARE_SOA_COLUMN (Mass, mass, float ); // ! candidate mass (with H3L or Anti-H3L mass hypothesis depending on deuteron charge)
@@ -70,6 +72,12 @@ DECLARE_SOA_COLUMN(DCATrackPiToSV, dcaTrackPiToSv, float); //! DCA of pion to
7072DECLARE_SOA_COLUMN (DCATrackDeToSV, dcaTrackDeToSv, float ); // ! DCA of deuteron to SV
7173DECLARE_SOA_COLUMN (DCAVtxDaughters, dcaVtxdaughters, float ); // ! Quadratic sum of DCA between daughters at SV
7274
75+ // CosPA
76+ DECLARE_SOA_COLUMN (CosPA, cosPA, float ); // ! Cosine of pointing angle of the 3body candidate
77+
78+ // Ct
79+ DECLARE_SOA_COLUMN (Ct, ct, float ); // ! Reconstruction Ct of 3body candidate
80+
7381// Strangeness tracking
7482DECLARE_SOA_COLUMN (TrackedClSize, trackedClSize, float ); // ! Average ITS cluster size of strangeness tracked 3body
7583
@@ -145,10 +153,6 @@ DECLARE_SOA_DYNAMIC_COLUMN(DistOverTotMom, distovertotmom, //! PV to 3 body deca
145153 return std::sqrt (std::pow (X - pvX, 2 ) + std::pow (Y - pvY, 2 ) + std::pow (Z - pvZ, 2 )) / (P + 1E-10 );
146154 });
147155
148- // CosPA
149- DECLARE_SOA_DYNAMIC_COLUMN (VtxCosPA, vtxcosPA, // ! 3 body vtx CosPA
150- [](float X, float Y, float Z, float Px, float Py, float Pz, float pvX, float pvY, float pvZ) -> float { return RecoDecay::cpa (std::array{pvX, pvY, pvZ}, std::array{X, Y, Z}, std::array{Px, Py, Pz}); });
151-
152156// Dca to PV
153157DECLARE_SOA_DYNAMIC_COLUMN (DCAVtxToPV, dcavtxtopv, // ! DCA of 3 body vtx to PV
154158 [](float X, float Y, float Z, float Px, float Py, float Pz, float pvX, float pvY, float pvZ) -> float { return std::sqrt ((std::pow ((pvY - Y) * Pz - (pvZ - Z) * Py, 2 ) + std::pow ((pvX - X) * Pz - (pvZ - Z) * Px, 2 ) + std::pow ((pvX - X) * Py - (pvY - Y) * Px, 2 )) / (Px * Px + Py * Py + Pz * Pz)); });
@@ -207,6 +211,7 @@ DECLARE_SOA_TABLE(Vtx3BodyDatas, "AOD", "VTX3BODYDATA", //!
207211 vtx3body::DCAZTrackPrToPV, vtx3body::DCAZTrackPiToPV, vtx3body::DCAZTrackDeToPV,
208212 vtx3body::DCATrackPrToSV, vtx3body::DCATrackPiToSV, vtx3body::DCATrackDeToSV,
209213 vtx3body::DCAVtxDaughters,
214+ vtx3body::CosPA, vtx3body::Ct,
210215 vtx3body::TPCNSigmaPr, vtx3body::TPCNSigmaPi, vtx3body::TPCNSigmaDe, vtx3body::TPCNSigmaPiBach,
211216 vtx3body::TOFNSigmaDe,
212217 vtx3body::ITSClSizePr, vtx3body::ITSClSizePi, vtx3body::ITSClSizeDe,
@@ -218,7 +223,6 @@ DECLARE_SOA_TABLE(Vtx3BodyDatas, "AOD", "VTX3BODYDATA", //!
218223 vtx3body::Pt<vtx3body::Px, vtx3body::Py>,
219224 vtx3body::VtxRadius<vtx3body::X, vtx3body::Y>,
220225 vtx3body::DistOverTotMom<vtx3body::X, vtx3body::Y, vtx3body::Z, vtx3body::Px, vtx3body::Py, vtx3body::Pz>,
221- vtx3body::VtxCosPA<vtx3body::X, vtx3body::Y, vtx3body::Z, vtx3body::Px, vtx3body::Py, vtx3body::Pz>,
222226 vtx3body::DCAVtxToPV<vtx3body::X, vtx3body::Y, vtx3body::Z, vtx3body::Px, vtx3body::Py, vtx3body::Pz>,
223227
224228 // Longitudinal
@@ -256,6 +260,7 @@ DECLARE_SOA_TABLE(McVtx3BodyDatas, "AOD", "MC3BODYDATA", //!
256260 vtx3body::DCAZTrackPrToPV, vtx3body::DCAZTrackPiToPV, vtx3body::DCAZTrackDeToPV,
257261 vtx3body::DCATrackPrToSV, vtx3body::DCATrackPiToSV, vtx3body::DCATrackDeToSV,
258262 vtx3body::DCAVtxDaughters,
263+ vtx3body::CosPA, vtx3body::Ct,
259264 vtx3body::TPCNSigmaPr, vtx3body::TPCNSigmaPi, vtx3body::TPCNSigmaDe, vtx3body::TPCNSigmaPiBach,
260265 vtx3body::TOFNSigmaDe,
261266 vtx3body::ITSClSizePr, vtx3body::ITSClSizePi, vtx3body::ITSClSizeDe,
@@ -283,7 +288,6 @@ DECLARE_SOA_TABLE(McVtx3BodyDatas, "AOD", "MC3BODYDATA", //!
283288 vtx3body::VtxRadius<vtx3body::X, vtx3body::Y>,
284289 vtx3body::GenRadius<vtx3body::GenX, vtx3body::GenY>,
285290 vtx3body::DistOverTotMom<vtx3body::X, vtx3body::Y, vtx3body::Z, vtx3body::Px, vtx3body::Py, vtx3body::Pz>,
286- vtx3body::VtxCosPA<vtx3body::X, vtx3body::Y, vtx3body::Z, vtx3body::Px, vtx3body::Py, vtx3body::Pz>,
287291 vtx3body::DCAVtxToPV<vtx3body::X, vtx3body::Y, vtx3body::Z, vtx3body::Px, vtx3body::Py, vtx3body::Pz>,
288292
289293 // Longitudinal
0 commit comments