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 
17  : CaloRecHit(), timeFalling_(0.f), auxHF_(0)
18  {}
19 
20  //HFRecHit(const HcalDetId& id, float energy, float time);
22  constexpr HFRecHit(const HcalDetId& id, float en, float timeRising,
23  float timeFalling=0)
24  : CaloRecHit(id,en,timeRising), timeFalling_(timeFalling), auxHF_(0)
25  {}
26 
29  constexpr float timeFalling() const { return timeFalling_; }
31  constexpr HcalDetId id() const { return HcalDetId(detid()); }
32 
33  constexpr void setAuxHF(const uint32_t u) {auxHF_ = u;}
34  constexpr uint32_t getAuxHF() const {return auxHF_;}
35 
36 private:
37 
38  float timeFalling_;
39  uint32_t auxHF_;
40 };
41 
42 std::ostream& operator<<(std::ostream& s, const HFRecHit& hit);
43 
44 #endif
constexpr const DetId & detid() const
Definition: CaloRecHit.h:35
HFRecHit(const HcalDetId &id, float en, float timeRising, float timeFalling=0)
get the id
Definition: HFRecHit.h:22
float timeFalling() const
Definition: HFRecHit.h:29
void setAuxHF(const uint32_t u)
Definition: HFRecHit.h:33
HcalDetId key_type
Definition: HFRecHit.h:14
HFRecHit()
Definition: HFRecHit.h:16
double f[11][100]
uint32_t auxHF_
Definition: HFRecHit.h:39
void setTimeFalling(float timeFalling)
Definition: HFRecHit.h:30
std::ostream & operator<<(std::ostream &s, const HFRecHit &hit)
Definition: HFRecHit.cc:3
float timeFalling_
Definition: HFRecHit.h:38
uint32_t getAuxHF() const
Definition: HFRecHit.h:34
HcalDetId id() const
Definition: HFRecHit.h:31
#define constexpr