CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/CondFormats/HcalObjects/interface/HcalPedestalWidths.h

Go to the documentation of this file.
00001 #ifndef HcalPedestalWidths_h
00002 #define HcalPedestalWidths_h
00003 
00010 #include "CondFormats/HcalObjects/interface/HcalCondObjectContainer.h"
00011 #include "CondFormats/HcalObjects/interface/HcalPedestalWidth.h"
00012 
00013 //typedef HcalCondObjectContainer<HcalPedestalWidth> HcalPedestalWidths;
00014 
00015 class HcalPedestalWidths: public HcalCondObjectContainer<HcalPedestalWidth>
00016 {
00017  public:
00018   //constructor definition: has to contain 
00019   HcalPedestalWidths():HcalCondObjectContainer<HcalPedestalWidth>(), unitIsADC(false) {}
00020   HcalPedestalWidths(bool isADC):HcalCondObjectContainer<HcalPedestalWidth>(), unitIsADC(isADC) {}
00021 
00022   // are the units ADC ? (true=ADC, false=fC)
00023   bool isADC() const {return unitIsADC;}
00024   // set unit boolean
00025   void setUnitADC(bool isADC) {unitIsADC = isADC;}
00026 
00027   std::string const myname() {return (std::string)"HcalPedestalWidths";}
00028 
00029  private:
00030   bool unitIsADC;
00031 
00032 };
00033 
00034 #endif