Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:57

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