CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoChargedCandidate.h
Go to the documentation of this file.
1 #ifndef RecoCandidate_RecoChargedCandidate_h
2 #define RecoCandidate_RecoChargedCandidate_h
3 
13 
14 namespace reco {
15 
17  public:
21  RecoChargedCandidate( Charge q , const LorentzVector & p4, const Point & vtx = Point( 0, 0, 0 ),
22  int pdgId = 0, int status = 0 ) :
23  RecoCandidate( q, p4, vtx, pdgId, status ) { }
25  RecoChargedCandidate( Charge q , const PolarLorentzVector & p4, const Point & vtx = Point( 0, 0, 0 ),
26  int pdgId = 0, int status = 0 ) :
27  RecoCandidate( q, p4, vtx, pdgId, status ) { }
29  virtual ~RecoChargedCandidate();
31  virtual RecoChargedCandidate * clone() const;
33  void setTrack( const reco::TrackRef & r ) { track_ = r; }
35  virtual reco::TrackRef track() const;
36 
37  private:
39  virtual bool overlap( const Candidate & ) const;
42  };
43 
44 }
45 
46 #endif
reco::TrackRef track_
reference to a track
int Charge
electric charge type
Definition: Candidate.h:36
virtual int pdgId() const
PDG identifier.
virtual ~RecoChargedCandidate()
destructor
virtual int status() const
status word
virtual RecoChargedCandidate * clone() const
returns a clone of the candidate
RecoChargedCandidate(Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
constructor from values
RecoChargedCandidate(Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
constructor from values
virtual bool overlap(const Candidate &) const
check overlap with another candidate
virtual reco::TrackRef track() const
reference to a track
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:38
math::XYZPoint Point
point in the space
Definition: Candidate.h:42
void setTrack(const reco::TrackRef &r)
set reference to track
RecoChargedCandidate()
default constructor
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:29
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:40