CMS 3D CMS Logo

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:
21  Charge q, const LorentzVector& p4, const Point& vtx = Point(0, 0, 0), int pdgId = 0, int status = 0)
22  : RecoCandidate(q, p4, vtx, pdgId, status) {}
25  Charge q, const PolarLorentzVector& p4, const Point& vtx = Point(0, 0, 0), int pdgId = 0, int status = 0)
26  : RecoCandidate(q, p4, vtx, pdgId, status) {}
28  ~RecoChargedCandidate() override;
30  RecoChargedCandidate* clone() const override;
32  void setTrack(const reco::TrackRef& r) { track_ = r; }
34  reco::TrackRef track() const override;
35 
36  private:
38  bool overlap(const Candidate&) const override;
41  };
42 
43 } // namespace reco
44 
45 #endif
reco::TrackRef track_
reference to a track
int Charge
electric charge type
Definition: Candidate.h:34
int status() const final
status word
bool overlap(const Candidate &) const override
check overlap with another candidate
const LorentzVector & p4() const final
four-momentum Lorentz vector
int pdgId() const final
PDG identifier.
RecoChargedCandidate * clone() const override
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
reco::TrackRef track() const override
reference to a track
~RecoChargedCandidate() override
destructor
RecoChargedCandidate(Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
constructor from values
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
fixed size matrix
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
void setTrack(const reco::TrackRef &r)
set reference to track
RecoChargedCandidate()
default constructor
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:27
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38