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 
11 class HORecHit : public CaloRecHit {
12 public:
14 
16 
17  constexpr HORecHit(const HcalDetId& id, float energy, float time) : CaloRecHit(id, energy, time) {}
19  constexpr HcalDetId id() const { return HcalDetId(detid()); }
20 };
21 
22 std::ostream& operator<<(std::ostream& s, const HORecHit& hit);
23 
24 #endif
std::ostream & operator<<(std::ostream &s, const HORecHit &hit)
Definition: HORecHit.cc:3
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
constexpr float energy() const
Definition: CaloRecHit.h:29
HcalDetId key_type
Definition: HORecHit.h:13
constexpr HORecHit(const HcalDetId &id, float energy, float time)
Definition: HORecHit.h:17
constexpr float time() const
Definition: CaloRecHit.h:31
constexpr HcalDetId id() const
get the id
Definition: HORecHit.h:19
constexpr HORecHit()
Definition: HORecHit.h:15