Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:36

0001 #ifndef RecoCandidate_RecoChargedCandidate_h
0002 #define RecoCandidate_RecoChargedCandidate_h
0003 /** \class reco::RecoChargedCandidate
0004  *
0005  * Reco Candidates with a Track component
0006  *
0007  * \author Luca Lista, INFN
0008  *
0009  *
0010  */
0011 #include "DataFormats/RecoCandidate/interface/RecoCandidate.h"
0012 
0013 namespace reco {
0014 
0015   class RecoChargedCandidate : public RecoCandidate {
0016   public:
0017     /// default constructor
0018     RecoChargedCandidate() : RecoCandidate() {}
0019     /// constructor from values
0020     RecoChargedCandidate(
0021         Charge q, const LorentzVector& p4, const Point& vtx = Point(0, 0, 0), int pdgId = 0, int status = 0)
0022         : RecoCandidate(q, p4, vtx, pdgId, status) {}
0023     /// constructor from values
0024     RecoChargedCandidate(
0025         Charge q, const PolarLorentzVector& p4, const Point& vtx = Point(0, 0, 0), int pdgId = 0, int status = 0)
0026         : RecoCandidate(q, p4, vtx, pdgId, status) {}
0027     /// destructor
0028     ~RecoChargedCandidate() override;
0029     /// returns a clone of the candidate
0030     RecoChargedCandidate* clone() const override;
0031     /// set reference to track
0032     void setTrack(const reco::TrackRef& r) { track_ = r; }
0033     /// reference to a track
0034     reco::TrackRef track() const override;
0035 
0036   private:
0037     /// check overlap with another candidate
0038     bool overlap(const Candidate&) const override;
0039     /// reference to a track
0040     reco::TrackRef track_;
0041   };
0042 
0043 }  // namespace reco
0044 
0045 #endif