CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/CondFormats/HcalObjects/interface/HcalPedestals.h

Go to the documentation of this file.
00001 #ifndef HcalPedestals_h
00002 #define HcalPedestals_h
00003 
00010 #include "CondFormats/HcalObjects/interface/HcalPedestal.h"
00011 #include "CondFormats/HcalObjects/interface/HcalCondObjectContainer.h"
00012 
00013 //typedef HcalCondObjectContainer<HcalPedestal> HcalPedestals;
00014 
00015 class HcalPedestals: public HcalCondObjectContainer<HcalPedestal>
00016 {
00017  public:
00018   //constructor definition: has to contain 
00019   HcalPedestals():HcalCondObjectContainer<HcalPedestal>(), unitIsADC(false) {}
00020   HcalPedestals(bool isADC):HcalCondObjectContainer<HcalPedestal>(), 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 myname() const {return (std::string)"HcalPedestals";}
00028 
00029  private:
00030   bool unitIsADC;
00031 
00032 };
00033 
00034 #endif