Skip to content

Commit 6818f4b

Browse files
authored
[PWGJE] Enhance GammaJetAnalysisTree with additional MC information (#16981)
1 parent 49374ac commit 6818f4b

2 files changed

Lines changed: 305 additions & 205 deletions

File tree

PWGJE/DataModel/GammaJetAnalysisTree.h

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
///
12+
/// \file GammaJetAnalysisTree.h
1313
/// \brief Table definitions for gamma-jet analyses
14-
///
1514
/// \author Florian Jonas <florian.jonas@cern.ch>
1615

1716
#ifndef PWGJE_DATAMODEL_GAMMAJETANALYSISTREE_H_
@@ -106,8 +105,16 @@ namespace gjgammamcinfo
106105
{
107106
DECLARE_SOA_COLUMN(Origin, origin, uint16_t);
108107
DECLARE_SOA_COLUMN(LeadingEnergyFraction, leadingEnergyFraction, float); // fraction of energy from the leading MC particle
108+
// further information about the particle that produced this cluster, one could also linnk to mcgen particle table
109+
// but for now this is easier as the MCgen table is filtered and I do not want to deal with ensuring the filered table exists and
110+
// does not filter out a mother
111+
DECLARE_SOA_COLUMN(Eta, eta, float);
112+
DECLARE_SOA_COLUMN(Phi, phi, float);
113+
DECLARE_SOA_COLUMN(Energy, energy, float);
114+
DECLARE_SOA_COLUMN(Pt, pt, float);
115+
DECLARE_SOA_COLUMN(MCIso, mcIso, float);
109116
} // namespace gjgammamcinfo
110-
DECLARE_SOA_TABLE(GjGammaMCInfos, "AOD", "GJGAMMAMCINFO", gjgamma::GjEventId, gjgammamcinfo::Origin, gjgammamcinfo::LeadingEnergyFraction)
117+
DECLARE_SOA_TABLE(GjGammaMCInfos, "AOD", "GJGAMMAMCINFO", gjgamma::GjEventId, gjgammamcinfo::Origin, gjgammamcinfo::LeadingEnergyFraction, gjgammamcinfo::Eta, gjgammamcinfo::Phi, gjgammamcinfo::Energy, gjgammamcinfo::Pt, gjgammamcinfo::MCIso)
111118

112119
// Generator level particle information from the MC collision that was matched to the reconstructed collision
113120
namespace gjmcparticle
@@ -178,6 +185,16 @@ DECLARE_SOA_COLUMN(PerpConeRho, perpconerho, float);
178185
} // namespace gjmcjet
179186
DECLARE_SOA_TABLE(GjMCJets, "AOD", "GJMCJET", gjgamma::GjEventId, gjmcjet::Pt, gjmcjet::Eta, gjmcjet::Phi, gjmcjet::Radius, gjmcjet::Energy, gjmcjet::Mass, gjmcjet::Area, gjmcjet::PerpConeRho)
180187

188+
// MC gen level substructure
189+
namespace gjmcjetsubstructure
190+
{
191+
DECLARE_SOA_COLUMN(EnergyMother, energyMother, std::vector<float>); //! energy of mother subjet at each splitting
192+
DECLARE_SOA_COLUMN(PtLeading, ptLeading, std::vector<float>); //! pt of leading subjet at each splitting
193+
DECLARE_SOA_COLUMN(PtSubLeading, ptSubLeading, std::vector<float>); //! pt of subleading subjet at each splitting
194+
DECLARE_SOA_COLUMN(Theta, theta, std::vector<float>); //! opening angle theta at each splitting
195+
} // namespace gjmcjetsubstructure
196+
DECLARE_SOA_TABLE(GjMCJetSubstructures, "AOD", "GJMCJETSUBSTR", gjgamma::GjEventId, gjmcjetsubstructure::EnergyMother, gjmcjetsubstructure::PtLeading, gjmcjetsubstructure::PtSubLeading, gjmcjetsubstructure::Theta)
197+
181198
} // namespace o2::aod
182199

183200
#endif // PWGJE_DATAMODEL_GAMMAJETANALYSISTREE_H_

0 commit comments

Comments
 (0)