forked from AliceO2Group/O2Physics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhotonChargedTriggerCorrelation.h
More file actions
133 lines (116 loc) · 5.09 KB
/
PhotonChargedTriggerCorrelation.h
File metadata and controls
133 lines (116 loc) · 5.09 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
// 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.
///
/// \brief table definitions for photon-hadron correlation analyses
///
/// \author Julius Kinner
/// \file PhotonChargedTriggerCorrelation.h
#ifndef PWGJE_DATAMODEL_PHOTONCHARGEDTRIGGERCORRELATION_H_
#define PWGJE_DATAMODEL_PHOTONCHARGEDTRIGGERCORRELATION_H_
#include "PWGEM/PhotonMeson/DataModel/gammaTables.h"
#include "PWGEM/PhotonMeson/Utils/PCMUtilities.h"
#include "PWGJE/Core/JetDerivedDataUtilities.h"
#include "PWGJE/DataModel/Jet.h"
#include "Framework/AnalysisDataModel.h"
namespace o2::aod
{
// basic correlation particle columns
namespace corr_particle
{
DECLARE_SOA_INDEX_COLUMN_FULL(JetCollision, jetCollision, int, JCollisions, "");
DECLARE_SOA_INDEX_COLUMN_FULL(JetMcCollision, jetMcCollision, int, JMcCollisions, "");
DECLARE_SOA_COLUMN(Pt, pt, float);
DECLARE_SOA_COLUMN(Phi, phi, float);
DECLARE_SOA_COLUMN(Eta, eta, float);
} // namespace corr_particle
// reco
// collision extension
namespace collision_extra_corr
{
DECLARE_SOA_COLUMN(SelEv, selEv, bool);
DECLARE_SOA_COLUMN(TrigEv, trigEv, bool);
} // namespace collision_extra_corr
DECLARE_SOA_TABLE(CollisionsExtraCorr, "AOD", "COLLISIONSEXTRACORR",
collision_extra_corr::SelEv, collision_extra_corr::TrigEv);
// trigger
namespace trigger
{
DECLARE_SOA_INDEX_COLUMN_FULL(JetTrack, jetTrack, int, JetTracks, "");
} // namespace trigger
DECLARE_SOA_TABLE(Triggers, "AOD", "TRIGGERS",
o2::soa::Index<>, corr_particle::JetCollisionId, trigger::JetTrackId,
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
using Trigger = Triggers::iterator;
// hadrons (global tracks)
namespace hadron
{
DECLARE_SOA_INDEX_COLUMN_FULL(JetTrack, jetTrack, int, JetTracks, "");
} // namespace hadron
DECLARE_SOA_TABLE(Hadrons, "AOD", "HADRONS",
o2::soa::Index<>, corr_particle::JetCollisionId, hadron::JetTrackId,
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
using Hadron = Hadrons::iterator;
// pipm
namespace pipm
{
DECLARE_SOA_INDEX_COLUMN_FULL(JetTrack, jetTrack, int, JetTracks, "");
} // namespace pipm
DECLARE_SOA_TABLE(Pipms, "AOD", "PIPMS",
o2::soa::Index<>, corr_particle::JetCollisionId, pipm::JetTrackId,
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
using Pipm = Pipms::iterator;
// photonPCM
namespace photon_pcm
{
DECLARE_SOA_INDEX_COLUMN_FULL(V0PhotonKF, v0PhotonKF, int, V0PhotonsKF, "");
DECLARE_SOA_COLUMN(PosTrackId, posTrackId, int);
DECLARE_SOA_COLUMN(NegTrackId, negTrackId, int);
} // namespace photon_pcm
DECLARE_SOA_TABLE(PhotonPCMs, "AOD", "PHOTONPCMS",
o2::soa::Index<>, corr_particle::JetCollisionId, photon_pcm::V0PhotonKFId,
photon_pcm::PosTrackId, photon_pcm::NegTrackId,
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
using PhotonPCM = PhotonPCMs::iterator;
// photonPCM pairs (pi0)
namespace photon_pcm_pair
{
DECLARE_SOA_INDEX_COLUMN_FULL(V0PhotonKF1, v0PhotonKF1, int, V0PhotonsKF, "_1");
DECLARE_SOA_INDEX_COLUMN_FULL(V0PhotonKF2, v0PhotonKF2, int, V0PhotonsKF, "_2");
DECLARE_SOA_COLUMN(PosTrack1Id, posTrack1Id, int);
DECLARE_SOA_COLUMN(NegTrack1Id, negTrack1Id, int);
DECLARE_SOA_COLUMN(PosTrack2Id, posTrack2Id, int);
DECLARE_SOA_COLUMN(NegTrack2Id, negTrack2Id, int);
DECLARE_SOA_COLUMN(Mgg, mgg, float);
} // namespace photon_pcm_pair
DECLARE_SOA_TABLE(PhotonPCMPairs, "AOD", "PHOTONPCMPAIRS",
o2::soa::Index<>, corr_particle::JetCollisionId, photon_pcm_pair::V0PhotonKF1Id, photon_pcm_pair::V0PhotonKF2Id,
photon_pcm_pair::PosTrack1Id, photon_pcm_pair::NegTrack1Id, photon_pcm_pair::PosTrack2Id, photon_pcm_pair::NegTrack2Id,
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta, photon_pcm_pair::Mgg);
using PhotonPCMPair = PhotonPCMPairs::iterator;
// mc
// mcCollision extension
namespace mc_collision_extra_corr
{
DECLARE_SOA_COLUMN(TrigEv, trigEv, bool);
} // namespace mc_collision_extra_corr
DECLARE_SOA_TABLE(McCollisionsExtraCorr, "AOD", "MCCOLLISIONSEXTRACORR",
mc_collision_extra_corr::TrigEv);
// trigger
namespace trigger_particle
{
DECLARE_SOA_INDEX_COLUMN_FULL(JetMcParticle, jetMcParticle, int, JetParticles, "");
} // namespace trigger_particle
DECLARE_SOA_TABLE(TriggerParticles, "AOD", "TRIGGERPARTICLES",
o2::soa::Index<>, corr_particle::JetMcCollisionId, trigger_particle::JetMcParticleId,
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
using TriggerParticle = TriggerParticles::iterator;
} // namespace o2::aod
#endif // PWGJE_DATAMODEL_PHOTONCHARGEDTRIGGERCORRELATION_H_