CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HBHERecHit.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALRECHIT_HBHERECHIT_H
2 #define DATAFORMATS_HCALRECHIT_HBHERECHIT_H 1
3 
6 
7 
12 class HBHERecHit : public CaloRecHit {
13 public:
15 
16  HBHERecHit();
17  //HBHERecHit(const HcalDetId& id, float energy, float time);
18  HBHERecHit(const HcalDetId& id, float amplitude, float timeRising, float timeFalling=0);
19 
21  float timeFalling() const { return timeFalling_; }
23  HcalDetId id() const { return HcalDetId(detid()); }
24 
25  inline void setRawEnergy(const float en) {rawEnergy_ = en;}
26  inline float eraw() const {return rawEnergy_;}
27 
28  inline void setAuxHBHE(const uint32_t aux) { auxHBHE_ = aux;}
29  inline uint32_t auxHBHE() const {return auxHBHE_;}
30 
31 private:
32  float timeFalling_;
33  float rawEnergy_;
34  uint32_t auxHBHE_;
35 };
36 
37 std::ostream& operator<<(std::ostream& s, const HBHERecHit& hit);
38 
39 
40 #endif
uint32_t aux() const
Definition: CaloRecHit.h:26
const DetId & detid() const
Definition: CaloRecHit.h:20
HcalDetId id() const
get the id
Definition: HBHERecHit.h:23
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
HcalDetId key_type
Definition: HBHERecHit.h:14
float timeFalling_
Definition: HBHERecHit.h:32
void setAuxHBHE(const uint32_t aux)
Definition: HBHERecHit.h:28
float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:21
uint32_t auxHBHE_
Definition: HBHERecHit.h:34
uint32_t auxHBHE() const
Definition: HBHERecHit.h:29
float eraw() const
Definition: HBHERecHit.h:26
void setRawEnergy(const float en)
Definition: HBHERecHit.h:25
float rawEnergy_
Definition: HBHERecHit.h:33