Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:39:54

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