#include <RunPTMTempDat.h>
Definition at line 11 of file RunPTMTempDat.h.
◆ RunPTMTempDat()
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::~RunPTMTempDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 62 of file RunPTMTempDat.cc.
References MillePedeFileConverter_cfg::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)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getTable()
std::string RunPTMTempDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTemperature()
float RunPTMTempDat::getTemperature |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void RunPTMTempDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file RunPTMTempDat.cc.
References MillePedeFileConverter_cfg::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)
◆ setTemperature()
void RunPTMTempDat::setTemperature |
( |
float |
t | ) |
|
|
inline |
◆ writeDB()
Definition at line 37 of file RunPTMTempDat.cc.
References MillePedeFileConverter_cfg::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)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_temperature
float RunPTMTempDat::m_temperature |
|
private |