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 { return new Electron(*this); }
8 
9 TrackRef Electron::track() const { return track_; }
10 
11 GsfTrackRef Electron::gsfTrack() const { return gsfTrack_; }
12 
14 
15 bool Electron::overlap(const Candidate &c) const {
16  const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
17  return (o != nullptr && (checkOverlap(track(), o->track()) || checkOverlap(superCluster(), o->superCluster())));
18  return false;
19 }
20 
21 bool Electron::isElectron() const { return true; }
reco::Electron::gsfTrack
reco::GsfTrackRef gsfTrack() const override
reference to a GsfTrack
reco::RecoCandidate::checkOverlap
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
Electron
Definition: Electron.py:1
reco::Electron::track_
reco::TrackRef track_
reference to a Track
Definition: Electron.h:49
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
reco::Electron::superCluster
reco::SuperClusterRef superCluster() const override
reference to a SuperCluster
edm::Ref
Definition: AssociativeIterator.h:58
reco::Electron::Electron
Electron()
default constructor
Definition: Electron.h:19
reco::Electron::~Electron
~Electron() override
destructor
reco::Electron::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
reco::Electron::superCluster_
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:47
reco::Electron::isElectron
bool isElectron() const override
reco::Electron::track
reco::TrackRef track() const override
reference to a Track
reco::Electron::clone
Electron * clone() const override
returns a clone of the candidate
reco::Electron::gsfTrack_
reco::GsfTrackRef gsfTrack_
reference to a GsfTrack;
Definition: Electron.h:51
reco::RecoCandidate
Definition: RecoCandidate.h:20
reco::Candidate
Definition: Candidate.h:27
Electron.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56