CMS 3D CMS Logo

Electron.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6 
7 Electron * Electron::clone() const {
8  return new Electron( * this );
9 }
10 
11 TrackRef Electron::track() const {
12  return track_;
13 }
14 
16  return gsfTrack_;
17 }
18 
20  return superCluster_;
21 }
22 
23 bool Electron::overlap( const Candidate & c ) const {
24  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
25  return ( o != nullptr &&
26  ( checkOverlap( track(), o->track() ) ||
28  );
29  return false;
30 }
31 
32 bool Electron::isElectron() const {
33  return true;
34 }
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:69
reco::GsfTrackRef gsfTrack_
reference to a GsfTrack;
Definition: Electron.h:50
bool isElectron() const override
reco::SuperClusterRef superCluster() const override
reference to a SuperCluster
virtual reco::TrackRef track() const
reference to a Track
reco::TrackRef track() const override
reference to a Track
reco::GsfTrackRef gsfTrack() const override
reference to a GsfTrack
bool overlap(const Candidate &) const override
check overlap with another candidate
reco::TrackRef track_
reference to a Track
Definition: Electron.h:48
fixed size matrix
Electron * clone() const override
returns a clone of the candidate
Electron()
default constructor
Definition: Electron.h:19
~Electron() override
destructor
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:46
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster