Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef RecoCandidate_RecoEcalCandidate_h
0002 #define RecoCandidate_RecoEcalCandidate_h
0003 /** \class reco::RecoEcalCandidate
0004  *
0005  * Reco Candidates with a Super Cluster component
0006  *
0007  * \author Luca Lista, INFN
0008  *
0009  *
0010  */
0011 #include "DataFormats/RecoCandidate/interface/RecoCandidate.h"
0012 
0013 namespace reco {
0014 
0015   class RecoEcalCandidate : public RecoCandidate {
0016   public:
0017     /// default constructor
0018     RecoEcalCandidate() : RecoCandidate() {}
0019     /// constructor from values
0020     RecoEcalCandidate(
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     RecoEcalCandidate(
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     ~RecoEcalCandidate() override;
0029     /// returns a clone of the candidate
0030     RecoEcalCandidate* clone() const override;
0031     /// set reference to superCluster
0032     void setSuperCluster(const reco::SuperClusterRef& r) { superCluster_ = r; }
0033     /// reference to a superCluster
0034     reco::SuperClusterRef superCluster() const override;
0035 
0036   private:
0037     /// check overlap with another candidate
0038     bool overlap(const Candidate&) const override;
0039     /// reference to a superCluster
0040     reco::SuperClusterRef superCluster_;
0041   };
0042 
0043 }  // namespace reco
0044 
0045 #endif