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 {
8  return new Electron( * this );
9 }
10 
11 TrackRef Electron::track() const {
12  return track_;
13 }
14 
16  return gsfTrack_;
17 }
18 
20  return superCluster_;
21 }
22 
23 bool Electron::overlap( const Candidate & c ) const {
24  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
25  return ( o != 0 &&
26  ( checkOverlap( track(), o->track() ) ||
28  );
29  return false;
30 }
31 
32 bool Electron::isElectron() const {
33  return true;
34 }
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:69
virtual reco::TrackRef track() const
reference to a Track
virtual Electron * clone() const
returns a clone of the candidate
virtual reco::GsfTrackRef gsfTrack() const
reference to a GsfTrack
reco::GsfTrackRef gsfTrack_
reference to a GsfTrack;
Definition: Electron.h:50
virtual reco::TrackRef track() const
reference to a Track
bool isElectron() const
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
virtual ~Electron()
destructor
reco::TrackRef track_
reference to a Track
Definition: Electron.h:48
fixed size matrix
Electron()
default constructor
Definition: Electron.h:19
virtual bool overlap(const Candidate &) const
check overlap with another candidate
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:46
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster