![]() |
![]() |
00001 // $Id: Electron.cc,v 1.4 2008/04/30 07:46:09 llista Exp $ 00002 #include "DataFormats/EgammaCandidates/interface/Electron.h" 00003 00004 using namespace reco; 00005 00006 Electron::~Electron() { } 00007 00008 Electron * Electron::clone() const { 00009 return new Electron( * this ); 00010 } 00011 00012 TrackRef Electron::track() const { 00013 return track_; 00014 } 00015 00016 SuperClusterRef Electron::superCluster() const { 00017 return superCluster_; 00018 } 00019 00020 bool Electron::overlap( const Candidate & c ) const { 00021 const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c ); 00022 return ( o != 0 && 00023 ( checkOverlap( track(), o->track() ) || 00024 checkOverlap( superCluster(), o->superCluster() ) ) 00025 ); 00026 return false; 00027 } 00028 00029 bool Electron::isElectron() const { 00030 return true; 00031 }