forked from AliceO2Group/O2Physics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLFSlimNucleiTables.h
More file actions
205 lines (190 loc) · 9.37 KB
/
LFSlimNucleiTables.h
File metadata and controls
205 lines (190 loc) · 9.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
///
/// \file LFSlimNucleiTables.h
/// \brief Slim nuclei tables
///
#include "Common/DataModel/Centrality.h"
#include "Framework/ASoAHelpers.h"
#include "Framework/AnalysisDataModel.h"
#ifndef PWGLF_DATAMODEL_LFSLIMNUCLEITABLES_H_
#define PWGLF_DATAMODEL_LFSLIMNUCLEITABLES_H_
namespace o2::aod
{
namespace NucleiTableNS
{
DECLARE_SOA_COLUMN(Pt, pt, float);
DECLARE_SOA_COLUMN(Eta, eta, float);
DECLARE_SOA_COLUMN(Phi, phi, float);
DECLARE_SOA_COLUMN(TPCInnerParam, tpcInnerParam, float);
DECLARE_SOA_COLUMN(Beta, beta, float);
DECLARE_SOA_COLUMN(Zvertex, zVertex, float);
DECLARE_SOA_COLUMN(NContrib, nContrib, int);
DECLARE_SOA_COLUMN(DCAxy, dcaxy, float);
DECLARE_SOA_COLUMN(DCAz, dcaz, float);
DECLARE_SOA_COLUMN(TPCsignal, tpcSignal, float);
DECLARE_SOA_COLUMN(ITSchi2, itsChi2, float);
DECLARE_SOA_COLUMN(TPCchi2, tpcChi2, float);
DECLARE_SOA_COLUMN(TOFchi2, tofChi2, float);
DECLARE_SOA_COLUMN(Flags, flags, uint16_t);
DECLARE_SOA_COLUMN(TPCfindableCls, tpcFindableCls, uint8_t);
DECLARE_SOA_COLUMN(TPCcrossedRows, tpcCrossedRows, uint8_t);
DECLARE_SOA_COLUMN(ITSclsMap, itsClsMap, uint8_t);
DECLARE_SOA_COLUMN(TPCnCls, tpcNCls, uint8_t);
DECLARE_SOA_COLUMN(TPCnClsShared, tpcNClsShared, uint8_t);
DECLARE_SOA_COLUMN(ITSclusterSizes, itsClusterSizes, uint32_t);
DECLARE_SOA_COLUMN(SurvivedEventSelection, survivedEventSelection, bool);
DECLARE_SOA_COLUMN(gPt, genPt, float);
DECLARE_SOA_COLUMN(gEta, genEta, float);
DECLARE_SOA_COLUMN(gPhi, genPhi, float);
DECLARE_SOA_COLUMN(PDGcode, pdgCode, int);
DECLARE_SOA_COLUMN(MotherPDGcode, MotherpdgCode, int);
DECLARE_SOA_COLUMN(MotherDecRad, motherDecRad, float);
DECLARE_SOA_COLUMN(AbsoDecL, absoDecL, float);
} // namespace NucleiTableNS
namespace NucleiPairTableNS
{
DECLARE_SOA_COLUMN(Pt1, pt1, float); // first particle pt
DECLARE_SOA_COLUMN(Eta1, eta1, float); // first particle eta
DECLARE_SOA_COLUMN(Phi1, phi1, float); // first particle phi
DECLARE_SOA_COLUMN(TPCInnerParam1, tpcInnerParam1, float); // first particle TPC inner param
DECLARE_SOA_COLUMN(TPCsignal1, tpcSignal1, float); // first particle TPC signal
DECLARE_SOA_COLUMN(DCAxy1, dcaxy1, float); // first particle DCA xy
DECLARE_SOA_COLUMN(DCAz1, dcaz1, float); // first particle DCA z
DECLARE_SOA_COLUMN(ClusterSizesITS1, clusterSizesITS1, uint32_t); // first particle ITS cluster sizes
DECLARE_SOA_COLUMN(Flags1, flags1, uint16_t); // first particle flags
DECLARE_SOA_COLUMN(Pt2, pt2, float); // second particle pt
DECLARE_SOA_COLUMN(Eta2, eta2, float); // second particle eta
DECLARE_SOA_COLUMN(Phi2, phi2, float); // second particle phi
DECLARE_SOA_COLUMN(TPCInnerParam2, tpcInnerParam2, float); // second particle TPC inner param
DECLARE_SOA_COLUMN(TPCsignal2, tpcSignal2, float); // second particle TPC signal
DECLARE_SOA_COLUMN(DCAxy2, dcaxy2, float); // second particle DCA xy
DECLARE_SOA_COLUMN(DCAz2, dcaz2, float); // second particle DCA z
DECLARE_SOA_COLUMN(ClusterSizesITS2, clusterSizesITS2, uint32_t); // second particle ITS cluster sizes
DECLARE_SOA_COLUMN(Flags2, flags2, uint16_t); // second particle flags
} // namespace NucleiPairTableNS
namespace NucleiFlowTableNS
{
DECLARE_SOA_COLUMN(CentFV0A, centFV0A, float); // centrality with FT0A estimator
DECLARE_SOA_COLUMN(CentFT0A, centFT0A, float); // centrality with FT0A estimator
DECLARE_SOA_COLUMN(CentFT0C, centFT0C, float); // centrality with FT0C estimator
DECLARE_SOA_COLUMN(CentFT0M, centFT0M, float); // centrality with FT0M estimator
DECLARE_SOA_COLUMN(PsiFT0A, psiFT0A, float); // Psi with FT0A estimator
DECLARE_SOA_COLUMN(PsiFT0C, psiFT0C, float); // Psi with FT0C estimator
DECLARE_SOA_COLUMN(PsiTPC, psiTPC, float); // Psi with TPC estimator
DECLARE_SOA_COLUMN(PsiTPCl, psiTPCl, float); // Psi with TPC estimator (left)
DECLARE_SOA_COLUMN(PsiTPCr, psiTPCr, float); // Psi with TPC estimator (right)
DECLARE_SOA_COLUMN(QFT0A, qFT0A, float); // Amplitude with FT0A estimator
DECLARE_SOA_COLUMN(QFT0C, qFT0C, float); // Amplitude with FT0C estimator
DECLARE_SOA_COLUMN(QTPC, qTPC, float); // Amplitude with TPC estimator
DECLARE_SOA_COLUMN(QTPCl, qTPCl, float); // Amplitude with TPC estimator (left)
DECLARE_SOA_COLUMN(QTPCr, qTPCr, float); // Amplitude with TPC estimator (right)
} // namespace NucleiFlowTableNS
DECLARE_SOA_TABLE(NucleiTable, "AOD", "NUCLEITABLE",
NucleiTableNS::Pt,
NucleiTableNS::Eta,
NucleiTableNS::Phi,
NucleiTableNS::TPCInnerParam,
NucleiTableNS::Beta,
NucleiTableNS::Zvertex,
NucleiTableNS::NContrib,
NucleiTableNS::DCAxy,
NucleiTableNS::DCAz,
NucleiTableNS::TPCsignal,
NucleiTableNS::ITSchi2,
NucleiTableNS::TPCchi2,
NucleiTableNS::TOFchi2,
NucleiTableNS::Flags,
NucleiTableNS::TPCfindableCls,
NucleiTableNS::TPCcrossedRows,
NucleiTableNS::ITSclsMap,
NucleiTableNS::TPCnCls,
NucleiTableNS::TPCnClsShared,
NucleiTableNS::ITSclusterSizes);
DECLARE_SOA_TABLE(NucleiTableFlow, "AOD", "NUCLEITABLEFLOW",
NucleiFlowTableNS::CentFV0A,
NucleiFlowTableNS::CentFT0M,
NucleiFlowTableNS::CentFT0A,
NucleiFlowTableNS::CentFT0C,
NucleiFlowTableNS::PsiFT0A,
NucleiFlowTableNS::PsiFT0C,
NucleiFlowTableNS::PsiTPC,
NucleiFlowTableNS::PsiTPCl,
NucleiFlowTableNS::PsiTPCr,
NucleiFlowTableNS::QFT0A,
NucleiFlowTableNS::QFT0C,
NucleiFlowTableNS::QTPC,
NucleiFlowTableNS::QTPCl,
NucleiFlowTableNS::QTPCr);
DECLARE_SOA_TABLE(NucleiTableMC, "AOD", "NUCLEITABLEMC",
NucleiTableNS::Pt,
NucleiTableNS::Eta,
NucleiTableNS::Phi,
NucleiTableNS::TPCInnerParam,
NucleiTableNS::Beta,
NucleiTableNS::Zvertex,
NucleiTableNS::NContrib,
NucleiTableNS::DCAxy,
NucleiTableNS::DCAz,
NucleiTableNS::TPCsignal,
NucleiTableNS::ITSchi2,
NucleiTableNS::TPCchi2,
NucleiTableNS::TOFchi2,
NucleiTableNS::Flags,
NucleiTableNS::TPCfindableCls,
NucleiTableNS::TPCcrossedRows,
NucleiTableNS::ITSclsMap,
NucleiTableNS::TPCnCls,
NucleiTableNS::TPCnClsShared,
NucleiTableNS::ITSclusterSizes,
NucleiTableNS::SurvivedEventSelection,
NucleiTableNS::gPt,
NucleiTableNS::gEta,
NucleiTableNS::gPhi,
NucleiTableNS::PDGcode,
NucleiTableNS::MotherPDGcode,
NucleiTableNS::MotherDecRad,
NucleiTableNS::AbsoDecL);
DECLARE_SOA_TABLE(NucleiPairTable, "AOD", "NUCLEIPAIRTABLE",
NucleiPairTableNS::Pt1,
NucleiPairTableNS::Eta1,
NucleiPairTableNS::Phi1,
NucleiPairTableNS::TPCInnerParam1,
NucleiPairTableNS::TPCsignal1,
NucleiPairTableNS::DCAxy1,
NucleiPairTableNS::DCAz1,
NucleiPairTableNS::ClusterSizesITS1,
NucleiPairTableNS::Flags1,
NucleiPairTableNS::Pt2,
NucleiPairTableNS::Eta2,
NucleiPairTableNS::Phi2,
NucleiPairTableNS::TPCInnerParam2,
NucleiPairTableNS::TPCsignal2,
NucleiPairTableNS::DCAxy2,
NucleiPairTableNS::DCAz2,
NucleiPairTableNS::ClusterSizesITS2,
NucleiPairTableNS::Flags2);
// Reduced table
DECLARE_SOA_TABLE(NucleiTableRed, "AOD", "NUCLEITABLERED",
NucleiTableNS::Pt,
NucleiTableNS::Eta,
NucleiTableNS::Phi,
NucleiTableNS::TPCInnerParam,
NucleiTableNS::ITSclusterSizes,
NucleiTableNS::TPCsignal,
NucleiTableNS::Beta,
NucleiTableNS::DCAxy,
NucleiTableNS::DCAz,
NucleiTableNS::Flags,
NucleiTableNS::PDGcode,
NucleiTableNS::MotherPDGcode);
} // namespace o2::aod
#endif // PWGLF_DATAMODEL_LFSLIMNUCLEITABLES_H_