CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Electron.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6 
8  return new Electron( * this );
9 }
10 
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:63
virtual reco::TrackRef track() const
reference to a Track
Definition: Electron.cc:11
virtual ~Electron()
destructor
Definition: Electron.cc:5
reco::GsfTrackRef gsfTrack_
reference to a GsfTrack;
Definition: Electron.h:50
virtual reco::TrackRef track() const
reference to a Track
virtual reco::GsfTrackRef gsfTrack() const
reference to a GsfTrack
Definition: Electron.cc:15
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: Electron.cc:19
virtual Electron * clone() const
returns a clone of the candidate
Definition: Electron.cc:7
reco::TrackRef track_
reference to a Track
Definition: Electron.h:48
virtual bool overlap(const Candidate &) const
check overlap with another candidate
Definition: Electron.cc:23
Electron()
default constructor
Definition: Electron.h:19
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:46
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
bool isElectron() const
Definition: Electron.cc:32