ATLAS Offline Software
EgammaTruthxAODHelpers.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: EgammaTruthxAODHelpers.h 768706 2016-08-18 23:55:25Z christos $
8 #ifndef XAOD_EGAMMATRUTHXAODHELPERS_H
9 #define XAOD_EGAMMATRUTHXAODHELPERS_H
10 
11 #include "xAODEgamma/EgammaFwd.h"
12 #include "xAODEgamma/ElectronFwd.h"
13 #include "xAODEgamma/PhotonFwd.h"
17 
18 #include <cstddef>
19 #include <set>
20 
21 namespace xAOD {
22 
23  namespace EgammaHelpers{
24 
27 
30 
32  bool isTrueConvertedPhoton(const xAOD::Photon* ph, float maxRadius = 800.);
33 
35  bool isTrueConvertedPhoton(const xAOD::TruthParticle* truePh, float maxRadius = 800.);
36 
48  std::vector<const xAOD::TruthParticle*>
50  const bool allTheWayBack = true);
51 
54  const xAOD::TruthParticle*
56  const bool allTheWayBack = true);
57 
60  const xAOD::TruthParticle*
62  const bool allTheWayBack = true);
63 
65  std::vector<const xAOD::TruthParticle*>
67  const bool allTheWayBack = true);
68 
69  }// EgammaHelpers
70 
71 } // namespace xAOD
72 
73 #endif // XAOD_EGAMMAXAODHELPERS_H
EgammaFwd.h
xAOD::EgammaHelpers::getRecoPhoton
const xAOD::Photon * getRecoPhoton(const xAOD::TruthParticle *particle)
return the reco photon associated to the given TruthParticle (if any)
Definition: EgammaTruthxAODHelpers.cxx:54
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
xAOD::EgammaHelpers::getBkgElectronLineage
std::vector< const xAOD::TruthParticle * > getBkgElectronLineage(const xAOD::TruthParticle *truthel, const bool allTheWayBack=true)
Helper function for getting the truth lineage of an electron that is arising from material interactio...
Definition: EgammaTruthxAODHelpers.cxx:90
TruthParticleContainer.h
PhotonFwd.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::EgammaHelpers::getBkgElectronMother
const xAOD::TruthParticle * getBkgElectronMother(const xAOD::Electron *el, const bool allTheWayBack=true)
Helper wrapper function for calling the function above extracting the truth from a reco electron.
Definition: EgammaTruthxAODHelpers.cxx:133
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:37
ElectronFwd.h
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
xAOD::EgammaHelpers::isTrueConvertedPhoton
bool isTrueConvertedPhoton(const xAOD::Photon *ph, float maxRadius=800.)
is the object matched to a true converted photon with R < maxRadius
Definition: EgammaTruthxAODHelpers.cxx:69
xAOD::EgammaHelpers::getRecoElectron
const xAOD::Electron * getRecoElectron(const xAOD::TruthParticle *)
return the reco electron associated to the given TruthParticle (if any)
Definition: EgammaTruthxAODHelpers.cxx:31
xAOD::Electron_v1
Definition: Electron_v1.h:34
xAOD::Photon_v1
Definition: Photon_v1.h:37
TrackParticleFwd.h
TruthParticle.h