CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/CondFormats/EcalObjects/interface/EcalADCToGeVConstant.h

Go to the documentation of this file.
00001 #ifndef CondFormats_EcalObjects_EcalADCToGeVConstant_H
00002 #define CondFormats_EcalObjects_EcalADCToGeVConstant_H
00003 
00009 #include <iostream>
00010 
00011 class EcalADCToGeVConstant {
00012   public:
00013     EcalADCToGeVConstant();
00014     EcalADCToGeVConstant(const float & EBvalue, const float & EEvalue);
00015     ~EcalADCToGeVConstant();
00016     void  setEBValue(const float& value) { EBvalue_ = value; }
00017     void  setEEValue(const float& value) { EEvalue_ = value; }
00018     float getEBValue() const { return EBvalue_; }
00019     float getEEValue() const { return EEvalue_; }
00020     void print(std::ostream& s) const {
00021       s << "EcalADCToGeVConstant: EB " << EBvalue_ << "; EE " << EEvalue_ << " [GeV/ADC count]";
00022     }
00023   private:
00024     float EBvalue_;
00025     float EEvalue_;
00026 };
00027 
00035 #endif