Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef RUNLASERRUNDAT_H
0002 #define RUNLASERRUNDAT_H
0003 
0004 #include <vector>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/RunIOV.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010 
0011 class RunLaserRunDat : public IDataItem {
0012 public:
0013   friend class EcalCondDBInterface;
0014   RunLaserRunDat();
0015   ~RunLaserRunDat() override;
0016 
0017   // User data methods
0018   inline std::string getTable() override { return "RUN_LASERRUN_CONFIG_DAT"; }
0019 
0020   inline void setLaserSequenceType(std::string x) { m_laserSeqType = x; }
0021   inline std::string getLaserSequenceType() const { return m_laserSeqType; }
0022   //
0023   inline void setLaserSequenceCond(std::string x) { m_laserSeqCond = x; }
0024   inline std::string getLaserSequenceCond() const { return m_laserSeqCond; }
0025 
0026 private:
0027   void prepareWrite() noexcept(false) override;
0028 
0029   void writeDB(const EcalLogicID* ecid, const RunLaserRunDat* item, RunIOV* iov) noexcept(false);
0030 
0031   void fetchData(std::map<EcalLogicID, RunLaserRunDat>* fillMap, RunIOV* iov) noexcept(false);
0032 
0033   // User data
0034   std::string m_laserSeqType;
0035   std::string m_laserSeqCond;
0036 };
0037 
0038 #endif