CMS 3D CMS Logo

Electron.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6 
7 Electron *Electron::clone() const { return new Electron(*this); }
8 
9 TrackRef Electron::track() const { return track_; }
10 
11 GsfTrackRef Electron::gsfTrack() const { return gsfTrack_; }
12 
14 
15 bool Electron::overlap(const Candidate &c) const {
16  const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
17  return (o != nullptr && (checkOverlap(track(), o->track()) || checkOverlap(superCluster(), o->superCluster())));
18  return false;
19 }
20 
21 bool Electron::isElectron() const { return true; }
bool isElectron() const override
Electron * clone() const override
returns a clone of the candidate
reco::GsfTrackRef gsfTrack_
reference to a GsfTrack;
Definition: Electron.h:51
reco::GsfTrackRef gsfTrack() const override
reference to a GsfTrack
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
reco::TrackRef track_
reference to a Track
Definition: Electron.h:49
fixed size matrix
bool overlap(const Candidate &) const override
check overlap with another candidate
reco::SuperClusterRef superCluster() const override
reference to a SuperCluster
Electron()
default constructor
Definition: Electron.h:19
reco::TrackRef track() const override
reference to a Track
~Electron() override
destructor
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:47