Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CastorPedestals_h
0002 #define CastorPedestals_h
0003 
0004 /** 
0005 \class CastorPedestals
0006 \author Panos Katsas (UoA)
0007 Modified by L.Mundim (Mar/2009)
0008 POOL container to store Pedestal values 4xCapId
0009 $Author: katsas
0010 */
0011 #include "CondFormats/Serialization/interface/Serializable.h"
0012 
0013 #include "CondFormats/CastorObjects/interface/CastorPedestal.h"
0014 #include "CondFormats/CastorObjects/interface/CastorCondObjectContainer.h"
0015 
0016 //typedef CastorCondObjectContainer<CastorPedestal> CastorPedestals;
0017 
0018 class CastorPedestals : public CastorCondObjectContainer<CastorPedestal> {
0019 public:
0020   //constructor definition: has to contain
0021   CastorPedestals() : CastorCondObjectContainer<CastorPedestal>(), unitIsADC(false) {}
0022   CastorPedestals(bool isADC) : CastorCondObjectContainer<CastorPedestal>(), 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 private:
0030   bool unitIsADC;
0031 
0032   COND_SERIALIZABLE;
0033 };
0034 
0035 #endif