File indexing completed on 2024-04-06 12:02:13
0001 #ifndef HcalPedestals_h
0002 #define HcalPedestals_h
0003
0004
0005
0006
0007
0008
0009
0010 #include "CondFormats/Serialization/interface/Serializable.h"
0011
0012 #include "CondFormats/HcalObjects/interface/HcalPedestal.h"
0013 #include "CondFormats/HcalObjects/interface/HcalCondObjectContainer.h"
0014
0015 #include <vector>
0016 #include <string>
0017
0018
0019
0020 class HcalPedestals : public HcalCondObjectContainer<HcalPedestal> {
0021 public:
0022
0023 #ifndef HCAL_COND_SUPPRESS_DEFAULT
0024 HcalPedestals() : HcalCondObjectContainer<HcalPedestal>(nullptr), unitIsADC(false) {}
0025 #endif
0026 HcalPedestals(const HcalTopology* topo) : HcalCondObjectContainer<HcalPedestal>(topo), unitIsADC(false) {}
0027 HcalPedestals(const HcalTopology* topo, bool isADC) : HcalCondObjectContainer<HcalPedestal>(topo), unitIsADC(isADC) {}
0028
0029
0030 bool isADC() const { return unitIsADC; }
0031
0032 void setUnitADC(bool isADC) { unitIsADC = isADC; }
0033
0034 std::string myname() const override { return (std::string) "HcalPedestals"; }
0035
0036 private:
0037 bool unitIsADC;
0038
0039 COND_SERIALIZABLE;
0040 };
0041
0042 #endif