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 
25  inline std::string getComments() const { return m_comments; }
26 
27  private:
28  void prepareWrite()
29  noexcept(false) override;
30 
31  void writeDB(const EcalLogicID* ecid, const CaliGeneralDat* item, CaliIOV* iov)
32  noexcept(false);
33 
34  void fetchData(std::map< EcalLogicID, CaliGeneralDat >* fillVec, CaliIOV* iov)
35  noexcept(false);
36 
37  // User data
40 
41 };
42 
43 #endif
std::string getTable() override
std::string getComments() const
std::string m_comments
void fetchData(std::map< EcalLogicID, CaliGeneralDat > *fillVec, CaliIOV *iov) noexcept(false)
#define noexcept
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)