ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TruthPartonLevelAnalysisAlgorithms
Root
CalcPhotonPartonHistory.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
7
8
#include "
PartonHistory/CalcPartonHistory.h
"
9
#include "
VectorHelpers/DecoratorHelpers.h
"
10
11
namespace
CP
{
12
using
ROOT::Math::PtEtaPhiMVector;
13
14
void
CalcPartonHistory::FillGammaPartonHistory
() {
15
PtEtaPhiMVector gamma;
16
int
gamma_origin = 0;
17
18
m_dec
.decorateDefault(
"MC_gamma"
);
19
20
if
(
Retrievep4Gamma
(gamma, gamma_origin))
21
m_dec
.decorateParticle(
"MC_gamma"
, gamma);
22
23
m_dec
.decorateCustom(
"MC_gamma_origin"
, gamma_origin);
24
}
25
}
// namespace CP
CalcPartonHistory.h
DecoratorHelpers.h
CP::CalcPartonHistory::Retrievep4Gamma
bool Retrievep4Gamma(PtEtaPhiMVector &p4, int &parentpdgId)
Definition
CalcPartonHistory.cxx:72
CP::CalcPartonHistory::FillGammaPartonHistory
void FillGammaPartonHistory()
Definition
CalcPhotonPartonHistory.cxx:14
CP::CalcPartonHistory::m_dec
PartonDecorator m_dec
Definition
CalcPartonHistory.h:162
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0