![]() |
ATLAS Offline Software
|
Functions | |
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... | |
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 interactions in simulation (so called Bkg Electron) There are cases when an electron has a photon (or electron) mother, that in turn comes from another electron of photon. More... | |
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. More... | |
const xAOD::TruthParticle * | getBkgElectronMother (const xAOD::TruthParticle *truthel, const bool allTheWayBack=true) |
Helper function for getting the "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... | |
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, bool excludeTRT=false) |
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... | |
unsigned short | energyInMissingCells (const xAOD::Egamma &eg, double &e2, double &e3) |
Get the energies in sampling 2 and 3 that are in cells rejected by the topo-cluster timing cut but that would have been expected in a egamma cluster. 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, bool excludeTRT=false) |
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 82 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 27 of file PhotonxAODHelpers.cxx.
xAOD::EgammaParameters::ConversionType xAOD::EgammaHelpers::conversionType | ( | const xAOD::Vertex * | vx | ) |
return the photon conversion type (see EgammaEnums)
Definition at line 32 of file PhotonxAODHelpers.cxx.
unsigned short xAOD::EgammaHelpers::energyInMissingCells | ( | const xAOD::Egamma & | eg, |
double & | e2, | ||
double & | e3 | ||
) |
Get the energies in sampling 2 and 3 that are in cells rejected by the topo-cluster timing cut but that would have been expected in a egamma cluster.
Definition at line 176 of file EgammaxAODHelpers.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 92 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 79 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 65 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 55 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 157 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 truth lineage of an electron that is arising from material interactions in simulation (so called Bkg Electron) There are cases when an electron has a photon (or electron) mother, that in turn comes from another electron of photon.
The allTheWayBack (default true) will return the full lineage of the electron going back to the earliest generator e/gamma truth particle available. When this is set to false we stop at the generator e/gamma particle that interacted with material in simulation (meaning we will not go at the beginning of the generator record). The 0th entry of the returned vector is the passed e/gamma particle, while the last is the last e/gamma particle we have seen in the lineage.
Definition at line 90 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 above extracting the truth from a reco electron.
Definition at line 137 of file EgammaTruthxAODHelpers.cxx.
const xAOD::TruthParticle * xAOD::EgammaHelpers::getBkgElectronMother | ( | const xAOD::TruthParticle * | truthel, |
const bool | allTheWayBack = true |
||
) |
Helper function for getting the "Mother" electron for an existing electron.
return the last entry in the lineage vector
Definition at line 145 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 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 120 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 116 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 141 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 132 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 37 of file EgammaxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isBarrel | ( | const xAOD::Egamma * | eg | ) |
return true if the cluster is in the barrel
Definition at line 33 of file EgammaxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isConvertedPhoton | ( | const xAOD::Egamma * | eg, |
bool | excludeTRT = false |
||
) |
bool xAOD::EgammaHelpers::isConvertedPhoton | ( | const xAOD::Photon * | ph, |
bool | excludeTRT = false |
||
) |
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 46 of file EgammaxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isFwdElectron | ( | const xAOD::Egamma * | eg | ) |
is the object a Fwd electron
Definition at line 17 of file EgammaxAODHelpers.cxx.
bool xAOD::EgammaHelpers::isPhoton | ( | const xAOD::Egamma * | eg | ) |
is the object a photon
Definition at line 21 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 89 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 95 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 68 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 58 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 63 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 161 of file EgammaxAODHelpers.cxx.