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 
12 
13 namespace reco {
14 
16  public:
20  RecoChargedCandidate( Charge q , const LorentzVector & p4, const Point & vtx = Point( 0, 0, 0 ),
21  int pdgId = 0, int status = 0 ) :
22  RecoCandidate( q, p4, vtx, pdgId, status ) { }
24  RecoChargedCandidate( Charge q , const PolarLorentzVector & p4, const Point & vtx = Point( 0, 0, 0 ),
25  int pdgId = 0, int status = 0 ) :
26  RecoCandidate( q, p4, vtx, pdgId, status ) { }
28  virtual ~RecoChargedCandidate();
30  virtual RecoChargedCandidate * clone() const;
32  void setTrack( const reco::TrackRef & r ) { track_ = r; }
34  virtual reco::TrackRef track() const;
35 
36  private:
38  virtual bool overlap( const Candidate & ) const;
41  };
42 
43 }
44 
45 #endif
reco::TrackRef track_
reference to a track
int Charge
electric charge type
Definition: Candidate.h:39
virtual ~RecoChargedCandidate()
destructor
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
virtual int pdgId() const GCC11_FINAL
PDG identifier.
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
virtual int status() const GCC11_FINAL
status word
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:41
math::XYZPoint Point
point in the space
Definition: Candidate.h:45
void setTrack(const reco::TrackRef &r)
set reference to track
RecoChargedCandidate()
default constructor
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:30
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:43