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 
14 
15 namespace reco {
16 
17  class Electron : public RecoCandidate {
18  public:
22  Electron( Charge q, const LorentzVector & p4, const Point & vtx = Point( 0, 0, 0 ) ) :
23  RecoCandidate( q, p4, vtx, -11 * q ) { }
25  virtual ~Electron();
27  virtual Electron * clone() const;
29  using reco::RecoCandidate::track ; // avoid hiding the base
30  virtual reco::TrackRef track() const;
32  virtual reco::SuperClusterRef superCluster() const;
34  virtual reco::GsfTrackRef gsfTrack() const;
38  void setTrack( const reco::TrackRef & r ) { track_ = r; }
40  void setGsfTrack( const reco::GsfTrackRef & r ) { gsfTrack_ = r; }
41 
42  bool isElectron() const;
43  private:
45  virtual bool overlap( const Candidate & ) const;
52  };
53 
54 }
55 
56 #endif
int Charge
electric charge type
Definition: Candidate.h:36
virtual reco::TrackRef track() const
reference to a Track
Definition: Electron.cc:12
virtual ~Electron()
destructor
Definition: Electron.cc:6
reco::GsfTrackRef gsfTrack_
reference to a GsfTrack;
Definition: Electron.h:51
virtual reco::TrackRef track() const
reference to a Track
Electron(Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0))
constructor from values
Definition: Electron.h:22
void setGsfTrack(const reco::GsfTrackRef &r)
set reference to GsfTrack component
Definition: Electron.h:40
virtual reco::GsfTrackRef gsfTrack() const
reference to a GsfTrack
Definition: Electron.cc:16
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: Electron.cc:20
virtual Electron * clone() const
returns a clone of the candidate
Definition: Electron.cc:8
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:38
reco::TrackRef track_
reference to a Track
Definition: Electron.h:49
math::XYZPoint Point
point in the space
Definition: Candidate.h:42
void setSuperCluster(const reco::SuperClusterRef &r)
set refrence to Photon component
Definition: Electron.h:36
virtual bool overlap(const Candidate &) const
check overlap with another candidate
Definition: Electron.cc:24
void setTrack(const reco::TrackRef &r)
set refrence to Track component
Definition: Electron.h:38
Electron()
default constructor
Definition: Electron.h:20
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
reco::SuperClusterRef superCluster_
reference to a SuperCluster
Definition: Electron.h:47
bool isElectron() const
Definition: Electron.cc:33
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:29