CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalPipelinePedestalAndGain.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_HcalRecAlgos_HcalPipelinePedestalAndGain_h_
2 #define RecoLocalCalo_HcalRecAlgos_HcalPipelinePedestalAndGain_h_
3 
4 // HB/HE channel information stored for each pipeline "capacitor id"
6 public:
9 
10  inline HcalPipelinePedestalAndGain(const float i_pedestal,
11  const float i_pedestalWidth,
12  const float i_effPedestal,
13  const float i_effPedestalWidth,
14  const float i_gain,
15  const float i_gainWidth)
16  : pedestal_(i_pedestal),
17  pedestalWidth_(i_pedestalWidth),
18  effPedestal_(i_effPedestal),
19  effPedestalWidth_(i_effPedestalWidth),
20  gain_(i_gain),
21  gainWidth_(i_gainWidth) {}
22 
23  inline float pedestal(const bool useEffectivePeds) const { return useEffectivePeds ? effPedestal_ : pedestal_; }
24 
25  inline float pedestalWidth(const bool useEffectivePeds) const {
26  return useEffectivePeds ? effPedestalWidth_ : pedestalWidth_;
27  }
28 
29  inline float gain() const { return gain_; }
30  inline float gainWidth() const { return gainWidth_; }
31 
32 private:
33  float pedestal_;
35  float effPedestal_;
37  float gain_;
38  float gainWidth_;
39 };
40 
41 #endif // RecoLocalCalo_HcalRecAlgos_HcalPipelinePedestalAndGain_h_
float pedestalWidth(const bool useEffectivePeds) const
HcalPipelinePedestalAndGain(const float i_pedestal, const float i_pedestalWidth, const float i_effPedestal, const float i_effPedestalWidth, const float i_gain, const float i_gainWidth)
float pedestal(const bool useEffectivePeds) const