CMS 3D CMS Logo

ZDCRecHit.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALRECHIT_ZDCRECHIT_H
2 #define DATAFORMATS_HCALRECHIT_ZDCRECHIT_H 1
3 
6 
11 class ZDCRecHit : public CaloRecHit {
12 public:
14 
15  ZDCRecHit();
16  ZDCRecHit(const HcalZDCDetId& id, float energy, float time, float lowGainEnergy);
18  HcalZDCDetId id() const { return HcalZDCDetId(detid()); }
19  // follow EcalRecHit method of adding variable flagBits_ to CaloRecHit
20  float lowGainEnergy() const { return lowGainEnergy_; };
21 
22  constexpr inline void setEnergySOIp1(const float en) { energySOIp1_ = en; };
23  constexpr inline float energySOIp1() const { return energySOIp1_; }; // energy of Slice of Interest plus 1
24  constexpr inline void setRatioSOIp1(const float ratio) { ratioSOIp1_ = ratio; };
25  constexpr inline float ratioSOIp1() const {
26  return ratioSOIp1_;
27  }; // ratio of Energy of (Slice of Interest)/ (Slice of Interest plus 1)
28  constexpr inline void setTDCtime(const float time) { TDCtime_ = time; };
29  constexpr inline float TDCtime() const { return TDCtime_; };
30  constexpr inline void setChargeWeightedTime(const float time) {
32  }; // time of activity determined by charged weighted average
33  constexpr inline float chargeWeightedTime() const { return chargeWeightedTime_; };
34 
35 private:
36  float lowGainEnergy_;
37  float energySOIp1_;
38  float ratioSOIp1_;
39  float TDCtime_;
41 };
42 
43 std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit);
44 
45 #endif
float lowGainEnergy_
Definition: ZDCRecHit.h:33
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
constexpr float energySOIp1() const
Definition: ZDCRecHit.h:23
constexpr void setChargeWeightedTime(const float time)
Definition: ZDCRecHit.h:30
ZDCRecHit()
Definition: ZDCRecHit.cc:3
constexpr float ratioSOIp1() const
Definition: ZDCRecHit.h:25
constexpr float energy() const
Definition: CaloRecHit.h:29
constexpr void setRatioSOIp1(const float ratio)
Definition: ZDCRecHit.h:24
float lowGainEnergy() const
Definition: ZDCRecHit.h:20
constexpr float TDCtime() const
Definition: ZDCRecHit.h:29
std::ostream & operator<<(std::ostream &s, const ZDCRecHit &hit)
Definition: ZDCRecHit.cc:14
float energySOIp1_
Definition: ZDCRecHit.h:37
float ratioSOIp1_
Definition: ZDCRecHit.h:38
constexpr void setEnergySOIp1(const float en)
Definition: ZDCRecHit.h:22
constexpr float chargeWeightedTime() const
Definition: ZDCRecHit.h:33
constexpr void setTDCtime(const float time)
Definition: ZDCRecHit.h:28
constexpr float time() const
Definition: CaloRecHit.h:31
HcalZDCDetId id() const
get the id
Definition: ZDCRecHit.h:18
HcalZDCDetId key_type
Definition: ZDCRecHit.h:13
float chargeWeightedTime_
Definition: ZDCRecHit.h:40
float TDCtime_
Definition: ZDCRecHit.h:39