Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:13

0001 #ifndef HcalPedestalWidths_h
0002 #define HcalPedestalWidths_h
0003 
0004 /** 
0005 \class HcalPedestalWidths
0006 \author Radek Ofierzynski
0007 POOL container to store PedestalWidth values 4xCapId, using template
0008 */
0009 
0010 #include "CondFormats/Serialization/interface/Serializable.h"
0011 
0012 #include "CondFormats/HcalObjects/interface/HcalCondObjectContainer.h"
0013 #include "CondFormats/HcalObjects/interface/HcalPedestalWidth.h"
0014 
0015 //typedef HcalCondObjectContainer<HcalPedestalWidth> HcalPedestalWidths;
0016 
0017 class HcalPedestalWidths : public HcalCondObjectContainer<HcalPedestalWidth> {
0018 public:
0019   //constructor definition: has to contain
0020 #ifndef HCAL_COND_SUPPRESS_DEFAULT
0021   HcalPedestalWidths() : HcalCondObjectContainer<HcalPedestalWidth>(nullptr), unitIsADC(false) {}
0022 #endif
0023   HcalPedestalWidths(const HcalTopology* topo) : HcalCondObjectContainer<HcalPedestalWidth>(topo), unitIsADC(false) {}
0024   HcalPedestalWidths(const HcalTopology* topo, bool isADC)
0025       : HcalCondObjectContainer<HcalPedestalWidth>(topo), unitIsADC(isADC) {}
0026 
0027   // are the units ADC ? (true=ADC, false=fC)
0028   bool isADC() const { return unitIsADC; }
0029   // set unit boolean
0030   void setUnitADC(bool isADC) { unitIsADC = isADC; }
0031 
0032   std::string myname() const override { return (std::string) "HcalPedestalWidths"; }
0033 
0034 private:
0035   bool unitIsADC;
0036 
0037   COND_SERIALIZABLE;
0038 };
0039 
0040 #endif