CMS 3D CMS Logo

HFRecHit.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALRECHIT_HFRECHIT_H
2 #define DATAFORMATS_HCALRECHIT_HFRECHIT_H 1
3 
6 
7 
12 class HFRecHit : public CaloRecHit {
13 public:
15 
16  HFRecHit();
17  //HFRecHit(const HcalDetId& id, float energy, float time);
19  HFRecHit(const HcalDetId& id, float amplitude, float timeRising, float timeFalling=0);
22  float timeFalling() const { return timeFalling_; }
23  HcalDetId id() const { return HcalDetId(detid()); }
24 
25  inline void setAuxHF(const uint32_t u) {auxHF_ = u;}
26  inline uint32_t getAuxHF() const {return auxHF_;}
27 
28 private:
29 
30  float timeFalling_;
31  uint32_t auxHF_;
32 };
33 
34 std::ostream& operator<<(std::ostream& s, const HFRecHit& hit);
35 
36 #endif
const DetId & detid() const
Definition: CaloRecHit.h:21
float timeFalling() const
Definition: HFRecHit.h:22
void setAuxHF(const uint32_t u)
Definition: HFRecHit.h:25
HcalDetId key_type
Definition: HFRecHit.h:14
HFRecHit()
Definition: HFRecHit.cc:4
uint32_t auxHF_
Definition: HFRecHit.h:31
std::ostream & operator<<(std::ostream &s, const HFRecHit &hit)
Definition: HFRecHit.cc:18
float timeFalling_
Definition: HFRecHit.h:30
uint32_t getAuxHF() const
Definition: HFRecHit.h:26
HcalDetId id() const
Definition: HFRecHit.h:23