#include <CaliHVScanRatioDat.h>
Definition at line 12 of file CaliHVScanRatioDat.h.
CaliHVScanRatioDat::CaliHVScanRatioDat |
( |
| ) |
|
Definition at line 12 of file CaliHVScanRatioDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
CaliHVScanRatioDat::~CaliHVScanRatioDat |
( |
| ) |
|
|
override |
Definition at line 77 of file CaliHVScanRatioDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setHVRatio(), setHVRatioRMS(), setTaskStatus(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getTaskStatus().
91 Statement* stmt =
m_conn->createStatement();
92 stmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 93 "d.hvratio, d.hvratio_rms, d.task_status " 94 "FROM channelview cv JOIN cali_hv_scan_ratio_dat d " 95 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 96 "WHERE d.iov_id = :iov_id");
97 stmt->setInt(1, iovID);
98 ResultSet* rset = stmt->executeQuery();
100 std::pair< EcalLogicID, CaliHVScanRatioDat >
p;
102 while(rset->next()) {
108 getOraString(rset,6));
117 }
catch (SQLException &
e) {
118 throw(std::runtime_error(
std::string(
"CaliHVScanRatioDat::fetchData(): ")+getOraMessage(&e)));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setTaskStatus(bool s)
void checkConnection() const noexcept(false)
void setHVRatioRMS(float c)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
float CaliHVScanRatioDat::getHVRatio |
( |
| ) |
const |
|
inline |
float CaliHVScanRatioDat::getHVRatioRMS |
( |
| ) |
const |
|
inline |
std::string CaliHVScanRatioDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
bool CaliHVScanRatioDat::getTaskStatus |
( |
| ) |
const |
|
inline |
void CaliHVScanRatioDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void CaliHVScanRatioDat::setHVRatio |
( |
float |
c | ) |
|
|
inline |
void CaliHVScanRatioDat::setHVRatioRMS |
( |
float |
c | ) |
|
|
inline |
void CaliHVScanRatioDat::setTaskStatus |
( |
bool |
s | ) |
|
|
inline |
Definition at line 49 of file CaliHVScanRatioDat.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getTaskStatus().
56 if (!iovID) {
throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB: IOV not in DB")); }
59 if (!logicID) {
throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB: Bad EcalLogicID")); }
70 }
catch (SQLException &
e) {
71 throw(std::runtime_error(
std::string(
"CaliHVScanRatioDat::writeDB(): ")+getOraMessage(&e)));
oracle::occi::Statement * m_writeStmt
bool getTaskStatus() const
void checkPrepare() noexcept(false)
void checkConnection() const noexcept(false)
float getHVRatioRMS() const
int fetchID() noexcept(false) override
float CaliHVScanRatioDat::m_hvratio |
|
private |
float CaliHVScanRatioDat::m_hvratioRMS |
|
private |
bool CaliHVScanRatioDat::m_taskStatus |
|
private |