CMS 3D CMS Logo

CaloRecHitCandidate.h
Go to the documentation of this file.
1 #ifndef RecoCandidate_CaloRecHitCandidate_h
2 #define RecoCandidate_CaloRecHitCandidate_h
3 
14 
15 namespace reco {
16 
18  public:
23  CaloRecHitCandidate(const LorentzVector& p4, Charge q = 0, const Point& vtx = Point(0, 0, 0))
24  : LeafCandidate(q, p4, vtx) {}
26  CaloRecHitCandidate(const PolarLorentzVector& p4, Charge q = 0, const Point& vtx = Point(0, 0, 0))
27  : LeafCandidate(q, p4, vtx) {}
29  ~CaloRecHitCandidate() override;
31  CaloRecHitCandidate* clone() const override;
35  CaloRecHitRef caloRecHit() const { return caloRecHit_; }
36 
37  private:
39  bool overlap(const Candidate&) const override;
42  };
45 
46 } // namespace reco
47 
48 #endif
bool overlap(const Candidate &) const override
check overlap with another candidate
int Charge
electric charge type
Definition: Candidate.h:34
CaloRecHitCandidate * clone() const override
returns a clone of the candidate
edm::RefToBase< CaloRecHit > CaloRecHitRef
CaloRecHitCandidate(const PolarLorentzVector &p4, Charge q=0, const Point &vtx=Point(0, 0, 0))
constructor from values
const LorentzVector & p4() const final
four-momentum Lorentz vector
CaloRecHitCandidate(const LorentzVector &p4, Charge q=0, const Point &vtx=Point(0, 0, 0))
constructor from values
CaloRecHitRef caloRecHit_
reference to a CaloRecHit
void setCaloRecHit(const CaloRecHitRef &r)
set CaloRecHit reference
#define GET_DEFAULT_CANDIDATE_COMPONENT(CAND, TYPE, FUN)
Definition: component.h:97
CaloRecHitCandidate()
default constructor
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
fixed size matrix
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
~CaloRecHitCandidate() override
destructor
CaloRecHitRef caloRecHit() const
reference to a CaloRecHit
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:27
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38