Skip to content

Commit ed83bdf

Browse files
authored
[PWGCF] Add UPC event selection table (#13825)
1 parent d53549f commit ed83bdf

File tree

3 files changed

+290
-18
lines changed

3 files changed

+290
-18
lines changed

PWGCF/TwoParticleCorrelations/DataModel/LongRangeDerived.h

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ namespace lrcorrcolltable
2828
DECLARE_SOA_COLUMN(Zvtx, zvtx, float);
2929
DECLARE_SOA_COLUMN(Multiplicity, multiplicity, float);
3030
DECLARE_SOA_COLUMN(Centrality, centrality, float);
31+
DECLARE_SOA_COLUMN(TotalFT0AmplitudeA, totalFT0AmplitudeA, float); //! sum of amplitudes on A side of FT0
32+
DECLARE_SOA_COLUMN(TotalFT0AmplitudeC, totalFT0AmplitudeC, float); //! sum of amplitudes on C side of FT0
33+
DECLARE_SOA_COLUMN(TotalFV0AmplitudeA, totalFV0AmplitudeA, float); //! sum of amplitudes on A side of FDD
34+
DECLARE_SOA_COLUMN(GapSide, gapSide, uint8_t); // 0 for side A, 1 for side C, 2 for both sides
3135
} // namespace lrcorrcolltable
3236

