Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include "DataFormats/EgammaCandidates/interface/Electron.h"

using namespace reco;

Electron::~Electron() {}

Electron *Electron::clone() const { return new Electron(*this); }

TrackRef Electron::track() const { return track_; }

GsfTrackRef Electron::gsfTrack() const { return gsfTrack_; }

SuperClusterRef Electron::superCluster() const { return superCluster_; }

bool Electron::overlap(const Candidate &c) const {
  const RecoCandidate *o = dynamic_cast<const RecoCandidate *>(&c);
  return (o != nullptr && (checkOverlap(track(), o->track()) || checkOverlap(superCluster(), o->superCluster())));
  return false;
}

bool Electron::isElectron() const { return true; }