#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 69 of file CaliHVScanRatioDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, setHVRatio(), setHVRatioRMS(), and setTaskStatus().
81 Statement* stmt =
m_conn->createStatement();
83 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
84 "d.hvratio, d.hvratio_rms, d.task_status "
85 "FROM channelview cv JOIN cali_hv_scan_ratio_dat d "
86 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
87 "WHERE d.iov_id = :iov_id");
88 stmt->setInt(1, iovID);
89 ResultSet* rset = stmt->executeQuery();
91 std::pair<EcalLogicID, CaliHVScanRatioDat>
p;
93 while (rset->next()) {
108 }
catch (SQLException&
e) {
109 throw(std::runtime_error(
"CaliHVScanRatioDat::fetchData(): " + e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setTaskStatus(bool s)
void checkConnection() const noexcept(false)
static std::vector< std::string > checklist dat
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 |
Implements IDataItem.
Definition at line 24 of file CaliHVScanRatioDat.cc.
References alignCSCRings::e.
30 "INSERT INTO cali_hv_scan_ratio_dat (iov_id, logic_id, "
31 "hvratio, hvratio_rms, task_status) "
32 "VALUES (:iov_id, :logic_id, "
34 }
catch (SQLException&
e) {
35 throw(std::runtime_error(
"CaliHVScanRatioDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void CaliHVScanRatioDat::setHVRatio |
( |
float |
c | ) |
|
|
inline |
void CaliHVScanRatioDat::setHVRatioRMS |
( |
float |
c | ) |
|
|
inline |
void CaliHVScanRatioDat::setTaskStatus |
( |
bool |
s | ) |
|
|
inline |
Definition at line 39 of file CaliHVScanRatioDat.cc.
References alignCSCRings::e, and B2GTnPMonitor_cfi::item.
47 throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB: IOV not in DB"));
52 throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB: Bad EcalLogicID"));
64 }
catch (SQLException&
e) {
65 throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
bool getTaskStatus() const
void checkPrepare() 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 |