Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include <stdexcept>
0002 #include "OnlineDB/Oracle/interface/Oracle.h"
0003 
0004 #include "OnlineDB/EcalCondDB/interface/DCSPTMTemp.h"
0005 #include "OnlineDB/EcalCondDB/interface/IIOV.h"
0006 #include "OnlineDB/EcalCondDB/interface/Tm.h"
0007 #include "OnlineDB/EcalCondDB/interface/DateHandler.h"
0008 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0009 
0010 using namespace std;
0011 using namespace oracle::occi;
0012 
0013 DCSPTMTemp::DCSPTMTemp() {
0014   m_conn = nullptr;
0015 
0016   m_runStart = Tm();
0017   m_runEnd = Tm();
0018   m_temp = 0.;
0019 }
0020 
0021 DCSPTMTemp::~DCSPTMTemp() {}
0022 
0023 void DCSPTMTemp::setStart(const Tm& start) {
0024   if (start != m_runStart) {
0025     m_ID = 0;
0026     m_runStart = start;
0027   }
0028 }
0029 
0030 Tm DCSPTMTemp::getStart() const { return m_runStart; }
0031 
0032 void DCSPTMTemp::setEnd(const Tm& end) {
0033   if (end != m_runEnd) {
0034     m_ID = 0;
0035     m_runEnd = end;
0036   }
0037 }
0038 
0039 Tm DCSPTMTemp::getEnd() const { return m_runEnd; }
0040 
0041 float DCSPTMTemp::getTemperature() { return m_temp; }
0042 
0043 void DCSPTMTemp::setTemperature(float temp) { m_temp = temp; }
0044 
0045 EcalLogicID DCSPTMTemp::getEcalLogicID() const { return m_ecid; }
0046 
0047 void DCSPTMTemp::setEcalLogicID(const EcalLogicID& ecid) { m_ecid = ecid; }