CMS 3D CMS Logo

SiStripElectron.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: EgammaCandidates
4 // Class : SiStripElectron
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Jim Pivarski
10 // Created: Fri May 26 15:48:28 EDT 2006
11 //
12 
13 // system include files
14 
15 // user include files
18 
19 using namespace reco;
20 
21 //
22 // constants, enums and typedefs
23 //
24 
25 //
26 // static data member definitions
27 //
28 
29 //
30 // constructors and destructor
31 //
32 
33 // SiStripElectron::SiStripElectron(const SiStripElectron& rhs)
34 // {
35 // // do actual copying here;
36 // }
37 
39 
40 //
41 // assignment operators
42 //
43 // const SiStripElectron& SiStripElectron::operator=(const SiStripElectron& rhs)
44 // {
45 // //An exception safe implementation is
46 // SiStripElectron temp(rhs);
47 // swap(rhs);
48 //
49 // return *this;
50 // }
51 
53 
54 //
55 // member functions
56 //
57 
59 
60 bool SiStripElectron::overlap(const Candidate &c) const {
61  const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
62  return (o != nullptr && !(checkOverlap(track(), o->track()) || checkOverlap(superCluster(), o->superCluster())));
63  return false;
64 }
65 
66 bool SiStripElectron::isElectron() const { return true; }
67 
68 //
69 // const member functions
70 //
71 
72 //
73 // static member functions
74 //
reco::RecoCandidate::checkOverlap
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
reco::SiStripElectron::SiStripElectron
SiStripElectron()
default constructor
Definition: SiStripElectron.h:38
reco::SiStripElectron::isElectron
bool isElectron() const override
Definition: SiStripElectron.cc:66
reco::SiStripElectron::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition: SiStripElectron.cc:60
SiStripElectron.h
reco::SiStripElectron::superCluster
reco::SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: SiStripElectron.cc:58
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::RecoCandidate::track
virtual reco::TrackRef track() const
reference to a Track
Definition: RecoCandidate.cc:13
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
edm::Ref< SuperClusterCollection >
reco::SiStripElectron::~SiStripElectron
~SiStripElectron() override
destructor
Definition: SiStripElectron.cc:38
TrackFwd.h
reco::SiStripElectron
Definition: SiStripElectron.h:35
reco::RecoCandidate
Definition: RecoCandidate.h:20
reco::Candidate
Definition: Candidate.h:27
reco::SiStripElectron::superCluster_
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: SiStripElectron.h:111
reco::SiStripElectron::clone
SiStripElectron * clone() const override
returns a clone of the candidate
Definition: SiStripElectron.cc:52
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56