CMS 3D CMS Logo

CaliCrystalIntercalDat.h
Go to the documentation of this file.
1 #ifndef CALICRYSTALINTERCALDAT_H
2 #define CALICRYSTALINTERCALDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
13  public:
14  friend class EcalCondDBInterface;
16  ~CaliCrystalIntercalDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "CALI_CRYSTAL_INTERCAL_DAT"; }
20 
21  inline void setCali(float c) { m_cali = c; }
22  inline float getCali() const { return m_cali; }
23 
24  inline void setCaliRMS(float c) { m_caliRMS = c; }
25  inline float getCaliRMS() const { return m_caliRMS; }
26 
27  inline void setNumEvents(int n) { m_numEvents = n; }
28  inline int getNumEvents() const { return m_numEvents; }
29 
30  inline void setTaskStatus(bool s) { m_taskStatus = s; }
31  inline bool getTaskStatus() const { return m_taskStatus; }
32 
33  private:
34  void prepareWrite()
35  noexcept(false) override;
36 
37  void writeDB(const EcalLogicID* ecid, const CaliCrystalIntercalDat* item, CaliIOV* iov)
38  noexcept(false);
39 
40  void fetchData(std::map< EcalLogicID, CaliCrystalIntercalDat >* fillVec, CaliIOV* iov)
41  noexcept(false);
42 
43  void writeArrayDB(const std::map< EcalLogicID, CaliCrystalIntercalDat >* data, CaliIOV* iov)
44  noexcept(false);
45 
46 
47 
48  // User data
49  float m_cali;
50  float m_caliRMS;
53 
54 
55 };
56 
57 #endif
std::string getTable() override
void fetchData(std::map< EcalLogicID, CaliCrystalIntercalDat > *fillVec, CaliIOV *iov) noexcept(false)
void writeArrayDB(const std::map< EcalLogicID, CaliCrystalIntercalDat > *data, CaliIOV *iov) noexcept(false)
void writeDB(const EcalLogicID *ecid, const CaliCrystalIntercalDat *item, CaliIOV *iov) noexcept(false)
#define noexcept
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void prepareWrite() noexcept(false) override