ATLAS Offline Software
|
Functions | |
template<class T > | |
const T * | getLink (const xAOD::IParticle *particle, std::string name) |
Access to element link to object of type T stored in auxdata. More... | |
const xAOD::Electron * | getRecoElectron (const xAOD::TruthParticle *) |
return the reco electron associated to the given TruthParticle (if any) More... | |
const xAOD::Photon * | getRecoPhoton (const xAOD::TruthParticle *particle) |
return the reco photon associated to the given TruthParticle (if any) More... | |
bool | isTrueConvertedPhoton (const xAOD::Photon *ph, float maxRadius=800.) |
is the object matched to a true converted photon with R < maxRadius More... | |
bool | isTrueConvertedPhoton (const xAOD::TruthParticle *truePh, float maxRadius=800.) |
is the true object a converted photon with R < maxRadius More... | |
const xAOD::TruthParticle * | getBkgElectronMother (const xAOD::Electron *el, const bool allTheWayBack=true) |
Helper wrapper function for calling the function below that accepts truth input. More... | |
const xAOD::TruthParticle * | getBkgElectronMother (const xAOD::TruthParticle *truthel, const bool allTheWayBack=true) |
Helper function for getting the True "Mother" electron for an existing electron. More... | |
std::vector< const xAOD::TruthParticle * > | getBkgElectronLineage (const xAOD::Electron *el, const bool allTheWayBack=true) |
Helper wrapper function for calling the function below that accepts truth input. More... | |
std::vector< const xAOD::TruthParticle * > | getBkgElectronLineage (const xAOD::TruthParticle *truthel, const bool allTheWayBack=true) |
Helper function for getting the True Lineage of an electron for an existing electron. More... | |
bool | isElectron (const xAOD::Egamma *eg) |
is the object an electron (not Fwd) More... | |
bool | isFwdElectron (const xAOD::Egamma *eg) |
is the object a Fwd electron More... | |
bool | isPhoton (const xAOD::Egamma *eg) |
is the object a photon More... | |
bool | isConvertedPhoton (const xAOD::Egamma *eg) |
is the object a converted photon More... | |
bool | isBarrel (const xAOD::Egamma *eg) |
return true if the cluster is in the barrel More... | |
bool | isBarrel (const xAOD::CaloCluster *cluster) |
return true if the cluster (or the majority of its energy) is in the barrel More... | |
bool | isFCAL (const xAOD::CaloCluster *cluster) |
return true if the cluster (or the majority of its energy) is in the FCAL0 More... | |
std::vector< ElementLink< xAOD::CaloClusterContainer > > | getAssociatedTopoClustersLinks (const xAOD::CaloCluster *cluster) |
Return a vector of all the elementlinks to the topo clusters associated with the egamma cluster. More... | |
std::vector< const xAOD::CaloCluster * > | getAssociatedTopoClusters (const xAOD::CaloCluster *cluster) |
Return a vector of all the topo clusters associated with the egamma cluster. More... | |
std::vector< ElementLink< xAOD::FlowElementContainer > > | getAssociatedFlowElementsLinks (const xAOD::Egamma *eg, bool neutral=true) |
Return a vector of the elementlinks to the flow elements associated with the egamma cluster (neutral for default) More... | |
std::vector< const xAOD::FlowElement * > | getAssociatedFlowElements (const xAOD::Egamma *eg, bool neutral=true, bool charged=false) |
Return a vector of the flow elements associated with the egamma cluster (only neutral for default) More... | |
std::set< const xAOD::TrackParticle * > | getTrackParticles (const xAOD::Egamma *eg, bool useBremAssoc=true, bool allParticles=true) |
Return a list of all or only the best TrackParticle associated to the object. More... | |
std::vector< const xAOD::TrackParticle * > | getTrackParticlesVec (const xAOD::Egamma *eg, bool useBremAssoc=true, bool allParticles=true) |
Return a list of all or only the best TrackParticle associated to the object. More... | |
int | summaryValueInt (const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999) |
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python where uint8_t is converted to char and the Tracking does not provide unprotected methods) More... | |
float | summaryValueFloat (const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, float deflt=-999.) |
return the summary value for a TrackParticle or default value (-999) More... | |
const xAOD::TrackParticle * | getOriginalTrackParticle (const xAOD::Electron *el) |
Helper function for getting the "Original" Track Particle (i.e before GSF) via the electron. More... | |
const xAOD::TrackParticle * | getOriginalTrackParticleFromGSF (const xAOD::TrackParticle *trkPar) |
Helper function for getting the "Original" Track Particle (i.e before GSF) via the GSF Track Particle. More... | |
float | getLastMeasurementQoverP (const xAOD::TrackParticle *tp) |
return parameters for the last measurement for a GSF track particle More... | |
std::set< const xAOD::TrackParticle * > | getTrackParticles (const xAOD::Electron *el, bool useBremAssoc=true, bool allParticles=true) |
Return a list of all or only the best TrackParticle associated to the object. More... | |
std::vector< const xAOD::TrackParticle * > | getTrackParticlesVec (const xAOD::Electron *el, bool useBremAssoc=true, bool allParticles=true) |
Return a list of all or only the best TrackParticle associated to the object. More... | |
std::size_t | numberOfSiHits (const xAOD::TrackParticle *tp) |
return the number of Si hits in the track particle More... | |
bool | isConvertedPhoton (const xAOD::Photon *ph) |
is the object a converted photon More... | |
xAOD::EgammaParameters::ConversionType | conversionType (const xAOD::Photon *ph) |
return the photon conversion type (see EgammaEnums) More... | |
xAOD::EgammaParameters::ConversionType | conversionType (const xAOD::Vertex *vx) |
return the photon conversion type (see EgammaEnums) More... | |
std::size_t | numberOfSiTracks (const xAOD::Photon *eg) |
return the number of Si tracks in the conversion More... | |
std::size_t | numberOfSiTracks (const xAOD::Vertex *vx) |
return the number of Si tracks in the conversion More... | |
std::size_t | numberOfSiTracks (const xAOD::EgammaParameters::ConversionType convType) |
return the number of Si tracks in the conversion More... | |
float | conversionRadius (const xAOD::Vertex *vx) |
return the conversion radius or 9999. More... | |
float | conversionRadius (const xAOD::Photon *ph) |
return the conversion radius or 9999. More... | |
Amg::Vector3D | momentumAtVertex (const xAOD::Photon *, bool debug=false) |
return the momentum at the vertex (which can be 0) More... | |
Amg::Vector3D | momentumAtVertex (const xAOD::Vertex &, bool debug=false) |
return the momentum at the vertex (which can be 0) More... | |
std::set< const xAOD::TrackParticle * > | getTrackParticles (const xAOD::Photon *ph, bool useBremAssoc=true) |
Return a list of all or only the best TrackParticle associated to the object. More... | |
std::vector< const xAOD::TrackParticle * > | getTrackParticlesVec (const xAOD::Photon *ph, bool useBremAssoc=true) |
Return a list of all or only the best TrackParticle associated to the object. More... | |
float xAOD::EgammaHelpers::conversionRadius | ( | const xAOD::Photon * | ph | ) |
return the conversion radius or 9999.
Definition at line 74 of file PhotonxAODHelpers.cxx.
float xAOD::EgammaHelpers::conversionRadius | ( | const xAOD::Vertex * | vx | ) |
xAOD::EgammaParameters::ConversionType xAOD::EgammaHelpers::conversionType | ( | const xAOD::Photon * | ph | ) |
return the photon conversion type (see EgammaEnums)
Definition at line 19 of file PhotonxAODHelpers.cxx.
xAOD::EgammaParameters::ConversionType xAOD::EgammaHelpers::conversionType | ( | const xAOD::Vertex * | vx | ) |
return the photon conversion type (see EgammaEnums)
Definition at line 24 of file PhotonxAODHelpers.cxx.
std::vector< const xAOD::FlowElement * > xAOD::EgammaHelpers::getAssociatedFlowElements | ( | const xAOD::Egamma * | eg, |
bool | neutral = true , |
||
bool | charged = false |
||
) |
Return a vector of the flow elements associated with the egamma cluster (only neutral for default)
Definition at line 93 of file EgammaxAODHelpers.cxx.
std::vector< ElementLink< xAOD::FlowElementContainer > > xAOD::EgammaHelpers::getAssociatedFlowElementsLinks | ( | const xAOD::Egamma * | eg, |
bool | neutral = true |
||
) |
Return a vector of the elementlinks to the flow elements associated with the egamma cluster (neutral for default)
Definition at line 80 of file EgammaxAODHelpers.cxx.
std::vector< const xAOD::CaloCluster * > xAOD::EgammaHelpers::getAssociatedTopoClusters | ( | const xAOD::CaloCluster * | cluster | ) |
Return a vector of all the topo clusters associated with the egamma cluster.
Definition at line 66 of file EgammaxAODHelpers.cxx.
std::vector< ElementLink< xAOD::CaloClusterContainer > > xAOD::EgammaHelpers::getAssociatedTopoClustersLinks | ( | const xAOD::CaloCluster * | cluster | ) |
Return a vector of all the elementlinks to the topo clusters associated with the egamma cluster.
Definition at line 56 of file EgammaxAODHelpers.cxx.
std::vector< const xAOD::TruthParticle * > xAOD::EgammaHelpers::getBkgElectronLineage | ( | const xAOD::Electron * | el, |
const bool | allTheWayBack = true |
||
) |
Helper wrapper function for calling the function below that accepts truth input.
Definition at line 110 of file EgammaTruthxAODHelpers.cxx.
std::vector< const xAOD::TruthParticle * > xAOD::EgammaHelpers::getBkgElectronLineage | ( | const xAOD::TruthParticle * | truthel, |
const bool | allTheWayBack = true |
||
) |
Helper function for getting the True Lineage of an electron for an existing electron.
There are cases when an electron has a photon (or electron) mother, that in turn comes from another particle (possible leading to a Z or W etc). This method will navigate back and will return all true electron and photons in the lineage. in case of complex topologies will return just the 1st electron or photon mother
The user can apply also a barcode cut. This is handy in cases when we want to find the first non geant particle occuring when going back the lineage. The method will stop after the 1st particle failing this cut
Definition at line 118 of file EgammaTruthxAODHelpers.cxx.
const xAOD::TruthParticle * xAOD::EgammaHelpers::getBkgElectronMother | ( | const xAOD::Electron * | el, |
const bool | allTheWayBack = true |
||
) |
Helper wrapper function for calling the function below that accepts truth input.
It extract the truth from the reco electron and uses the function below
Definition at line 91 of file EgammaTruthxAODHelpers.cxx.
const xAOD::TruthParticle * xAOD::EgammaHelpers::getBkgElectronMother | ( | const xAOD::TruthParticle * | truthel, |
const bool | allTheWayBack = true |
||
) |
Helper function for getting the True "Mother" electron for an existing electron.
There are cases when an electron has a photon (or electron) mother, that in turn comes from another particle (possible leading to a Z or W etc). This method will navigate back up to the last electron or photon it can find in the lineage of the original true electron. Then the user just needs to check this electron/photon. If it fails returns null pointer.
The user can also get the first Geant4 particle cut. This is handy in cases when we want to find the first non geant particle occuring when going back the lineage. The method will stop after the 1st particle failing this cut
Definition at line 99 of file EgammaTruthxAODHelpers.cxx.
float xAOD::EgammaHelpers::getLastMeasurementQoverP | ( | const xAOD::TrackParticle * | tp | ) |
return parameters for the last measurement for a GSF track particle
Definition at line 31 of file ElectronxAODHelpers.cxx.
const T* xAOD::EgammaHelpers::getLink | ( | const xAOD::IParticle * | particle, |
std::string | name | ||
) |
Access to element link to object of type T stored in auxdata.
Definition at line 27 of file EgammaTruthxAODHelpers.h.
const xAOD::TrackParticle * xAOD::EgammaHelpers::getOriginalTrackParticle | ( | const xAOD::Electron * | el | ) |
Helper function for getting the "Original" Track Particle (i.e before GSF) via the electron.
Definition at line 11 of file ElectronxAODHelpers.cxx.
const xAOD::TrackParticle * xAOD::EgammaHelpers::getOriginalTrackParticleFromGSF | ( | const xAOD::TrackParticle * | trkPar | ) |
Helper function for getting the "Original" Track Particle (i.e before GSF) via the GSF Track Particle.
Definition at line 22 of file ElectronxAODHelpers.cxx.
const xAOD::Electron * xAOD::EgammaHelpers::getRecoElectron | ( | const xAOD::TruthParticle * | particle | ) |
return the reco electron associated to the given TruthParticle (if any)
Definition at line 31 of file EgammaTruthxAODHelpers.cxx.
const xAOD::Photon * xAOD::EgammaHelpers::getRecoPhoton | ( | const xAOD::TruthParticle * | particle | ) |
return the reco photon associated to the given TruthParticle (if any)
Definition at line 54 of file EgammaTruthxAODHelpers.cxx.
std::set< const xAOD::TrackParticle * > xAOD::EgammaHelpers::getTrackParticles | ( | const xAOD::Egamma * | eg, |
bool | useBremAssoc = true , |
||
bool | allParticles = true |
||
) |
Return a list of all or only the best TrackParticle associated to the object.
If useBremAssoc is set, get the original TrackParticle This is useful when a std::set of the original track Particles is required, which is mainly the case for the as it will re-order the elements in pointer order and not best match.
Definition at line 121 of file EgammaxAODHelpers.cxx.
std::set< const xAOD::TrackParticle * > xAOD::EgammaHelpers::getTrackParticles | ( | const xAOD::Electron * | el, |
bool | useBremAssoc = true , |
||
bool | allParticles = true |
||
) |
Return a list of all or only the best TrackParticle associated to the object.
If useBremAssoc is set, get the original TrackParticle This is useful when a std::set of the original track Particles is required, which is mainly the case for the
as it will re-order the elements in pointer order and not best match.
Definition at line 39 of file ElectronxAODHelpers.cxx.
std::set< const xAOD::TrackParticle * > xAOD::EgammaHelpers::getTrackParticles | ( | const xAOD::Photon * | ph, |
bool | useBremAssoc = true |
||
) |
Return a list of all or only the best TrackParticle associated to the object.
If useBremAssoc is set, get the original TrackParticle This is useful when a std::set of the original track Particles is required, which is mainly the case for the
as it will re-order the elements in pointer order and not best match.
Definition at line 108 of file PhotonxAODHelpers.cxx.
std::vector< const xAOD::TrackParticle * > xAOD::EgammaHelpers::getTrackParticlesVec | ( | const xAOD::Egamma * | eg, |
bool | useBremAssoc = true , |
||
bool | allParticles = true |
||
) |
Return a list of all or only the best TrackParticle associated to the object.
If useBremAssoc is set, get the original TrackParticle This one returns a vector so as to be more "user friendly", as it retains the original best match ordering
Definition at line 142 of file EgammaxAODHelpers.cxx.
std::vector< const xAOD::TrackParticle * > xAOD::EgammaHelpers::getTrackParticlesVec | ( | const xAOD::Electron * | el, |
bool | useBremAssoc = true , |
||
bool | allParticles = true |
||
) |
Return a list of all or only the best TrackParticle associated to the object.
If useBremAssoc is set, get the original TrackParticle This one returns a vector so as to be more "user friendly",as it retains the original best match ordering
Definition at line 52 of file ElectronxAODHelpers.cxx.
std::vector< const xAOD::TrackParticle * > xAOD::EgammaHelpers::getTrackParticlesVec | ( | const xAOD::Photon * | ph, |
bool | useBremAssoc = true |
||
) |
Return a list of all or only the best TrackParticle associated to the object.
If useBremAssoc is set, get the original TrackParticle This one returns a vector so as to be more "user friendly",as it retains the original best match ordering
Definition at line 124 of file PhotonxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isBarrel | ( | const xAOD::CaloCluster * | cluster | ) |
return true if the cluster (or the majority of its energy) is in the barrel
Definition at line 38 of file EgammaxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isBarrel | ( | const xAOD::Egamma * | eg | ) |
return true if the cluster is in the barrel
Definition at line 34 of file EgammaxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isConvertedPhoton | ( | const xAOD::Egamma * | eg | ) |
bool xAOD::EgammaHelpers::isConvertedPhoton | ( | const xAOD::Photon * | ph | ) |
is the object a converted photon
Definition at line 15 of file PhotonxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isElectron | ( | const xAOD::Egamma * | eg | ) |
bool xAOD::EgammaHelpers::isFCAL | ( | const xAOD::CaloCluster * | cluster | ) |
return true if the cluster (or the majority of its energy) is in the FCAL0
Definition at line 47 of file EgammaxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isFwdElectron | ( | const xAOD::Egamma * | eg | ) |
is the object a Fwd electron
Definition at line 18 of file EgammaxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isPhoton | ( | const xAOD::Egamma * | eg | ) |
is the object a photon
Definition at line 22 of file EgammaxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isTrueConvertedPhoton | ( | const xAOD::Photon * | ph, |
float | maxRadius = 800. |
||
) |
is the object matched to a true converted photon with R < maxRadius
Definition at line 69 of file EgammaTruthxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isTrueConvertedPhoton | ( | const xAOD::TruthParticle * | truePh, |
float | maxRadius = 800. |
||
) |
is the true object a converted photon with R < maxRadius
Definition at line 83 of file EgammaTruthxAODHelpers.cxx.
Amg::Vector3D xAOD::EgammaHelpers::momentumAtVertex | ( | const xAOD::Photon * | photon, |
bool | debug = false |
||
) |
return the momentum at the vertex (which can be 0)
Definition at line 81 of file PhotonxAODHelpers.cxx.
Amg::Vector3D xAOD::EgammaHelpers::momentumAtVertex | ( | const xAOD::Vertex & | vertex, |
bool | debug = false |
||
) |
return the momentum at the vertex (which can be 0)
Definition at line 87 of file PhotonxAODHelpers.cxx.
std::size_t xAOD::EgammaHelpers::numberOfSiHits | ( | const xAOD::TrackParticle * | tp | ) |
return the number of Si hits in the track particle
Definition at line 66 of file ElectronxAODHelpers.cxx.
std::size_t xAOD::EgammaHelpers::numberOfSiTracks | ( | const xAOD::EgammaParameters::ConversionType | convType | ) |
return the number of Si tracks in the conversion
Definition at line 60 of file PhotonxAODHelpers.cxx.
std::size_t xAOD::EgammaHelpers::numberOfSiTracks | ( | const xAOD::Photon * | eg | ) |
return the number of Si tracks in the conversion
Definition at line 50 of file PhotonxAODHelpers.cxx.
std::size_t xAOD::EgammaHelpers::numberOfSiTracks | ( | const xAOD::Vertex * | vx | ) |
return the number of Si tracks in the conversion
Definition at line 55 of file PhotonxAODHelpers.cxx.
float xAOD::EgammaHelpers::summaryValueFloat | ( | const xAOD::TrackParticle & | tp, |
const xAOD::SummaryType & | info, | ||
float | deflt = -999. |
||
) |
int xAOD::EgammaHelpers::summaryValueInt | ( | const xAOD::TrackParticle & | tp, |
const xAOD::SummaryType & | info, | ||
int | deflt = -999 |
||
) |
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python where uint8_t is converted to char and the Tracking does not provide unprotected methods)
Definition at line 162 of file EgammaxAODHelpers.cxx.