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 #ifndef HCAL_COND_SUPPRESS_DEFAULT 00020 HcalPedestals():HcalCondObjectContainer<HcalPedestal>(0), unitIsADC(false) {} 00021 #endif 00022 HcalPedestals(const HcalTopology* topo):HcalCondObjectContainer<HcalPedestal>(topo), unitIsADC(false) {} 00023 HcalPedestals(const HcalTopology* topo, bool isADC):HcalCondObjectContainer<HcalPedestal>(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 myname() const {return (std::string)"HcalPedestals";} 00031 00032 private: 00033 bool unitIsADC; 00034 00035 }; 00036 00037 #endif