CMS 3D CMS Logo

RunDat.h
Go to the documentation of this file.
1 #ifndef RUNDAT_H
2 #define RUNDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class RunDat : public IDataItem {
12  public:
13  friend class EcalCondDBInterface;
14  RunDat();
15  ~RunDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "RUN_DAT"; }
19 
20  inline void setNumEvents(int num) { m_numEvents = num; }
21  inline int getNumEvents() const { return m_numEvents; }
22 
23  private:
24  void prepareWrite()
25  noexcept(false) override;
26 
27  void writeDB(const EcalLogicID* ecid, const RunDat* item, RunIOV* iov )
28  noexcept(false);
29 
30  void fetchData(std::map< EcalLogicID, RunDat >* fillMap, RunIOV* iov)
31  noexcept(false);
32 
33  // User data
35 };
36 
37 #endif
void fetchData(std::map< EcalLogicID, RunDat > *fillMap, RunIOV *iov) noexcept(false)
Definition: RunDat.cc:70
void setNumEvents(int num)
Definition: RunDat.h:20
int getNumEvents() const
Definition: RunDat.h:21
int m_numEvents
Definition: RunDat.h:34
void writeDB(const EcalLogicID *ecid, const RunDat *item, RunIOV *iov) noexcept(false)
Definition: RunDat.cc:45
void prepareWrite() noexcept(false) override
Definition: RunDat.cc:27
RunDat()
Definition: RunDat.cc:11
#define noexcept
~RunDat() override
Definition: RunDat.cc:21
Definition: RunDat.h:11
std::string getTable() override
Definition: RunDat.h:18
Definition: RunIOV.h:13