Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:25

0001 #ifndef RecoLocalCalo_HcalRecAlgos_HcalPipelinePedestalAndGain_h_
0002 #define RecoLocalCalo_HcalRecAlgos_HcalPipelinePedestalAndGain_h_
0003 
0004 // HB/HE channel information stored for each pipeline "capacitor id"
0005 class HcalPipelinePedestalAndGain {
0006 public:
0007   inline HcalPipelinePedestalAndGain()
0008       : pedestal_(0.f), pedestalWidth_(0.f), effPedestal_(0.f), effPedestalWidth_(0.f), gain_(0.f), gainWidth_(0.f) {}
0009 
0010   inline HcalPipelinePedestalAndGain(const float i_pedestal,
0011                                      const float i_pedestalWidth,
0012                                      const float i_effPedestal,
0013                                      const float i_effPedestalWidth,
0014                                      const float i_gain,
0015                                      const float i_gainWidth)
0016       : pedestal_(i_pedestal),
0017         pedestalWidth_(i_pedestalWidth),
0018         effPedestal_(i_effPedestal),
0019         effPedestalWidth_(i_effPedestalWidth),
0020         gain_(i_gain),
0021         gainWidth_(i_gainWidth) {}
0022 
0023   inline float pedestal(const bool useEffectivePeds) const { return useEffectivePeds ? effPedestal_ : pedestal_; }
0024 
0025   inline float pedestalWidth(const bool useEffectivePeds) const {
0026     return useEffectivePeds ? effPedestalWidth_ : pedestalWidth_;
0027   }
0028 
0029   inline float gain() const { return gain_; }
0030   inline float gainWidth() const { return gainWidth_; }
0031 
0032 private:
0033   float pedestal_;
0034   float pedestalWidth_;
0035   float effPedestal_;
0036   float effPedestalWidth_;
0037   float gain_;
0038   float gainWidth_;
0039 };
0040 
0041 #endif  // RecoLocalCalo_HcalRecAlgos_HcalPipelinePedestalAndGain_h_