CMS 3D CMS Logo

RunCommentDat.h
Go to the documentation of this file.
1 #ifndef RUNCOMMENTDAT_H
2 #define RUNCOMMENTDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class RunCommentDat : public IDataItem {
12 public:
13  friend class EcalCondDBInterface;
14  RunCommentDat();
15  ~RunCommentDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "RUN_COMMENT_DAT"; }
19 
20  inline void setSource(std::string x) { m_source = x; }
21  inline std::string getSource() const { return m_source; }
22  inline void setComment(std::string x) { m_comment = x; }
23  inline std::string getComment() const { return m_comment; }
24  inline void setDBTime(const Tm& x) { m_time = x; }
25  inline Tm getDBTime() const { return m_time; }
26 
27 private:
28  void prepareWrite() noexcept(false) override;
29 
30  void writeDB(const EcalLogicID* ecid, const RunCommentDat* item, RunIOV* iov) noexcept(false);
31 
32  void fetchData(std::map<EcalLogicID, RunCommentDat>* fillMap, RunIOV* iov) noexcept(false);
33 
34  // User data
35  std::string m_source;
36  std::string m_comment;
38 };
39 
40 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
RunIOV
Definition: RunIOV.h:13
funct::false
false
Definition: Factorize.h:34
RunIOV.h
DDAxes::x
watchdog.const
const
Definition: watchdog.py:83
RunCommentDat::getSource
std::string getSource() const
Definition: RunCommentDat.h:21
RunCommentDat::~RunCommentDat
~RunCommentDat() override
Definition: RunCommentDat.cc:23
RunCommentDat::setSource
void setSource(std::string x)
Definition: RunCommentDat.h:20
RunCommentDat::getDBTime
Tm getDBTime() const
Definition: RunCommentDat.h:25
RunCommentDat::RunCommentDat
RunCommentDat()
Definition: RunCommentDat.cc:14
IDataItem
Definition: IDataItem.h:16
EcalLogicID
Definition: EcalLogicID.h:7
Tm
Definition: Tm.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RunCommentDat::getComment
std::string getComment() const
Definition: RunCommentDat.h:23
RunCommentDat
Definition: RunCommentDat.h:11
RunCommentDat::m_time
Tm m_time
Definition: RunCommentDat.h:37
RunCommentDat::setComment
void setComment(std::string x)
Definition: RunCommentDat.h:22
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
RunCommentDat::m_comment
std::string m_comment
Definition: RunCommentDat.h:36
RunCommentDat::setDBTime
void setDBTime(const Tm &x)
Definition: RunCommentDat.h:24
EcalLogicID.h
RunCommentDat::m_source
std::string m_source
Definition: RunCommentDat.h:35
std
Definition: JetResolutionObject.h:76
RunCommentDat::getTable
std::string getTable() override
Definition: RunCommentDat.h:18
RunCommentDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: RunCommentDat.cc:25
genParticles_cff.map
map
Definition: genParticles_cff.py:11
RunCommentDat::fetchData
void fetchData(std::map< EcalLogicID, RunCommentDat > *fillMap, RunIOV *iov) noexcept(false)
Definition: RunCommentDat.cc:60
RunCommentDat::writeDB
void writeDB(const EcalLogicID *ecid, const RunCommentDat *item, RunIOV *iov) noexcept(false)
Definition: RunCommentDat.cc:40