#include <RunPTMTempDat.h>
Definition at line 11 of file RunPTMTempDat.h.
RunPTMTempDat::RunPTMTempDat |
( |
| ) |
|
Definition at line 11 of file RunPTMTempDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunPTMTempDat::~RunPTMTempDat |
( |
| ) |
|
|
override |
Definition at line 62 of file RunPTMTempDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, and setTemperature().
75 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
77 "FROM channelview cv JOIN RUN_TEMPERATURE_PTM_DAT d "
78 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
79 "WHERE d.iov_id = :iov_id");
83 std::pair<EcalLogicID, RunPTMTempDat>
p;
85 while (rset->next()) {
99 }
catch (SQLException&
e) {
100 throw(std::runtime_error(
"RunPTMTempDat::fetchData(): " + e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement * m_readStmt
void setTemperature(float t)
static std::vector< std::string > checklist dat
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
std::string RunPTMTempDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
float RunPTMTempDat::getTemperature |
( |
| ) |
const |
|
inline |
void RunPTMTempDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file RunPTMTempDat.cc.
References alignCSCRings::e.
28 "INSERT INTO run_temperature_ptm_dat (iov_id, logic_id, "
30 "VALUES (:iov_id, :logic_id, "
32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"RunPTMTempDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void RunPTMTempDat::setTemperature |
( |
float |
t | ) |
|
|
inline |
Definition at line 37 of file RunPTMTempDat.cc.
References alignCSCRings::e, and B2GTnPMonitor_cfi::item.
43 throw(std::runtime_error(
"RunPTMTempDat::writeDB: IOV not in DB"));
48 throw(std::runtime_error(
"RunPTMTempDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"RunPTMTempDat::writeDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
float getTemperature() const
int fetchID() noexcept(false) override
float RunPTMTempDat::m_temperature |
|
private |