Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef RUNDAT_H
0002 #define RUNDAT_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 RunDat : public IDataItem {
0012 public:
0013   friend class EcalCondDBInterface;
0014   RunDat();
0015   ~RunDat() override;
0016 
0017   // User data methods
0018   inline std::string getTable() override { return "RUN_DAT"; }
0019 
0020   inline void setNumEvents(int num) { m_numEvents = num; }
0021   inline int getNumEvents() const { return m_numEvents; }
0022 
0023 private:
0024   void prepareWrite() noexcept(false) override;
0025 
0026   void writeDB(const EcalLogicID* ecid, const RunDat* item, RunIOV* iov) noexcept(false);
0027 
0028   void fetchData(std::map<EcalLogicID, RunDat>* fillMap, RunIOV* iov) noexcept(false);
0029 
0030   // User data
0031   int m_numEvents;
0032 };
0033 
0034 #endif