#include <Electron.h>
Public Member Functions | |
virtual Electron * | clone () const |
returns a clone of the candidate | |
Electron () | |
default constructor | |
Electron (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0)) | |
constructor from values | |
virtual reco::GsfTrackRef | gsfTrack () const |
reference to a GsfTrack | |
bool | isElectron () const |
void | setGsfTrack (const reco::GsfTrackRef &r) |
set reference to GsfTrack component | |
void | setSuperCluster (const reco::SuperClusterRef &r) |
set refrence to Photon component | |
void | setTrack (const reco::TrackRef &r) |
set refrence to Track component | |
virtual reco::SuperClusterRef | superCluster () const |
reference to a SuperCluster | |
virtual reco::TrackRef | track () const |
reference to a Track | |
virtual | ~Electron () |
destructor | |
Private Member Functions | |
virtual bool | overlap (const Candidate &) const |
check overlap with another candidate | |
Private Attributes | |
reco::GsfTrackRef | gsfTrack_ |
reference to a GsfTrack; | |
reco::SuperClusterRef | superCluster_ |
reference to a SuperCluster | |
reco::TrackRef | track_ |
reference to a Track |
Reco Candidates with an Electron component
Definition at line 17 of file Electron.h.
reco::Electron::Electron | ( | ) | [inline] |
default constructor
Definition at line 20 of file Electron.h.
Referenced by clone().
: RecoCandidate() { }
reco::Electron::Electron | ( | Charge | q, |
const LorentzVector & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) |
||
) | [inline] |
constructor from values
Definition at line 22 of file Electron.h.
: RecoCandidate( q, p4, vtx, -11 * q ) { }
Electron::~Electron | ( | ) | [virtual] |
Electron * Electron::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::RecoCandidate.
Definition at line 8 of file Electron.cc.
References Electron().
{ return new Electron( * this ); }
GsfTrackRef Electron::gsfTrack | ( | ) | const [virtual] |
reference to a GsfTrack
Reimplemented from reco::RecoCandidate.
Definition at line 16 of file Electron.cc.
References gsfTrack_.
{ return gsfTrack_; }
bool Electron::isElectron | ( | ) | const [virtual] |
bool Electron::overlap | ( | const Candidate & | c | ) | const [private, virtual] |
check overlap with another candidate
Implements reco::RecoCandidate.
Definition at line 24 of file Electron.cc.
References trackerHits::c, reco::RecoCandidate::checkOverlap(), python::connectstrParser::o, reco::RecoCandidate::superCluster(), superCluster(), reco::RecoCandidate::track(), and track().
{ const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c ); return ( o != 0 && ( checkOverlap( track(), o->track() ) || checkOverlap( superCluster(), o->superCluster() ) ) ); return false; }
void reco::Electron::setGsfTrack | ( | const reco::GsfTrackRef & | r | ) | [inline] |
set reference to GsfTrack component
Definition at line 40 of file Electron.h.
References gsfTrack_, and alignCSCRings::r.
void reco::Electron::setSuperCluster | ( | const reco::SuperClusterRef & | r | ) | [inline] |
set refrence to Photon component
Definition at line 36 of file Electron.h.
References alignCSCRings::r, and superCluster_.
Referenced by EgammaHLTPixelMatchElectronAlgo::process(), and SiStripElectronAssociator::produce().
{ superCluster_ = r; }
void reco::Electron::setTrack | ( | const reco::TrackRef & | r | ) | [inline] |
set refrence to Track component
Definition at line 38 of file Electron.h.
References alignCSCRings::r, and track_.
Referenced by SoftElectronProducer::produce(), and SiStripElectronAssociator::produce().
SuperClusterRef Electron::superCluster | ( | ) | const [virtual] |
reference to a SuperCluster
Reimplemented from reco::RecoCandidate.
Definition at line 20 of file Electron.cc.
References superCluster_.
Referenced by overlap().
{ return superCluster_; }
TrackRef Electron::track | ( | void | ) | const [virtual] |
reference to a Track
Reimplemented from reco::RecoCandidate.
Definition at line 12 of file Electron.cc.
References track_.
Referenced by overlap().
{ return track_; }
reco::GsfTrackRef reco::Electron::gsfTrack_ [private] |
reference to a GsfTrack;
Definition at line 51 of file Electron.h.
Referenced by gsfTrack(), and setGsfTrack().
reference to a SuperCluster
Definition at line 47 of file Electron.h.
Referenced by setSuperCluster(), and superCluster().
reco::TrackRef reco::Electron::track_ [private] |
reference to a Track
Definition at line 49 of file Electron.h.
Referenced by setTrack(), and track().