File indexing completed on 2024-04-06 12:05:07
0001 #ifndef RecoCandidate_RecoEcalCandidate_h
0002 #define RecoCandidate_RecoEcalCandidate_h
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "DataFormats/RecoCandidate/interface/RecoCandidate.h"
0012
0013 namespace reco {
0014
0015 class RecoEcalCandidate : public RecoCandidate {
0016 public:
0017
0018 RecoEcalCandidate() : RecoCandidate() {}
0019
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
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
0028 ~RecoEcalCandidate() override;
0029
0030 RecoEcalCandidate* clone() const override;
0031
0032 void setSuperCluster(const reco::SuperClusterRef& r) { superCluster_ = r; }
0033
0034 reco::SuperClusterRef superCluster() const override;
0035
0036 private:
0037
0038 bool overlap(const Candidate&) const override;
0039
0040 reco::SuperClusterRef superCluster_;
0041 };
0042
0043 }
0044
0045 #endif