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