ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12namespace CP {
13using ROOT::Math::PtEtaPhiMVector;
14
15void 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
bool Retrievep4Gamma(PtEtaPhiMVector &p4, int &parentpdgId)
void FillGammaPartonHistory(const std::string &parent)
Select isolated Photons, Electrons and Muons.