File indexing completed on 2024-04-06 12:04:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "DataFormats/EgammaCandidates/interface/SiStripElectron.h"
0017 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0018
0019 using namespace reco;
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 SiStripElectron::~SiStripElectron() {}
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052 SiStripElectron *SiStripElectron::clone() const { return new SiStripElectron(*this); }
0053
0054
0055
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
0070
0071
0072
0073
0074