ATLAS Offline Software
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 "
PartonHistory/PartonHistoryUtils.h
"
10
#include "
VectorHelpers/DecoratorHelpers.h
"
11
12
namespace
CP
{
13
using
ROOT::Math::PtEtaPhiMVector;
14
15
void
CalcPartonHistory::FillGammaPartonHistory
(
const
std::string& parent) {
16
std::string parentstring = parent.empty() ?
""
:
"_from_"
+ parent;
17
PtEtaPhiMVector gamma;
18
int
gamma_origin = -1;
19
20
m_dec
.decorateDefault(
"MC_gamma"
+ parentstring);
21
m_dec
.decorateCustom(
"MC_gamma_origin"
, 0);
22
23
if
(
Retrievep4Gamma
(gamma, gamma_origin))
24
m_dec
.decorateParticle(
"MC_gamma"
+ parentstring, gamma);
25
26
m_dec
.decorateCustom(
"MC_gamma_origin"
, gamma_origin);
27
}
28
}
// namespace CP
CalcPartonHistory.h
DecoratorHelpers.h
PartonHistoryUtils.h
CP::CalcPartonHistory::Retrievep4Gamma
bool Retrievep4Gamma(PtEtaPhiMVector &p4, int &parentpdgId)
Definition
CalcPartonHistory.cxx:78
CP::CalcPartonHistory::FillGammaPartonHistory
void FillGammaPartonHistory(const std::string &parent)
Definition
CalcPhotonPartonHistory.cxx:15
CP::CalcPartonHistory::m_dec
PartonDecorator m_dec
Definition
CalcPartonHistory.h:159
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.16.1