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
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
bool Retrievep4Gamma(PtEtaPhiMVector &p4, int &parentpdgId)
Select isolated Photons, Electrons and Muons.