CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/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 #ifndef HCAL_COND_SUPPRESS_DEFAULT
00020   HcalPedestalWidths():HcalCondObjectContainer<HcalPedestalWidth>(0), unitIsADC(false) {}
00021 #endif
00022   HcalPedestalWidths(const HcalTopology* topo):HcalCondObjectContainer<HcalPedestalWidth>(topo), unitIsADC(false) {}
00023   HcalPedestalWidths(const HcalTopology* topo,bool isADC):HcalCondObjectContainer<HcalPedestalWidth>(topo), unitIsADC(isADC) {}
00024 
00025   // are the units ADC ? (true=ADC, false=fC)
00026   bool isADC() const {return unitIsADC;}
00027   // set unit boolean
00028   void setUnitADC(bool isADC) {unitIsADC = isADC;}
00029 
00030   std::string const myname() {return (std::string)"HcalPedestalWidths";}
00031 
00032  private:
00033   bool unitIsADC;
00034 
00035 };
00036 
00037 #endif