CMS 3D CMS Logo

Electron.h
Go to the documentation of this file.
1 #ifndef EgammaCandidates_Electron_h
2 #define EgammaCandidates_Electron_h
3 
13 
14 namespace reco {
15 
16  class Electron : public RecoCandidate {
17  public:
21  Electron( Charge q, const LorentzVector & p4, const Point & vtx = Point( 0, 0, 0 ) ) :
22  RecoCandidate( q, p4, vtx, -11 * q ) { }
24  ~Electron() override;
26  Electron * clone() const override;
28  using reco::RecoCandidate::track ; // avoid hiding the base
29  reco::TrackRef track() const override;
31  reco::SuperClusterRef superCluster() const override;
33  reco::GsfTrackRef gsfTrack() const override;
37  void setTrack( const reco::TrackRef & r ) { track_ = r; }
39  void setGsfTrack( const reco::GsfTrackRef & r ) { gsfTrack_ = r; }
40 
41  bool isElectron() const override;
42  private:
44  bool overlap( const Candidate & ) const override;
51  };
52 
53 }
54 
55 #endif
int Charge
electric charge type
Definition: Candidate.h:35
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
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
Electron(Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0))
constructor from values
Definition: Electron.h:21
void setGsfTrack(const reco::GsfTrackRef &r)
set reference to GsfTrack component
Definition: Electron.h:39
reco::GsfTrackRef gsfTrack() const override
reference to a GsfTrack
bool overlap(const Candidate &) const override
check overlap with another candidate
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
reco::TrackRef track_
reference to a Track
Definition: Electron.h:48
fixed size matrix
Electron * clone() const override
returns a clone of the candidate
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:55
void setSuperCluster(const reco::SuperClusterRef &r)
set refrence to Photon component
Definition: Electron.h:35
void setTrack(const reco::TrackRef &r)
set refrence to Track component
Definition: Electron.h:37
Electron()
default constructor
Definition: Electron.h:19
~Electron() override
destructor
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:46
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:27