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  return new SiStripElectron( * this );
54 }
55 
56 //
57 // member functions
58 //
59 
61  return superCluster_;
62 }
63 
64 bool SiStripElectron::overlap( const Candidate & c ) const {
65  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
66  return ( o != nullptr && !
67  ( checkOverlap( track(), o->track() ) ||
69  );
70  return false;
71 }
72 
74  return true;
75 }
76 
77 
78 //
79 // const member functions
80 //
81 
82 //
83 // static member functions
84 //
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:69
SiStripElectron()
default constructor
bool isElectron() const override
virtual reco::TrackRef track() const
reference to a Track
~SiStripElectron() override
destructor
reco::SuperClusterRef superCluster() const override
reference to a SuperCluster
reco::SuperClusterRef superCluster_
reference to a SuperCluster
fixed size matrix
bool overlap(const Candidate &) const override
check overlap with another candidate
SiStripElectron * clone() const override
returns a clone of the candidate
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster