CMS 3D CMS Logo

CastorRecHit.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALRECHIT_CASTORRECHIT_H
2 #define DATAFORMATS_HCALRECHIT_CASTORRECHIT_H 1
3 
6 
7 
8 class CastorRecHit : public CaloRecHit {
9 public:
11 
12  CastorRecHit();
13  CastorRecHit(const HcalCastorDetId& id, float energy, float time);
15  HcalCastorDetId id() const { return HcalCastorDetId(detid()); }
16 };
17 
18 std::ostream& operator<<(std::ostream& s, const CastorRecHit& hit);
19 
20 #endif
21 
constexpr float energy() const
Definition: CaloRecHit.h:31
constexpr const DetId & detid() const
Definition: CaloRecHit.h:35
HcalCastorDetId id() const
get the id
Definition: CastorRecHit.h:15
constexpr float time() const
Definition: CaloRecHit.h:33
HcalCastorDetId key_type
Definition: CastorRecHit.h:10
std::ostream & operator<<(std::ostream &s, const CastorRecHit &hit)
Definition: CastorRecHit.cc:11