CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloRecHitCandidate.h
Go to the documentation of this file.
1 #ifndef RecoCandidate_CaloRecHitCandidate_h
2 #define RecoCandidate_CaloRecHitCandidate_h
3 
15 
16 namespace reco {
17 
19  public:
24  CaloRecHitCandidate( const LorentzVector & p4, Charge q = 0, const Point & vtx = Point( 0, 0, 0 ) ) :
25  LeafCandidate( q, p4, vtx ) { }
27  CaloRecHitCandidate( const PolarLorentzVector & p4, Charge q = 0, const Point & vtx = Point( 0, 0, 0 ) ) :
28  LeafCandidate( q, p4, vtx ) { }
30  virtual ~CaloRecHitCandidate();
32  virtual CaloRecHitCandidate * clone() const;
34  void setCaloRecHit( const CaloRecHitRef & r ) { caloRecHit_ = r; }
36  CaloRecHitRef caloRecHit() const { return caloRecHit_; }
37 
38  private:
40  virtual bool overlap( const Candidate & ) const;
43  };
46 
47 }
48 
49 #endif
int Charge
electric charge type
Definition: Candidate.h:36
CaloRecHitRef caloRecHit() const
reference to a CaloRecHit
edm::RefToBase< CaloRecHit > CaloRecHitRef
CaloRecHitCandidate(const PolarLorentzVector &p4, Charge q=0, const Point &vtx=Point(0, 0, 0))
constructor from values
virtual CaloRecHitCandidate * clone() const
returns a clone of the candidate
GET_DEFAULT_CANDIDATE_COMPONENT(CaloRecHitCandidate, edm::RefToBase< CaloRecHit >, caloRecHit)
get default Track component
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
virtual bool overlap(const Candidate &) const
check overlap with another candidate
virtual ~CaloRecHitCandidate()
destructor
CaloRecHitCandidate()
default constructor
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:38
math::XYZPoint Point
point in the space
Definition: Candidate.h:42
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:29
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:40