CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual ~Electron();
26  virtual Electron * clone() const;
28  using reco::RecoCandidate::track ; // avoid hiding the base
29  virtual reco::TrackRef track() const;
31  virtual reco::SuperClusterRef superCluster() const;
33  virtual reco::GsfTrackRef gsfTrack() const;
37  void setTrack( const reco::TrackRef & r ) { track_ = r; }
39  void setGsfTrack( const reco::GsfTrackRef & r ) { gsfTrack_ = r; }
40 
41  bool isElectron() const;
42  private:
44  virtual bool overlap( const Candidate & ) const;
51  };
52 
53 }
54 
55 #endif
int Charge
electric charge type
Definition: Candidate.h:35
virtual reco::TrackRef track() const
reference to a Track
virtual Electron * clone() const
returns a clone of the candidate
virtual reco::GsfTrackRef gsfTrack() const
reference to a GsfTrack
reco::GsfTrackRef gsfTrack_
reference to a GsfTrack;
Definition: Electron.h:50
virtual reco::TrackRef track() const
reference to a Track
bool isElectron() const
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
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
virtual ~Electron()
destructor
reco::TrackRef track_
reference to a Track
Definition: Electron.h:48
math::XYZPoint Point
point in the space
Definition: Candidate.h:41
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
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
virtual bool overlap(const Candidate &) const
check overlap with another candidate
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:46
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:27