Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:06

0001 #include "DataFormats/EgammaCandidates/interface/Electron.h"
0002 
0003 using namespace reco;
0004 
0005 Electron::~Electron() {}
0006 
0007 Electron *Electron::clone() const { return new Electron(*this); }
0008 
0009 TrackRef Electron::track() const { return track_; }
0010 
0011 GsfTrackRef Electron::gsfTrack() const { return gsfTrack_; }
0012 
0013 SuperClusterRef Electron::superCluster() const { return superCluster_; }
0014 
0015 bool Electron::overlap(const Candidate &c) const {
0016   const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
0017   return (o != nullptr && (checkOverlap(track(), o->track()) || checkOverlap(superCluster(), o->superCluster())));
0018   return false;
0019 }
0020 
0021 bool Electron::isElectron() const { return true; }