Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:07

0001 #ifndef RecoCandidate_RecoStandAloneMuonCandidate_h
0002 #define RecoCandidate_RecoStandAloneMuonCandidate_h
0003 /** \class reco::RecoStandAloneMuonCandidate
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 RecoStandAloneMuonCandidate : public RecoCandidate {
0016   public:
0017     /// default constructor
0018     RecoStandAloneMuonCandidate() : RecoCandidate() {}
0019     /// constructor from values
0020     RecoStandAloneMuonCandidate(
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     RecoStandAloneMuonCandidate(
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     ~RecoStandAloneMuonCandidate() override;
0029     /// returns a clone of the candidate
0030     RecoStandAloneMuonCandidate* clone() const override;
0031     /// set reference to track
0032     void setTrack(const reco::TrackRef& r) { standAloneMuonTrack_ = r; }
0033     /// reference to a track
0034     reco::TrackRef standAloneMuon() 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 standAloneMuonTrack_;
0041   };
0042 
0043 }  // namespace reco
0044 
0045 #endif