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() noexcept(false) override;
24 
25  void writeDB(const EcalLogicID* ecid, const RunPTMTempDat* item, RunIOV* iov) noexcept(false);
26 
27  void fetchData(std::map<EcalLogicID, RunPTMTempDat>* fillMap, RunIOV* iov) noexcept(false);
28 
29  // User data
31 };
32 
33 #endif
void fetchData(std::map< EcalLogicID, RunPTMTempDat > *fillMap, RunIOV *iov) noexcept(false)
float m_temperature
Definition: RunPTMTempDat.h:30
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)