Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:48

0001 #ifndef CALIHVSCANRATIODAT_H
0002 #define CALIHVSCANRATIODAT_H
0003 
0004 #include <map>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/CaliTag.h"
0009 #include "OnlineDB/EcalCondDB/interface/CaliIOV.h"
0010 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0011 
0012 class CaliHVScanRatioDat : public IDataItem {
0013 public:
0014   friend class EcalCondDBInterface;
0015   CaliHVScanRatioDat();
0016   ~CaliHVScanRatioDat() override;
0017 
0018   // User data methods
0019   inline std::string getTable() override { return "CALI_HV_SCAN_RATIO_DAT"; }
0020 
0021   inline void setHVRatio(float c) { m_hvratio = c; }
0022   inline float getHVRatio() const { return m_hvratio; }
0023 
0024   inline void setHVRatioRMS(float c) { m_hvratioRMS = c; }
0025   inline float getHVRatioRMS() const { return m_hvratioRMS; }
0026 
0027   inline void setTaskStatus(bool s) { m_taskStatus = s; }
0028   inline bool getTaskStatus() const { return m_taskStatus; }
0029 
0030 private:
0031   void prepareWrite() noexcept(false) override;
0032 
0033   void writeDB(const EcalLogicID* ecid, const CaliHVScanRatioDat* item, CaliIOV* iov) noexcept(false);
0034 
0035   void fetchData(std::map<EcalLogicID, CaliHVScanRatioDat>* fillVec, CaliIOV* iov) noexcept(false);
0036 
0037   // User data
0038   float m_hvratio;
0039   float m_hvratioRMS;
0040   bool m_taskStatus;
0041 };
0042 
0043 #endif