#include <CaliHVScanRatioDat.h>
Definition at line 12 of file CaliHVScanRatioDat.h.
◆ CaliHVScanRatioDat()
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::~CaliHVScanRatioDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 69 of file CaliHVScanRatioDat.cc.
References MillePedeFileConverter_cfg::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)
void setHVRatioRMS(float c)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getHVRatio()
float CaliHVScanRatioDat::getHVRatio |
( |
| ) |
const |
|
inline |
◆ getHVRatioRMS()
float CaliHVScanRatioDat::getHVRatioRMS |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string CaliHVScanRatioDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTaskStatus()
bool CaliHVScanRatioDat::getTaskStatus |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void CaliHVScanRatioDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 24 of file CaliHVScanRatioDat.cc.
References MillePedeFileConverter_cfg::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)
◆ setHVRatio()
void CaliHVScanRatioDat::setHVRatio |
( |
float |
c | ) |
|
|
inline |
◆ setHVRatioRMS()
void CaliHVScanRatioDat::setHVRatioRMS |
( |
float |
c | ) |
|
|
inline |
◆ setTaskStatus()
void CaliHVScanRatioDat::setTaskStatus |
( |
bool |
s | ) |
|
|
inline |
◆ writeDB()
Definition at line 39 of file CaliHVScanRatioDat.cc.
References MillePedeFileConverter_cfg::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)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_hvratio
float CaliHVScanRatioDat::m_hvratio |
|
private |
◆ m_hvratioRMS
float CaliHVScanRatioDat::m_hvratioRMS |
|
private |
◆ m_taskStatus
bool CaliHVScanRatioDat::m_taskStatus |
|
private |