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
10
11namespace CP {
12using ROOT::Math::PtEtaPhiMVector;
13
14void CalcPartonHistory::FillGammaPartonHistory(const std::string& parent) {
15 std::string parentstring = parent.empty() ? "" : "_from_" + parent;
16 PtEtaPhiMVector gamma;
17 int gamma_origin = -1;
18
19 m_dec.decorateDefault("MC_gamma" + parentstring);
20 m_dec.decorateCustom("MC_gamma_origin", 0);
21
22 if (Retrievep4Gamma(gamma, gamma_origin))
23 m_dec.decorateParticle("MC_gamma" + parentstring, gamma);
24
25 m_dec.decorateCustom("MC_gamma_origin", gamma_origin);
26}
27} // namespace CP
bool Retrievep4Gamma(PtEtaPhiMVector &p4, int &parentpdgId)
void FillGammaPartonHistory(const std::string &parent)
Select isolated Photons, Electrons and Muons.