Skip to content

Commit 9476b96

Browse files
authored
[PWGJE] Add photon-hadron correlation analysis task (#11433)
1 parent ff2ed3e commit 9476b96

File tree

3 files changed

+1754
-0
lines changed

3 files changed

+1754
-0
lines changed
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
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+
/// \brief table definitions for photon-hadron correlation analyses
14+
///
15+
/// \author Julius Kinner
16+
/// \file PhotonChargedTriggerCorrelation.h
17+
18+
#ifndef PWGJE_DATAMODEL_PHOTONCHARGEDTRIGGERCORRELATION_H_
19+
#define PWGJE_DATAMODEL_PHOTONCHARGEDTRIGGERCORRELATION_H_
20+
21+
#include "Framework/AnalysisDataModel.h"
22+
#include "PWGJE/Core/JetDerivedDataUtilities.h"
23+
#include "PWGJE/DataModel/Jet.h"
24+
#include "PWGEM/PhotonMeson/DataModel/gammaTables.h"
25+
#include "PWGEM/PhotonMeson/Utils/PCMUtilities.h"
26+
27+
namespace o2::aod
28+
{
29+
30+
// basic correlation particle columns
31+
namespace corr_particle
32+
{
33+
DECLARE_SOA_INDEX_COLUMN_FULL(JetCollision, jetCollision, int, JCollisions, "");
34+
DECLARE_SOA_INDEX_COLUMN_FULL(JetMcCollision, jetMcCollision, int, JMcCollisions, "");
35+
DECLARE_SOA_COLUMN(Pt, pt, float);
36+
DECLARE_SOA_COLUMN(Phi, phi, float);
37+
DECLARE_SOA_COLUMN(Eta, eta, float);
38+
} // namespace corr_particle
39+
40+
// reco
41+
42+
// collision extension
43+
namespace collision_extra_corr
44+
{
45+
DECLARE_SOA_COLUMN(SelEv, selEv, bool);
46+
DECLARE_SOA_COLUMN(TrigEv, trigEv, bool);
47+
} // namespace collision_extra_corr
48+
DECLARE_SOA_TABLE(CollisionsExtraCorr, "AOD", "COLLISIONSEXTRACORR",
49+
collision_extra_corr::SelEv, collision_extra_corr::TrigEv);
50+
51+
// trigger
52+
namespace trigger
53+
{
54+
DECLARE_SOA_INDEX_COLUMN_FULL(JetTrack, jetTrack, int, JetTracks, "");
55+
} // namespace trigger
56+
DECLARE_SOA_TABLE(Triggers, "AOD", "TRIGGERS",
57+
o2::soa::Index<>, corr_particle::JetCollisionId, trigger::JetTrackId,
58+
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
59+
using Trigger = Triggers::iterator;
60+
61+
// hadrons (global tracks)
62+
namespace hadron
63+
{
64+
DECLARE_SOA_INDEX_COLUMN_FULL(JetTrack, jetTrack, int, JetTracks, "");
65+
} // namespace hadron
66+
DECLARE_SOA_TABLE(Hadrons, "AOD", "HADRONS",
67+
o2::soa::Index<>, corr_particle::JetCollisionId, hadron::JetTrackId,
68+
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
69+
using Hadron = Hadrons::iterator;
70+
71+
// pipm
72+
namespace pipm
73+
{
74+
DECLARE_SOA_INDEX_COLUMN_FULL(JetTrack, jetTrack, int, JetTracks, "");
75+
} // namespace pipm
76+
DECLARE_SOA_TABLE(Pipms, "AOD", "PIPMS",
77+
o2::soa::Index<>, corr_particle::JetCollisionId, pipm::JetTrackId,
78+
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
79+
using Pipm = Pipms::iterator;
80+
81+
// photonPCM
82+
namespace photon_pcm
83+
{
84+
DECLARE_SOA_INDEX_COLUMN_FULL(V0PhotonKF, v0PhotonKF, int, V0PhotonsKF, "");
85+
DECLARE_SOA_COLUMN(PosTrackId, posTrackId, int);
86+
DECLARE_SOA_COLUMN(NegTrackId, negTrackId, int);
87+
} // namespace photon_pcm
88+
DECLARE_SOA_TABLE(PhotonPCMs, "AOD", "PHOTONPCMS",
89+
o2::soa::Index<>, corr_particle::JetCollisionId, photon_pcm::V0PhotonKFId,
90+
photon_pcm::PosTrackId, photon_pcm::NegTrackId,
91+
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
92+
using PhotonPCM = PhotonPCMs::iterator;
93+
94+
// photonPCM pairs (pi0)
95+
namespace photon_pcm_pair
96+
{
97+
DECLARE_SOA_INDEX_COLUMN_FULL(V0PhotonKF1, v0PhotonKF1, int, V0PhotonsKF, "_1");
98+
DECLARE_SOA_INDEX_COLUMN_FULL(V0PhotonKF2, v0PhotonKF2, int, V0PhotonsKF, "_2");
99+
DECLARE_SOA_COLUMN(PosTrack1Id, posTrack1Id, int);
100+
DECLARE_SOA_COLUMN(NegTrack1Id, negTrack1Id, int);
101+
DECLARE_SOA_COLUMN(PosTrack2Id, posTrack2Id, int);
102+
DECLARE_SOA_COLUMN(NegTrack2Id, negTrack2Id, int);
103+
DECLARE_SOA_COLUMN(Mgg, mgg, float);
104+
} // namespace photon_pcm_pair
105+
DECLARE_SOA_TABLE(PhotonPCMPairs, "AOD", "PHOTONPCMPAIRS",
106+
o2::soa::Index<>, corr_particle::JetCollisionId, photon_pcm_pair::V0PhotonKF1Id, photon_pcm_pair::V0PhotonKF2Id,
107+
photon_pcm_pair::PosTrack1Id, photon_pcm_pair::NegTrack1Id, photon_pcm_pair::PosTrack2Id, photon_pcm_pair::NegTrack2Id,
108+
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta, photon_pcm_pair::Mgg);
109+
using PhotonPCMPair = PhotonPCMPairs::iterator;
110+
111+
// mc
112+
113+
// mcCollision extension
114+
namespace mc_collision_extra_corr
115+
{
116+
DECLARE_SOA_COLUMN(TrigEv, trigEv, bool);
117+
} // namespace mc_collision_extra_corr
118+
DECLARE_SOA_TABLE(McCollisionsExtraCorr, "AOD", "MCCOLLISIONSEXTRACORR",
119+
mc_collision_extra_corr::TrigEv);
120+
121+
// trigger
122+
namespace trigger_particle
123+
{
124+
DECLARE_SOA_INDEX_COLUMN_FULL(JetMcParticle, jetMcParticle, int, JetParticles, "");
125+
} // namespace trigger_particle
126+
DECLARE_SOA_TABLE(TriggerParticles, "AOD", "TRIGGERPARTICLES",
127+
o2::soa::Index<>, corr_particle::JetMcCollisionId, trigger_particle::JetMcParticleId,
128+
corr_particle::Pt, corr_particle::Phi, corr_particle::Eta);
129+
using TriggerParticle = TriggerParticles::iterator;
130+
} // namespace o2::aod
131+
132+
#endif // PWGJE_DATAMODEL_PHOTONCHARGEDTRIGGERCORRELATION_H_

PWGJE/Tasks/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ o2physics_add_dpl_workflow(photon-isolation-qa
5050
SOURCES photonIsolationQA.cxx
5151
PUBLIC_LINK_LIBRARIES O2::Framework O2::EMCALBase O2::EMCALCalib O2Physics::AnalysisCore
5252
COMPONENT_NAME Analysis)
53+
o2physics_add_dpl_workflow(photon-charged-trigger-correlation
54+
SOURCES photonChargedTriggerCorrelation.cxx
55+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
56+
COMPONENT_NAME Analysis)
5357

5458
if(FastJet_FOUND)
5559
o2physics_add_dpl_workflow(jet-background-analysis

0 commit comments

Comments
 (0)