#include <RunPTMTempDat.h>
Definition at line 11 of file RunPTMTempDat.h.
RunPTMTempDat::RunPTMTempDat |
( |
| ) |
|
Definition at line 11 of file RunPTMTempDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunPTMTempDat::~RunPTMTempDat |
( |
| ) |
|
Definition at line 72 of file RunPTMTempDat.cc.
References alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, and setTemperature().
87 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
89 "FROM channelview cv JOIN RUN_TEMPERATURE_PTM_DAT d "
90 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
91 "WHERE d.iov_id = :iov_id");
95 std::pair< EcalLogicID, RunPTMTempDat >
p;
112 throw(std::runtime_error(
"RunPTMTempDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement * m_readStmt
void setTemperature(float t)
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
std::string RunPTMTempDat::getTable |
( |
| ) |
|
|
inlinevirtual |
float RunPTMTempDat::getTemperature |
( |
| ) |
const |
|
inline |
void RunPTMTempDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 29 of file RunPTMTempDat.cc.
References alignCSCRings::e.
36 m_writeStmt->setSQL(
"INSERT INTO run_temperature_ptm_dat (iov_id, logic_id, "
38 "VALUES (:iov_id, :logic_id, "
41 throw(std::runtime_error(
"RunPTMTempDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void RunPTMTempDat::setTemperature |
( |
float |
t | ) |
|
|
inline |
Definition at line 47 of file RunPTMTempDat.cc.
References alignCSCRings::e, and o2o::iov.
54 if (!iovID) {
throw(std::runtime_error(
"RunPTMTempDat::writeDB: IOV not in DB")); }
57 if (!logicID) {
throw(std::runtime_error(
"RunPTMTempDat::writeDB: Bad EcalLogicID")); }
66 throw(std::runtime_error(
"RunPTMTempDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
float getTemperature() const
void checkConnection() const
float RunPTMTempDat::m_temperature |
|
private |