File indexing completed on 2024-04-06 12:02:13
0001 #ifndef HcalPedestalWidths_h
0002 #define HcalPedestalWidths_h
0003
0004
0005
0006
0007
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
0016
0017 class HcalPedestalWidths : public HcalCondObjectContainer<HcalPedestalWidth> {
0018 public:
0019
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
0028 bool isADC() const { return unitIsADC; }
0029
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