CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/CondFormats/EcalObjects/interface/EcalMGPAGainRatio.h

Go to the documentation of this file.
00001 #ifndef CondFormats_EcalObjects_EcalMGPAGainRatio_H
00002 #define CondFormats_EcalObjects_EcalMGPAGainRatio_H
00003 
00010 #include <iostream>
00011 
00012 class EcalMGPAGainRatio {
00013   public:
00014     EcalMGPAGainRatio();
00015     EcalMGPAGainRatio(const EcalMGPAGainRatio & ratio);
00016     ~EcalMGPAGainRatio();
00017 
00018     float gain12Over6() const { return gain12Over6_; }
00019     float gain6Over1() const { return gain6Over1_; }
00020 
00021     void setGain12Over6(const float& g) { gain12Over6_ = g; }
00022     void setGain6Over1(const float& g)  { gain6Over1_ = g; }
00023 
00024     void print(std::ostream& s) const { s << "gain 12/6: " << gain12Over6_ << " gain 6/1: " << gain6Over1_; }
00025 
00026     EcalMGPAGainRatio& operator=(const EcalMGPAGainRatio& rhs);
00027 
00028   private:
00029     float gain12Over6_;
00030     float gain6Over1_;
00031 };
00032 #endif