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.
1 // $Id: Electron.cc,v 1.5 2012/01/23 11:29:52 sani Exp $
3 
4 using namespace reco;
5 
7 
9  return new Electron( * this );
10 }
11 
13  return track_;
14 }
15 
17  return gsfTrack_;
18 }
19 
21  return superCluster_;
22 }
23 
24 bool Electron::overlap( const Candidate & c ) const {
25  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
26  return ( o != 0 &&
27  ( checkOverlap( track(), o->track() ) ||
29  );
30  return false;
31 }
32 
33 bool Electron::isElectron() const {
34  return true;
35 }
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
virtual reco::TrackRef track() const
reference to a Track
Definition: Electron.cc:12
virtual ~Electron()
destructor
Definition: Electron.cc:6
reco::GsfTrackRef gsfTrack_
reference to a GsfTrack;
Definition: Electron.h:51
virtual reco::TrackRef track() const
reference to a Track
virtual reco::GsfTrackRef gsfTrack() const
reference to a GsfTrack
Definition: Electron.cc:16
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: Electron.cc:20
virtual Electron * clone() const
returns a clone of the candidate
Definition: Electron.cc:8
reco::TrackRef track_
reference to a Track
Definition: Electron.h:49
virtual bool overlap(const Candidate &) const
check overlap with another candidate
Definition: Electron.cc:24
Electron()
default constructor
Definition: Electron.h:20
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:47
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
bool isElectron() const
Definition: Electron.cc:33