CMS 3D CMS Logo

HORecHit.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALRECHIT_HORECHIT_H
2 #define DATAFORMATS_HCALRECHIT_HORECHIT_H 1
3 
6 
7 
12 class HORecHit : public CaloRecHit {
13 public:
15 
17 
18  constexpr HORecHit(const HcalDetId& id, float energy, float time)
19  : CaloRecHit(id,energy,time) {}
21  constexpr HcalDetId id() const { return HcalDetId(detid()); }
22 };
23 
24 std::ostream& operator<<(std::ostream& s, const HORecHit& hit);
25 
26 
27 #endif
constexpr float energy() const
Definition: CaloRecHit.h:31
std::ostream & operator<<(std::ostream &s, const HORecHit &hit)
Definition: HORecHit.cc:3
constexpr const DetId & detid() const
Definition: CaloRecHit.h:35
HcalDetId key_type
Definition: HORecHit.h:14
HORecHit(const HcalDetId &id, float energy, float time)
Definition: HORecHit.h:18
constexpr float time() const
Definition: CaloRecHit.h:33
HORecHit()
Definition: HORecHit.h:16
HcalDetId id() const
get the id
Definition: HORecHit.h:21
#define constexpr