Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HcalPedestals_h
0002 #define HcalPedestals_h
0003 
0004 /** 
0005 \class HcalPedestals
0006 \author Radek Ofierzynski
0007 POOL container to store Pedestal values 4xCapId, using template
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 //typedef HcalCondObjectContainer<HcalPedestal> HcalPedestals;
0019 
0020 class HcalPedestals : public HcalCondObjectContainer<HcalPedestal> {
0021 public:
0022   //constructor definition: has to contain
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   // are the units ADC ? (true=ADC, false=fC)
0030   bool isADC() const { return unitIsADC; }
0031   // set unit boolean
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