|
ATLAS Offline Software
|
Go to the documentation of this file.
28 recoElectronLinkAcc(
"recoElectronLink" );
33 if( ! recoElectronLinkAcc.isAvailable( *
particle ) ) {
51 recoPhotonLinkAcc(
"recoPhotonLink" );
56 if( ! recoPhotonLinkAcc.isAvailable( *
particle ) ) {
71 if (!truthPh) {
return false;}
78 if (!orgTruthPh){
return false;}
89 std::vector<const xAOD::TruthParticle*>
91 const bool allTheWayBack) {
92 std::vector<const xAOD::TruthParticle*>
vec;
97 vec.push_back(truthel);
117 while (
parent->nParents() &&
134 const bool allTheWayBack){
142 const bool allTheWayBack) {
143 std::vector<const xAOD::TruthParticle*>
vec =
151 std::vector<const xAOD::TruthParticle*>
153 const bool allTheWayBack) {
const TruthParticle_v1 * parent(size_t i=0) const
Retrieve the i-th mother (TruthParticle) of this TruthParticle.
const xAOD::Photon * getRecoPhoton(const xAOD::TruthParticle *particle)
return the reco photon associated to the given TruthParticle (if any)
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Helper class to provide type-safe access to aux data.
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...
std::vector< size_t > vec
bool isValid() const
Test to see if the link can be dereferenced.
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.
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
bool hasDecayVtx() const
Check for a decay vertex on this particle.
size_t nParents() const
Number of parents of this particle.
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
bool isElectron(const xAOD::Egamma *eg)
is the object an electron (not Fwd)
Class describing a truth particle in the MC record.
float perp() const
Vertex transverse distance from the beam line.
ElementLink implementation for ROOT usage.
const TruthVertex_v1 * decayVtx() const
The decay vertex of this particle.
bool isTrueConvertedPhoton(const xAOD::Photon *ph, float maxRadius=800.)
is the object matched to a true converted photon with R < maxRadius
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle &p)
Return the truthParticle associated to the given IParticle (if any)
const xAOD::Electron * getRecoElectron(const xAOD::TruthParticle *)
return the reco electron associated to the given TruthParticle (if any)
bool isPhoton(const xAOD::Egamma *eg)
is the object a photon