CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZDCRecHit.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALRECHIT_ZDCRECHIT_H
2 #define DATAFORMATS_HCALRECHIT_ZDCRECHIT_H 1
3 
6 
7 
14 class ZDCRecHit : public CaloRecHit {
15 public:
17 
18  ZDCRecHit();
19  ZDCRecHit(const HcalZDCDetId& id, float energy, float time, float lowGainEnergy);
21  HcalZDCDetId id() const { return HcalZDCDetId(detid()); }
22  // follow EcalRecHit method of adding variable flagBits_ to CaloRecHit
23  float lowGainEnergy() const { return lowGainEnergy_;};
24 private:
25  float lowGainEnergy_;
26 };
27 
28 std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit);
29 
30 #endif
float lowGainEnergy_
Definition: ZDCRecHit.h:23
const DetId & detid() const
Definition: CaloRecHit.h:22
ZDCRecHit()
Definition: ZDCRecHit.cc:4
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
float time() const
Definition: CaloRecHit.h:21
float energy() const
Definition: CaloRecHit.h:19
float lowGainEnergy() const
Definition: ZDCRecHit.h:23
HcalZDCDetId key_type
Definition: ZDCRecHit.h:16
HcalZDCDetId id() const
get the id
Definition: ZDCRecHit.h:21