3337
DECLARE_SOA_TABLE(CollLRTables, "AOD", "COLLLRTABLE",
@@ -39,9 +43,39 @@ DECLARE_SOA_TABLE(CollLRTables, "AOD", "COLLLRTABLE",
3943
timestamp::Timestamp);
4044
using CollLRTable = CollLRTables::iterator;
4145

46+
DECLARE_SOA_TABLE(UpcCollLRTables, "AOD", "UPCCOLLLRTABLE",
47+
o2::soa::Index<>,
48+
bc::GlobalBC,
49+
bc::RunNumber,
50+
lrcorrcolltable::Zvtx,
51+
lrcorrcolltable::Multiplicity,
52+
lrcorrcolltable::TotalFT0AmplitudeA,
53+
lrcorrcolltable::TotalFT0AmplitudeC,
54+
lrcorrcolltable::TotalFV0AmplitudeA);
55+
using UpcCollLRTable = UpcCollLRTables::iterator;
56+
57+
DECLARE_SOA_TABLE(UpcSgCollLRTables, "AOD", "UPCSGCOLLLRTABLE",
58+
lrcorrcolltable::GapSide);
59+
using UpcSgCollLRTable = UpcSgCollLRTables::iterator;
60+
61+
namespace lrcorrzdctable
62+
{
63+
DECLARE_SOA_INDEX_COLUMN(UpcCollLRTable, upcCollLRTable);
64+
DECLARE_SOA_COLUMN(EnergyCommonZNA, energyCommonZNA, float);
65+
DECLARE_SOA_COLUMN(EnergyCommonZNC, energyCommonZNC, float);
66+
} // namespace lrcorrzdctable
67+
68+
DECLARE_SOA_TABLE(ZdcLRTables, "AOD", "ZDCLRTABLE",
69+
o2::soa::Index<>,
70+
lrcorrzdctable::UpcCollLRTableId,
71+
lrcorrzdctable::EnergyCommonZNA,
72+
lrcorrzdctable::EnergyCommonZNC);
73+
using ZdcLRTable = ZdcLRTables::iterator;
74+
4275
namespace lrcorrtrktable
4376
{
4477
DECLARE_SOA_INDEX_COLUMN(CollLRTable, collLRTable);
78+
DECLARE_SOA_INDEX_COLUMN(UpcCollLRTable, upcCollLRTable);
4579
DECLARE_SOA_COLUMN(Pt, pt, float);
4680
DECLARE_SOA_COLUMN(Eta, eta, float);
4781
DECLARE_SOA_COLUMN(Phi, phi, float);
@@ -120,6 +154,61 @@ DECLARE_SOA_TABLE(MftBestTrkLRTables, "AOD", "MFTBESTTRKLRTABLE",
120154
lrcorrtrktable::Phi);
121155
using MftBestTrkLRTable = MftBestTrkLRTables::iterator;
122156

157+
DECLARE_SOA_TABLE(TrkLRUpcTables, "AOD", "TRKLRUPCTABLE",
158+
o2::soa::Index<>,
159+
lrcorrtrktable::UpcCollLRTableId,
160+
lrcorrtrktable::Pt,
161+
lrcorrtrktable::Eta,
162+
lrcorrtrktable::Phi,
163+
lrcorrtrktable::TrackType);
164+
using TrkLRUpcTable = TrkLRUpcTables::iterator;
165+
166+
DECLARE_SOA_TABLE(Ft0aLRUpcTables, "AOD", "FT0ALRUpcTABLE",
167+
o2::soa::Index<>,
168+
lrcorrtrktable::UpcCollLRTableId,
169+
lrcorrtrktable::ChannelID,
170+
lrcorrtrktable::Amplitude,
171+
lrcorrtrktable::Eta,
172+
lrcorrtrktable::Phi);
173+
using Ft0aLRUpcTable = Ft0aLRUpcTables::iterator;
174+
175+
DECLARE_SOA_TABLE(Ft0cLRUpcTables, "AOD", "FT0CLRUpcTABLE",
176+
o2::soa::Index<>,
177+
lrcorrtrktable::UpcCollLRTableId,
178+
lrcorrtrktable::ChannelID,
179+
lrcorrtrktable::Amplitude,
180+
lrcorrtrktable::Eta,
181+
lrcorrtrktable::Phi);
182+
using Ft0cLRUpcTable = Ft0cLRUpcTables::iterator;
183+
184+
DECLARE_SOA_TABLE(V0TrkLRUpcTables, "AOD", "V0TRKLRUPCTABLE",
185+
o2::soa::Index<>,
186+
lrcorrtrktable::UpcCollLRTableId,
187+
lrcorrtrktable::IdPos,
188+
lrcorrtrktable::IdNeg,
189+
lrcorrtrktable::Pt,
190+
lrcorrtrktable::Eta,
191+
lrcorrtrktable::Phi,
192+
lrcorrtrktable::InvMass,
193+
lrcorrtrktable::V0Type);
194+
using V0TrkLRUpcTable = V0TrkLRUpcTables::iterator;
195+
196+
DECLARE_SOA_TABLE(MftTrkLRUpcTables, "AOD", "MFTTRKLRUPCTABLE",
197+
o2::soa::Index<>,
198+
lrcorrtrktable::UpcCollLRTableId,
199+
lrcorrtrktable::Pt,
200+
lrcorrtrktable::Eta,
201+
lrcorrtrktable::Phi);
202+
using MftTrkLRUpcTable = MftTrkLRUpcTables::iterator;
203+
204+
DECLARE_SOA_TABLE(MftBestTrkLRUpcTables, "AOD", "MFTBESTTRKLRUPCTABLE",
205+
o2::soa::Index<>,
206+
lrcorrtrktable::UpcCollLRTableId,
207+
lrcorrtrktable::Pt,
208+
lrcorrtrktable::Eta,
209+
lrcorrtrktable::Phi);
210+
using MftBestTrkLRUpcTable = MftBestTrkLRUpcTables::iterator;
211+
123212
} // namespace o2::aod
124213

125214
#endif // PWGCF_TWOPARTICLECORRELATIONS_DATAMODEL_LONGRANGEDERIVED_H_

PWGCF/TwoParticleCorrelations/TableProducer/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ o2physics_add_dpl_workflow(two-particle-correlations-filtering
3131

3232
o2physics_add_dpl_workflow(longrange-maker
3333
SOURCES longrangeMaker.cxx
34-
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::TwoPartCorrCore
34+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::TwoPartCorrCore O2Physics::SGCutParHolder
3535
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)