Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 //
0003 // Package:     EgammaCandidates
0004 // Class  :     SiStripElectron
0005 //
0006 // Implementation:
0007 //     <Notes on implementation>
0008 //
0009 // Original Author:  Jim Pivarski
0010 //         Created:  Fri May 26 15:48:28 EDT 2006
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "DataFormats/EgammaCandidates/interface/SiStripElectron.h"
0017 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0018 
0019 using namespace reco;
0020 
0021 //
0022 // constants, enums and typedefs
0023 //
0024 
0025 //
0026 // static data member definitions
0027 //
0028 
0029 //
0030 // constructors and destructor
0031 //
0032 
0033 // SiStripElectron::SiStripElectron(const SiStripElectron& rhs)
0034 // {
0035 //    // do actual copying here;
0036 // }
0037 
0038 SiStripElectron::~SiStripElectron() {}
0039 
0040 //
0041 // assignment operators
0042 //
0043 // const SiStripElectron& SiStripElectron::operator=(const SiStripElectron& rhs)
0044 // {
0045 //   //An exception safe implementation is
0046 //   SiStripElectron temp(rhs);
0047 //   swap(rhs);
0048 //
0049 //   return *this;
0050 // }
0051 
0052 SiStripElectron *SiStripElectron::clone() const { return new SiStripElectron(*this); }
0053 
0054 //
0055 // member functions
0056 //
0057 
0058 SuperClusterRef SiStripElectron::superCluster() const { return superCluster_; }
0059 
0060 bool SiStripElectron::overlap(const Candidate &c) const {
0061   const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
0062   return (o != nullptr && !(checkOverlap(track(), o->track()) || checkOverlap(superCluster(), o->superCluster())));
0063   return false;
0064 }
0065 
0066 bool SiStripElectron::isElectron() const { return true; }
0067 
0068 //
0069 // const member functions
0070 //
0071 
0072 //
0073 // static member functions
0074 //