#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 | |
bool | isElectron () const |
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::SuperClusterRef | superCluster_ |
reference to a SuperCluster | |
reco::TrackRef | track_ |
reference to a Track |
Reco Candidates with an Electron component
Definition at line 16 of file Electron.h.
reco::Electron::Electron | ( | ) | [inline] |
default constructor
Definition at line 19 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 21 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 ); }
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 20 of file Electron.cc.
References trackerHits::c, reco::RecoCandidate::checkOverlap(), 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::setSuperCluster | ( | const reco::SuperClusterRef & | r | ) | [inline] |
set refrence to Photon component
Definition at line 33 of file Electron.h.
References csvReporter::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 35 of file Electron.h.
References csvReporter::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 16 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_; }
reference to a SuperCluster
Definition at line 42 of file Electron.h.
Referenced by setSuperCluster(), and superCluster().
reco::TrackRef reco::Electron::track_ [private] |
reference to a Track
Definition at line 44 of file Electron.h.
Referenced by setTrack(), and track().