CMS 3D CMS Logo

RunPTMTempDat.h
Go to the documentation of this file.
1 #ifndef RUNPTMTEMPDAT_H
2 #define RUNPTMTEMPDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class RunPTMTempDat : public IDataItem {
12  public:
13  friend class EcalCondDBInterface;
14  RunPTMTempDat();
15  ~RunPTMTempDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "RUN_PTM_TEMP_DAT"; }
19  inline void setTemperature(float t) { m_temperature = t; }
20  inline float getTemperature() const { return m_temperature; }
21 
22  private:
23  void prepareWrite()
24  noexcept(false) override;
25 
26  void writeDB(const EcalLogicID* ecid, const RunPTMTempDat* item, RunIOV* iov )
27  noexcept(false);
28 
29  void fetchData(std::map< EcalLogicID, RunPTMTempDat >* fillMap, RunIOV* iov)
30  noexcept(false);
31 
32  // User data
34 };
35 
36 #endif
void fetchData(std::map< EcalLogicID, RunPTMTempDat > *fillMap, RunIOV *iov) noexcept(false)
#define noexcept
float m_temperature
Definition: RunPTMTempDat.h:33
void prepareWrite() noexcept(false) override
~RunPTMTempDat() override
std::string getTable() override
Definition: RunPTMTempDat.h:18
void setTemperature(float t)
Definition: RunPTMTempDat.h:19
float getTemperature() const
Definition: RunPTMTempDat.h:20
Definition: RunIOV.h:13
void writeDB(const EcalLogicID *ecid, const RunPTMTempDat *item, RunIOV *iov) noexcept(false)