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() noexcept(false) override;
35 
36  void writeDB(const EcalLogicID* ecid, const CaliCrystalIntercalDat* item, CaliIOV* iov) noexcept(false);
37 
38  void fetchData(std::map<EcalLogicID, CaliCrystalIntercalDat>* fillVec, CaliIOV* iov) noexcept(false);
39 
41 
42  // User data
43  float m_cali;
44  float m_caliRMS;
47 };
48 
49 #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)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
void prepareWrite() noexcept(false) override