CMS 3D CMS Logo

CaliGeneralDat.h
Go to the documentation of this file.
1 #ifndef CALIGENERALDAT_H
2 #define CALIGENERALDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class CaliGeneralDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
16  ~CaliGeneralDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "CALI_GENERAL_DAT"; }
20 
21  inline void setNumEvents(int n) { m_numEvents = n; }
22  inline int getNumEvents() const { return m_numEvents; }
23 
24  inline void setComments(std::string comments) { m_comments = comments; }
25  inline std::string getComments() const { return m_comments; }
26 
27 private:
28  void prepareWrite() noexcept(false) override;
29 
30  void writeDB(const EcalLogicID* ecid, const CaliGeneralDat* item, CaliIOV* iov) noexcept(false);
31 
32  void fetchData(std::map<EcalLogicID, CaliGeneralDat>* fillVec, CaliIOV* iov) noexcept(false);
33 
34  // User data
36  std::string m_comments;
37 };
38 
39 #endif
std::string getTable() override
std::string m_comments
void fetchData(std::map< EcalLogicID, CaliGeneralDat > *fillVec, CaliIOV *iov) noexcept(false)
std::string getComments() const
void prepareWrite() noexcept(false) override
void writeDB(const EcalLogicID *ecid, const CaliGeneralDat *item, CaliIOV *iov) noexcept(false)
void setComments(std::string comments)
~CaliGeneralDat() override
int getNumEvents() const
void setNumEvents(int n)