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.3 2006/06/16 15:01:16 llista Exp $
3 
4 using namespace reco;
5 
7 
9  return new Electron( * this );
10 }
11 
13  return track_;
14 }
15 
17  return superCluster_;
18 }
19 
20 bool Electron::overlap( const Candidate & c ) const {
21  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
22  return ( o != 0 &&
23  ( checkOverlap( track(), o->track() ) ||
25  );
26  return false;
27 }
28 
29 bool Electron::isElectron() const {
30  return true;
31 }
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
virtual reco::TrackRef track() const
reference to a Track
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: Electron.cc:16
virtual Electron * clone() const
returns a clone of the candidate
Definition: Electron.cc:8
reco::TrackRef track_
reference to a Track
Definition: Electron.h:44
virtual bool overlap(const Candidate &) const
check overlap with another candidate
Definition: Electron.cc:20
Electron()
default constructor
Definition: Electron.h:19
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:42
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
bool isElectron() const
Definition: Electron.cc:29