CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 //
SiStripElectron * clone() const override
returns a clone of the candidate
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
const edm::EventSetup & c
SiStripElectron()
default constructor
bool overlap(const Candidate &) const override
check overlap with another candidate
bool isElectron() const override
reco::SuperClusterRef superCluster() const override
reference to a SuperCluster
virtual reco::TrackRef track() const
reference to a Track
~SiStripElectron() override
destructor
reco::SuperClusterRef superCluster_
reference to a SuperCluster
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster