ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODEgamma
xAODEgamma
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
"
14
#include "
xAODTracking/TrackParticleFwd.h
"
15
#include "
xAODTruth/TruthParticleContainer.h
"
16
#include "
xAODTruth/TruthParticle.h
"
17
18
#include <cstddef>
19
#include <set>
20
21
namespace
xAOD
{
22
23
namespace
EgammaHelpers
{
24
26
const
xAOD::Electron
*
getRecoElectron
(
const
xAOD::TruthParticle
*);
27
29
const
xAOD::Photon
*
getRecoPhoton
(
const
xAOD::TruthParticle
* particle);
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*>
49
getBkgElectronLineage
(
const
xAOD::TruthParticle
* truthel,
50
const
bool
allTheWayBack =
true
);
51
54
const
xAOD::TruthParticle
*
55
getBkgElectronMother
(
const
xAOD::Electron
* el,
56
const
bool
allTheWayBack =
true
);
57
60
const
xAOD::TruthParticle
*
61
getBkgElectronMother
(
const
xAOD::TruthParticle
* truthel,
62
const
bool
allTheWayBack =
true
);
63
65
std::vector<const xAOD::TruthParticle*>
66
getBkgElectronLineage
(
const
xAOD::Electron
* el,
67
const
bool
allTheWayBack =
true
);
68
69
}
// EgammaHelpers
70
71
}
// namespace xAOD
72
73
#endif
// XAOD_EGAMMAXAODHELPERS_H
EgammaFwd.h
ElectronFwd.h
TruthParticleContainer.h
TruthParticle.h
PhotonFwd.h
TrackParticleFwd.h
xAOD::EgammaHelpers
Definition
EgammaTruthxAODHelpers.h:23
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
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::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:137
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
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
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
xAOD::Photon
Photon_v1 Photon
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Photon.h:17
xAOD::Electron
Electron_v1 Electron
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Electron.h:17
Generated on
for ATLAS Offline Software by
1.17.0