Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:48

0001 #ifndef DCSPTMTEMP_H
0002 #define DCSPTMTEMP_H
0003 
0004 #include <stdexcept>
0005 #include <iostream>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IIOV.h"
0008 #include "OnlineDB/EcalCondDB/interface/Tm.h"
0009 #include "OnlineDB/EcalCondDB/interface/DateHandler.h"
0010 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0011 
0012 typedef int run_t;
0013 
0014 class DCSPTMTemp : public IDBObject {
0015 public:
0016   friend class EcalCondDBInterface;
0017 
0018   DCSPTMTemp();
0019   ~DCSPTMTemp() override;
0020 
0021   // Methods for user data
0022   inline std::string getTable() { return ""; }
0023 
0024   float getTemperature();
0025   void setTemperature(float temp);
0026 
0027   void setStart(const Tm& start);
0028   Tm getStart() const;
0029   void setEnd(const Tm& end);
0030   Tm getEnd() const;
0031   EcalLogicID getEcalLogicID() const;
0032   void setEcalLogicID(const EcalLogicID& ecid);
0033 
0034 private:
0035   // User data
0036   int m_ID;
0037   EcalLogicID m_ecid;
0038   float m_temp;
0039   Tm m_runStart;
0040   Tm m_runEnd;
0041 };
0042 
0043 #endif