CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MonRunDat.h
Go to the documentation of this file.
1 #ifndef MONRUNDAT_H
2 #define MONRUNDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
11 
12 class MonRunDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
15  MonRunDat();
16  ~MonRunDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_RUN_DAT"; }
20 
21  inline void setNumEvents(int num) { m_numEvents = num; }
22  inline int getNumEvents() const { return m_numEvents; }
23 
24  inline void setMonRunOutcomeDef(const MonRunOutcomeDef& outcomeDef) { m_outcomeDef = outcomeDef; }
26 
28  inline std::string getRootfileName() const { return m_rootfileName; }
29 
30  inline void setTaskList(int list) { m_taskList = list; }
31  inline int getTaskList() const { return m_taskList; }
32 
33  inline void setTaskOutcome(int outcome) { m_taskOutcome = outcome; }
34  inline int getTaskOutcome() const { return m_taskOutcome; }
35 
36 private:
37  void prepareWrite() noexcept(false) override;
38 
39  void writeDB(const EcalLogicID* ecid, const MonRunDat* item, MonRunIOV* iov) noexcept(false);
40 
41  void fetchData(std::map<EcalLogicID, MonRunDat>* fillMap, MonRunIOV* iov) noexcept(false);
42 
43  // User data
46  std::string m_rootfileName;
49 };
50 
51 #endif
void setTaskList(int list)
Definition: MonRunDat.h:30
~MonRunDat() override
Definition: MonRunDat.cc:25
void setNumEvents(int num)
Definition: MonRunDat.h:21
void setMonRunOutcomeDef(const MonRunOutcomeDef &outcomeDef)
Definition: MonRunDat.h:24
int getTaskList() const
Definition: MonRunDat.h:31
int getNumEvents() const
Definition: MonRunDat.h:22
int getTaskOutcome() const
Definition: MonRunDat.h:34
void fetchData(std::map< EcalLogicID, MonRunDat > *fillMap, MonRunIOV *iov) noexcept(false)
Definition: MonRunDat.cc:78
void writeDB(const EcalLogicID *ecid, const MonRunDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonRunDat.cc:42
MonRunOutcomeDef getMonRunOutcomeDef() const
Definition: MonRunDat.h:25
void setRootfileName(std::string name)
Definition: MonRunDat.h:27
std::string getTable() override
Definition: MonRunDat.h:19
#define override(base_class)
int m_taskList
Definition: MonRunDat.h:47
void setTaskOutcome(int outcome)
Definition: MonRunDat.h:33
int m_numEvents
Definition: MonRunDat.h:44
MonRunOutcomeDef m_outcomeDef
Definition: MonRunDat.h:45
std::string m_rootfileName
Definition: MonRunDat.h:46
int m_taskOutcome
Definition: MonRunDat.h:48
std::string getRootfileName() const
Definition: MonRunDat.h:28
void prepareWrite() noexcept(false) override
Definition: MonRunDat.cc:27