|
| 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 | +#ifndef PWGJE_DATAMODEL_UPCJETQATABLES_H_ |
| 13 | +#define PWGJE_DATAMODEL_UPCJETQATABLES_H_ |
| 14 | + |
| 15 | +#include "Framework/AnalysisDataModel.h" |
| 16 | + |
| 17 | +namespace o2::aod |
| 18 | +{ |
| 19 | + |
| 20 | +// ============================================================ |
| 21 | +// DATA tables |
| 22 | +// ============================================================ |
| 23 | +namespace upcjetevent |
| 24 | +{ |
| 25 | +DECLARE_SOA_COLUMN(GapSide, gapSide, int); |
| 26 | +DECLARE_SOA_COLUMN(PosZ, posZ, float); |
| 27 | +DECLARE_SOA_COLUMN(CentFT0M, centFT0M, float); |
| 28 | +DECLARE_SOA_COLUMN(EnergyCommonZNA, energyCommonZNA, float); |
| 29 | +DECLARE_SOA_COLUMN(EnergyCommonZNC, energyCommonZNC, float); |
| 30 | +DECLARE_SOA_COLUMN(TimeZNA, timeZNA, float); |
| 31 | +DECLARE_SOA_COLUMN(TimeZNC, timeZNC, float); |
| 32 | +DECLARE_SOA_COLUMN(NeutronClass, neutronClass, int); |
| 33 | +DECLARE_SOA_COLUMN(IsGapTagged, isGapTagged, bool); |
| 34 | +DECLARE_SOA_COLUMN(IsZDCTagged, isZDCTagged, bool); |
| 35 | +} // namespace upcjetevent |
| 36 | + |
| 37 | +DECLARE_SOA_TABLE(UpcJetEvents, "AOD", "UPCJETEVENT", |
| 38 | + upcjetevent::GapSide, |
| 39 | + upcjetevent::PosZ, |
| 40 | + upcjetevent::CentFT0M, |
| 41 | + upcjetevent::EnergyCommonZNA, |
| 42 | + upcjetevent::EnergyCommonZNC, |
| 43 | + upcjetevent::TimeZNA, |
| 44 | + upcjetevent::TimeZNC, |
| 45 | + upcjetevent::NeutronClass, |
| 46 | + upcjetevent::IsGapTagged, |
| 47 | + upcjetevent::IsZDCTagged); |
| 48 | +using UpcJetEvent = UpcJetEvents::iterator; |
| 49 | + |
| 50 | +namespace upcjet |
| 51 | +{ |
| 52 | +DECLARE_SOA_INDEX_COLUMN(UpcJetEvent, upcJetEvent); |
| 53 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 54 | +DECLARE_SOA_COLUMN(Eta, eta, float); |
| 55 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 56 | +DECLARE_SOA_COLUMN(Area, area, float); |
| 57 | +DECLARE_SOA_COLUMN(NConstituents, nConstituents, int); |
| 58 | +} // namespace upcjet |
| 59 | + |
| 60 | +DECLARE_SOA_TABLE(UpcJets, "AOD", "UPCJET", |
| 61 | + upcjet::UpcJetEventId, |
| 62 | + upcjet::Pt, |
| 63 | + upcjet::Eta, |
| 64 | + upcjet::Phi, |
| 65 | + upcjet::Area, |
| 66 | + upcjet::NConstituents); |
| 67 | +using UpcJet = UpcJets::iterator; |
| 68 | + |
| 69 | +namespace upctrack |
| 70 | +{ |
| 71 | +DECLARE_SOA_INDEX_COLUMN_FULL(UpcJetEvent, upcJetEvent, int32_t, UpcJetEvents, ""); |
| 72 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 73 | +DECLARE_SOA_COLUMN(Eta, eta, float); |
| 74 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 75 | +} // namespace upctrack |
| 76 | + |
| 77 | +DECLARE_SOA_TABLE(UpcTracks, "AOD", "UPCTRACK", |
| 78 | + upctrack::UpcJetEventId, |
| 79 | + upctrack::Pt, |
| 80 | + upctrack::Eta, |
| 81 | + upctrack::Phi); |
| 82 | +using UpcTrack = UpcTracks::iterator; |
| 83 | + |
| 84 | +namespace upcjettrack |
| 85 | +{ |
| 86 | +DECLARE_SOA_INDEX_COLUMN_FULL(UpcJet, upcJet, int32_t, UpcJets, ""); |
| 87 | +DECLARE_SOA_INDEX_COLUMN_FULL(UpcJetEvent, upcJetEvent, int32_t, UpcJetEvents, ""); |
| 88 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 89 | +DECLARE_SOA_COLUMN(Eta, eta, float); |
| 90 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 91 | +} // namespace upcjettrack |
| 92 | + |
| 93 | +DECLARE_SOA_TABLE(UpcJetTracks, "AOD", "UPCJETTRACK", |
| 94 | + upcjettrack::UpcJetId, |
| 95 | + upcjettrack::UpcJetEventId, |
| 96 | + upcjettrack::Pt, |
| 97 | + upcjettrack::Eta, |
| 98 | + upcjettrack::Phi); |
| 99 | +using UpcJetTrack = UpcJetTracks::iterator; |
| 100 | + |
| 101 | +// ============================================================ |
| 102 | +// MCD tables |
| 103 | +// ============================================================ |
| 104 | +namespace upcjeteventmcd |
| 105 | +{ |
| 106 | +DECLARE_SOA_COLUMN(GapSide, gapSide, int); |
| 107 | +DECLARE_SOA_COLUMN(PosZ, posZ, float); |
| 108 | +DECLARE_SOA_COLUMN(CentFT0M, centFT0M, float); |
| 109 | +DECLARE_SOA_COLUMN(EnergyCommonZNA, energyCommonZNA, float); |
| 110 | +DECLARE_SOA_COLUMN(EnergyCommonZNC, energyCommonZNC, float); |
| 111 | +DECLARE_SOA_COLUMN(TimeZNA, timeZNA, float); |
| 112 | +DECLARE_SOA_COLUMN(TimeZNC, timeZNC, float); |
| 113 | +DECLARE_SOA_COLUMN(NeutronClass, neutronClass, int); |
| 114 | +DECLARE_SOA_COLUMN(IsGapTagged, isGapTagged, bool); |
| 115 | +DECLARE_SOA_COLUMN(IsZDCTagged, isZDCTagged, bool); |
| 116 | +} // namespace upcjeteventmcd |
| 117 | + |
| 118 | +DECLARE_SOA_TABLE(UpcJetEventsMCD, "AOD", "UPCJETEVENTMCD", |
| 119 | + upcjeteventmcd::GapSide, |
| 120 | + upcjeteventmcd::PosZ, |
| 121 | + upcjeteventmcd::CentFT0M, |
| 122 | + upcjeteventmcd::EnergyCommonZNA, |
| 123 | + upcjeteventmcd::EnergyCommonZNC, |
| 124 | + upcjeteventmcd::TimeZNA, |
| 125 | + upcjeteventmcd::TimeZNC, |
| 126 | + upcjeteventmcd::NeutronClass, |
| 127 | + upcjeteventmcd::IsGapTagged, |
| 128 | + upcjeteventmcd::IsZDCTagged); |
| 129 | +using UpcJetEventMCD = UpcJetEventsMCD::iterator; |
| 130 | + |
| 131 | +namespace upctrackmcd |
| 132 | +{ |
| 133 | +DECLARE_SOA_INDEX_COLUMN_FULL(UpcJetEventMCD, upcJetEventMCD, int32_t, UpcJetEventsMCD, ""); |
| 134 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 135 | +DECLARE_SOA_COLUMN(Eta, eta, float); |
| 136 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 137 | +} // namespace upctrackmcd |
| 138 | + |
| 139 | +DECLARE_SOA_TABLE(UpcTracksMCD, "AOD", "UPCTRACKMCD", |
| 140 | + upctrackmcd::UpcJetEventMCDId, |
| 141 | + upctrackmcd::Pt, |
| 142 | + upctrackmcd::Eta, |
| 143 | + upctrackmcd::Phi); |
| 144 | +using UpcTrackMCD = UpcTracksMCD::iterator; |
| 145 | + |
| 146 | +namespace upcjetmcd |
| 147 | +{ |
| 148 | +DECLARE_SOA_INDEX_COLUMN_FULL(UpcJetEventMCD, upcJetEventMCD, int32_t, UpcJetEventsMCD, ""); |
| 149 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 150 | +DECLARE_SOA_COLUMN(Eta, eta, float); |
| 151 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 152 | +DECLARE_SOA_COLUMN(Area, area, float); |
| 153 | +DECLARE_SOA_COLUMN(NConstituents, nConstituents, int); |
| 154 | +} // namespace upcjetmcd |
| 155 | + |
| 156 | +DECLARE_SOA_TABLE(UpcJetsMCD, "AOD", "UPCJETMCD", |
| 157 | + upcjetmcd::UpcJetEventMCDId, |
| 158 | + upcjetmcd::Pt, |
| 159 | + upcjetmcd::Eta, |
| 160 | + upcjetmcd::Phi, |
| 161 | + upcjetmcd::Area, |
| 162 | + upcjetmcd::NConstituents); |
| 163 | +using UpcJetMCD = UpcJetsMCD::iterator; |
| 164 | + |
| 165 | +namespace upcjettrackmcd |
| 166 | +{ |
| 167 | +DECLARE_SOA_INDEX_COLUMN_FULL(UpcJetMCD, upcJetMCD, int32_t, UpcJetsMCD, ""); |
| 168 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 169 | +DECLARE_SOA_COLUMN(Eta, eta, float); |
| 170 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 171 | +} // namespace upcjettrackmcd |
| 172 | + |
| 173 | +DECLARE_SOA_TABLE(UpcJetTracksMCD, "AOD", "UPCJETTRACKMCD", |
| 174 | + upcjettrackmcd::UpcJetMCDId, |
| 175 | + upcjettrackmcd::Pt, |
| 176 | + upcjettrackmcd::Eta, |
| 177 | + upcjettrackmcd::Phi); |
| 178 | +using UpcJetTrackMCD = UpcJetTracksMCD::iterator; |
| 179 | + |
| 180 | +// ============================================================ |
| 181 | +// MCP tables |
| 182 | +// ============================================================ |
| 183 | +namespace upcjeteventmcp |
| 184 | +{ |
| 185 | +DECLARE_SOA_COLUMN(PosZ, posZ, float); |
| 186 | +} // namespace upcjeteventmcp |
| 187 | + |
| 188 | +DECLARE_SOA_TABLE(UpcJetEventsMCP, "AOD", "UPCJETEVENTMCP", |
| 189 | + upcjeteventmcp::PosZ); |
| 190 | +using UpcJetEventMCP = UpcJetEventsMCP::iterator; |
| 191 | + |
| 192 | +namespace upctrackmcp |
| 193 | +{ |
| 194 | +DECLARE_SOA_INDEX_COLUMN_FULL(UpcJetEventMCP, upcJetEventMCP, int32_t, UpcJetEventsMCP, ""); |
| 195 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 196 | +DECLARE_SOA_COLUMN(Eta, eta, float); |
| 197 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 198 | +} // namespace upctrackmcp |
| 199 | + |
| 200 | +DECLARE_SOA_TABLE(UpcTracksMCP, "AOD", "UPCTRACKMCP", |
| 201 | + upctrackmcp::UpcJetEventMCPId, |
| 202 | + upctrackmcp::Pt, |
| 203 | + upctrackmcp::Eta, |
| 204 | + upctrackmcp::Phi); |
| 205 | +using UpcTrackMCP = UpcTracksMCP::iterator; |
| 206 | + |
| 207 | +namespace upcjetmcp |
| 208 | +{ |
| 209 | +DECLARE_SOA_INDEX_COLUMN_FULL(UpcJetEventMCP, upcJetEventMCP, int32_t, UpcJetEventsMCP, ""); |
| 210 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 211 | +DECLARE_SOA_COLUMN(Eta, eta, float); |
| 212 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 213 | +DECLARE_SOA_COLUMN(Area, area, float); |
| 214 | +DECLARE_SOA_COLUMN(NConstituents, nConstituents, int); |
| 215 | +} // namespace upcjetmcp |
| 216 | + |
| 217 | +DECLARE_SOA_TABLE(UpcJetsMCP, "AOD", "UPCJETMCP", |
| 218 | + upcjetmcp::UpcJetEventMCPId, |
| 219 | + upcjetmcp::Pt, |
| 220 | + upcjetmcp::Eta, |
| 221 | + upcjetmcp::Phi, |
| 222 | + upcjetmcp::Area, |
| 223 | + upcjetmcp::NConstituents); |
| 224 | +using UpcJetMCP = UpcJetsMCP::iterator; |
| 225 | + |
| 226 | +namespace upcjettrackmcp |
| 227 | +{ |
| 228 | +DECLARE_SOA_INDEX_COLUMN_FULL(UpcJetMCP, upcJetMCP, int32_t, UpcJetsMCP, ""); |
| 229 | +DECLARE_SOA_COLUMN(Pt, pt, float); |
| 230 | +DECLARE_SOA_COLUMN(Eta, eta, float); |
| 231 | +DECLARE_SOA_COLUMN(Phi, phi, float); |
| 232 | +} // namespace upcjettrackmcp |
| 233 | + |
| 234 | +DECLARE_SOA_TABLE(UpcJetTracksMCP, "AOD", "UPCJETTRACKMCP", |
| 235 | + upcjettrackmcp::UpcJetMCPId, |
| 236 | + upcjettrackmcp::Pt, |
| 237 | + upcjettrackmcp::Eta, |
| 238 | + upcjettrackmcp::Phi); |
| 239 | +using UpcJetTrackMCP = UpcJetTracksMCP::iterator; |
| 240 | + |
| 241 | +} // namespace o2::aod |
| 242 | + |
| 243 | +#endif // PWGJE_DATAMODEL_UPCJETQATABLES_H_ |
0 commit comments