Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:52

0001 #ifndef DCULVRBTEMPSDAT_H
0002 #define DCULVRBTEMPSDAT_H
0003 
0004 #include <map>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/DCUTag.h"
0009 #include "OnlineDB/EcalCondDB/interface/DCUIOV.h"
0010 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0011 
0012 class DCULVRBTempsDat : public IDataItem {
0013 public:
0014   friend class EcalCondDBInterface;
0015   DCULVRBTempsDat();
0016   ~DCULVRBTempsDat() override;
0017 
0018   // User data methods
0019   inline std::string getTable() override { return "DCU_LVRB_TEMPS_DAT"; }
0020 
0021   inline void setT1(float temp) { m_t1 = temp; }
0022   inline float getT1() const { return m_t1; }
0023 
0024   inline void setT2(float temp) { m_t2 = temp; }
0025   inline float getT2() const { return m_t2; }
0026 
0027   inline void setT3(float temp) { m_t3 = temp; }
0028   inline float getT3() const { return m_t3; }
0029 
0030 private:
0031   void prepareWrite() noexcept(false) override;
0032 
0033   void writeDB(const EcalLogicID* ecid, const DCULVRBTempsDat* item, DCUIOV* iov) noexcept(false);
0034 
0035   void writeArrayDB(const std::map<EcalLogicID, DCULVRBTempsDat>* data, DCUIOV* iov) noexcept(false);
0036 
0037   void fetchData(std::map<EcalLogicID, DCULVRBTempsDat>* fillVec, DCUIOV* iov) noexcept(false);
0038 
0039   // User data
0040   float m_t1;
0041   float m_t2;
0042   float m_t3;
0043 };
0044 
0045 #endif