Electron / photon ambiguity resolution. Dual-use version. More...
#include <EGammaAmbiguityTool.h>
Public Member Functions | |
| EGammaAmbiguityTool (std::string myname) | |
| virtual | ~EGammaAmbiguityTool () |
| virtual StatusCode | initialize () |
| virtual StatusCode | finalize () |
| virtual unsigned int | ambiguityResolve (const xAOD::CaloCluster *cluster, const xAOD::Vertex *vx, const xAOD::TrackParticle *tp, xAOD::AmbiguityTool::AmbiguityType &type) const |
| virtual unsigned int | ambiguityResolve (const xAOD::CaloCluster *cluster, const xAOD::Vertex *vx, const xAOD::TrackParticle *tp) const |
| unsigned int | ambiguityResolve (const xAOD::Egamma &egamma) const |
| bool | accept (const xAOD::Egamma &egamma, bool acceptAmbiguous=true) const |
| const xAOD::Egamma * | getOverlappingObject (const xAOD::Egamma &egamma, const xAOD::EgammaContainer *egammaContainer) const |
| bool | hasInnermostPixelHit (const xAOD::TrackParticle &tp) const |
| size_t | nTrkWithInnermostPixelHits (const xAOD::Vertex &vx) const |
| bool | isInVertex (const xAOD::TrackParticle &, const xAOD::Vertex &) const |
| bool | passDeltaR_innermost (const xAOD::Vertex &vx) const |
Electron / photon ambiguity resolution. Dual-use version.
Electron / photon ambiguity resolution. Dual-use version, interface.
| EGammaAmbiguityTool::EGammaAmbiguityTool | ( | std::string | myname | ) |
Standard constructor
| EGammaAmbiguityTool::~EGammaAmbiguityTool | ( | ) | [virtual] |
Standard destructor
| bool EGammaAmbiguityTool::accept | ( | const xAOD::Egamma & | egamma, | |
| bool | acceptAmbiguous = true | |||
| ) | const [virtual] |
Accept or reject egamma object based on ambiguity resolution (e.g. if object is a photon and ambiguity return value is electron -> reject)
Accept or reject egamma object based on ambiguity resolution
Implements IEGammaAmbiguityTool.
| unsigned int EGammaAmbiguityTool::ambiguityResolve | ( | const xAOD::Egamma & | egamma | ) | const [virtual] |
Redo the ambiguity resolution of central electrons and photons and return AuthorElectron, AuthorPhoton, AuthorAmbiguous, AuthorUnknown or the author of the object if no overlapping object is found
Implements IEGammaAmbiguityTool.
| unsigned int EGammaAmbiguityTool::ambiguityResolve | ( | const xAOD::CaloCluster * | cluster, | |
| const xAOD::Vertex * | vx, | |||
| const xAOD::TrackParticle * | tp | |||
| ) | const [virtual] |
Return value: AuthorElectron, AuthorPhoton, AuthorAmbiguous, AuthorUnknown Needed because of cliets implementation calls method above
Implements IEGammaAmbiguityTool.
| unsigned int EGammaAmbiguityTool::ambiguityResolve | ( | const xAOD::CaloCluster * | cluster, | |
| const xAOD::Vertex * | vx, | |||
| const xAOD::TrackParticle * | tp, | |||
| xAOD::AmbiguityTool::AmbiguityType & | type | |||
| ) | const [virtual] |
Return value: AuthorElectron, AuthorPhoton, AuthorAmbiguous, AuthorUnknown
Implements IEGammaAmbiguityTool.
| StatusCode EGammaAmbiguityTool::finalize | ( | ) | [virtual] |
Gaudi Service Interface method implementations
| const xAOD::Egamma * EGammaAmbiguityTool::getOverlappingObject | ( | const xAOD::Egamma & | egamma, | |
| const xAOD::EgammaContainer * | egammaContainer | |||
| ) | const [virtual] |
Get overlapping egamma object given electron or photon
Helper for getting overlapping egamma object given electron or photon
Implements IEGammaAmbiguityTool.
| bool EGammaAmbiguityTool::hasInnermostPixelHit | ( | const xAOD::TrackParticle & | tp | ) | const |
Return true if track has innermost pixel hit or next-to-innermost in case innermost is not expected or at least m_MinNoPixHits pixel hits in case next-to-innermost is not expected
| StatusCode EGammaAmbiguityTool::initialize | ( | void | ) | [virtual] |
Gaudi Service Interface method implementations
Reimplemented from asg::AsgTool.
| bool EGammaAmbiguityTool::isInVertex | ( | const xAOD::TrackParticle & | trk, | |
| const xAOD::Vertex & | vx | |||
| ) | const |
Return true if the given TrackParticle is part of the vertex
| size_t EGammaAmbiguityTool::nTrkWithInnermostPixelHits | ( | const xAOD::Vertex & | vx | ) | const |
Return the number of tracks with "innermost pixel hits" (see above) in the given vertex
| bool EGammaAmbiguityTool::passDeltaR_innermost | ( | const xAOD::Vertex & | vx | ) | const |
Return true if the vertex passes the requirement on Rconv - RfirstHit
1.6.1