1+ // Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+ // See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+ // All rights not expressly granted are reserved.
4+ //
5+ // This software is distributed under the terms of the GNU General Public
6+ // License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+ //
8+ // In applying this license CERN does not waive the privileges and immunities
9+ // granted to it by virtue of its status as an Intergovernmental Organization
10+ // or submit itself to any jurisdiction.
11+
12+ // /
13+ // / \file LFHypernucleiTables.h
14+ // / \brief Slim hypernuclei tables
15+ // /
16+
17+ #include " Framework/AnalysisDataModel.h"
18+ #include " Framework/ASoAHelpers.h"
19+
20+ #ifndef PWGLF_DATAMODEL_LFHYPERNUCLEITABLES_H_
21+ #define PWGLF_DATAMODEL_LFHYPERNUCLEITABLES_H_
22+
23+ namespace o2 ::aod
24+ {
25+ namespace hyperrec
26+ {
27+ DECLARE_SOA_COLUMN (IsMatter, isMatter, bool ); // bool: true for matter
28+ DECLARE_SOA_COLUMN (Pt, pt, float ); // Momentum of the candidate (x direction)
29+ DECLARE_SOA_COLUMN (Phi, phi, float ); // Momentum of the candidate (y direction)
30+ DECLARE_SOA_COLUMN (Eta, eta, float ); // Momentum of the candidate (z direction)
31+ DECLARE_SOA_COLUMN (XDecVtx, xDecVtx, float ); // Decay vertex of the candidate (x direction)
32+ DECLARE_SOA_COLUMN (YDecVtx, yDecVtx, float ); // Decay vertex of the candidate (y direction)
33+ DECLARE_SOA_COLUMN (ZDecVtx, zDecVtx, float ); // Decay vertex of the candidate (z direction)
34+ DECLARE_SOA_COLUMN (MassH3L, massH3L, float ); // Squared mass w/ hypertriton mass hypo
35+ DECLARE_SOA_COLUMN (MassH4L, massH4L, float ); // Squared mass w/ H4L mass hypo
36+ DECLARE_SOA_COLUMN (DcaV0Daug, dcaV0Daug, float ); // DCA between daughters
37+ DECLARE_SOA_COLUMN (CosPA, cosPA, double ); // Cosine of the pointing angle
38+ DECLARE_SOA_COLUMN (NSigmaHe, nSigmaHe, float ); // Number of sigmas of the He daughter
39+ DECLARE_SOA_COLUMN (NTPCclusHe, nTPCclusHe, uint8_t ); // Number of TPC clusters of the He daughter
40+ DECLARE_SOA_COLUMN (NTPCclusPi, nTPCclusPi, uint8_t ); // Number of TPC clusters of the Pi daughter
41+ DECLARE_SOA_COLUMN (TPCsignalHe, tpcSignalHe, uint16_t ); // TPC signal of the He daughter
42+ DECLARE_SOA_COLUMN (TPCsignalPi, tpcSignalPi, uint16_t ); // TPC signal of the Pi daughter
43+ DECLARE_SOA_COLUMN (TPCmomHe, tpcMomHe, float ); // TPC momentum of the He daughter
44+ DECLARE_SOA_COLUMN (TPCmomPi, tpcMomPi, float ); // TPC momentum of the Pi daughter
45+ DECLARE_SOA_COLUMN (DcaHe, dcaHe, float ); // DCA between He daughter and V0
46+ DECLARE_SOA_COLUMN (DcaPi, dcaPi, float ); // DCA between pi daughter and V0
47+ DECLARE_SOA_COLUMN (GenPt, genPt, float ); // Momentum of the candidate (x direction)
48+ DECLARE_SOA_COLUMN (GenPhi, genPhi, float ); // Momentum of the candidate (y direction)
49+ DECLARE_SOA_COLUMN (GenEta, genEta, float ); // Momentum of the candidate (z direction)
50+ DECLARE_SOA_COLUMN (GenXDecVtx, genXDecVtx, float ); // Decay vertex of the candidate (x direction)
51+ DECLARE_SOA_COLUMN (GenYDecVtx, genYDecVtx, float ); // Decay vertex of the candidate (y direction)
52+ DECLARE_SOA_COLUMN (GenZDecVtx, genZDecVtx, float ); // Decay vertex of the candidate (z direction)
53+ DECLARE_SOA_COLUMN (IsReco, isReco, bool ); // bool: true for reco
54+ DECLARE_SOA_COLUMN (IsSignal, isSignal, bool ); // bool: true for signal
55+ } // namespace hyperrec
56+
57+ DECLARE_SOA_TABLE (DataHypCands, " AOD" , " DATAHYPCANDS" ,
58+ o2::soa::Index<>,
59+ hyperrec::IsMatter,
60+ hyperrec::Pt,
61+ hyperrec::Phi,
62+ hyperrec::Eta,
63+ hyperrec::XDecVtx,
64+ hyperrec::YDecVtx,
65+ hyperrec::ZDecVtx,
66+ hyperrec::MassH3L,
67+ hyperrec::MassH4L,
68+ hyperrec::DcaV0Daug,
69+ hyperrec::CosPA,
70+ hyperrec::NSigmaHe,
71+ hyperrec::NTPCclusHe,
72+ hyperrec::NTPCclusPi,
73+ hyperrec::TPCmomHe,
74+ hyperrec::TPCmomPi,
75+ hyperrec::TPCsignalHe,
76+ hyperrec::TPCsignalPi,
77+ hyperrec::DcaHe,
78+ hyperrec::DcaPi);
79+
80+ DECLARE_SOA_TABLE (MCHypCands, " AOD" , " MCHYPCANDS" ,
81+ o2::soa::Index<>,
82+ hyperrec::IsMatter,
83+ hyperrec::Pt,
84+ hyperrec::Phi,
85+ hyperrec::Eta,
86+ hyperrec::XDecVtx,
87+ hyperrec::YDecVtx,
88+ hyperrec::ZDecVtx,
89+ hyperrec::MassH3L,
90+ hyperrec::MassH4L,
91+ hyperrec::DcaV0Daug,
92+ hyperrec::CosPA,
93+ hyperrec::NSigmaHe,
94+ hyperrec::NTPCclusHe,
95+ hyperrec::NTPCclusPi,
96+ hyperrec::TPCmomHe,
97+ hyperrec::TPCmomPi,
98+ hyperrec::TPCsignalHe,
99+ hyperrec::TPCsignalPi,
100+ hyperrec::DcaHe,
101+ hyperrec::DcaPi,
102+ hyperrec::GenPt,
103+ hyperrec::GenPhi,
104+ hyperrec::GenEta,
105+ hyperrec::GenXDecVtx,
106+ hyperrec::GenYDecVtx,
107+ hyperrec::GenZDecVtx,
108+ hyperrec::IsReco,
109+ hyperrec::IsSignal);
110+
111+ using DataHypCand = DataHypCands::iterator;
112+ using MCHypCand = MCHypCands::iterator;
113+
114+ } // namespace o2::aod
115+
116+ #endif
0 commit comments