CMS 3D CMS Logo

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
49 };
50 
51 #endif
MonRunOutcomeDef.h
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
funct::false
false
Definition: Factorize.h:29
MonRunDat::getNumEvents
int getNumEvents() const
Definition: MonRunDat.h:22
MonRunDat::setMonRunOutcomeDef
void setMonRunOutcomeDef(const MonRunOutcomeDef &outcomeDef)
Definition: MonRunDat.h:24
MonRunDat::writeDB
void writeDB(const EcalLogicID *ecid, const MonRunDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonRunDat.cc:42
MonRunDat::m_taskOutcome
int m_taskOutcome
Definition: MonRunDat.h:48
MonRunDat::getMonRunOutcomeDef
MonRunOutcomeDef getMonRunOutcomeDef() const
Definition: MonRunDat.h:25
MonRunDat
Definition: MonRunDat.h:12
watchdog.const
const
Definition: watchdog.py:83
MonRunDat::getTaskList
int getTaskList() const
Definition: MonRunDat.h:31
MonRunDat::getRootfileName
std::string getRootfileName() const
Definition: MonRunDat.h:28
MonRunDat::setTaskOutcome
void setTaskOutcome(int outcome)
Definition: MonRunDat.h:33
IDataItem
Definition: IDataItem.h:16
EcalLogicID
Definition: EcalLogicID.h:7
MonRunDat::~MonRunDat
~MonRunDat() override
Definition: MonRunDat.cc:25
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MonRunIOV.h
MonRunDat::m_taskList
int m_taskList
Definition: MonRunDat.h:47
MonRunDat::setRootfileName
void setRootfileName(std::string name)
Definition: MonRunDat.h:27
MonRunDat::m_rootfileName
std::string m_rootfileName
Definition: MonRunDat.h:46
MonRunDat::m_outcomeDef
MonRunOutcomeDef m_outcomeDef
Definition: MonRunDat.h:45
MonRunDat::getTable
std::string getTable() override
Definition: MonRunDat.h:19
MonRunDat::fetchData
void fetchData(std::map< EcalLogicID, MonRunDat > *fillMap, MonRunIOV *iov) noexcept(false)
Definition: MonRunDat.cc:78
MonRunIOV
Definition: MonRunIOV.h:14
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34
MonRunDat::m_numEvents
int m_numEvents
Definition: MonRunDat.h:44
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
MonRunDat::setTaskList
void setTaskList(int list)
Definition: MonRunDat.h:30
MonRunDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MonRunDat.cc:27
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MonRunDat::setNumEvents
void setNumEvents(int num)
Definition: MonRunDat.h:21
MonRunOutcomeDef
Definition: MonRunOutcomeDef.h:12
MonRunDat::MonRunDat
MonRunDat()
Definition: MonRunDat.cc:12
MonRunDat::getTaskOutcome
int getTaskOutcome() const
Definition: MonRunDat.h:34