#include <CaliHVScanRatioDat.h>
Definition at line 12 of file CaliHVScanRatioDat.h.
CaliHVScanRatioDat::CaliHVScanRatioDat |
( |
| ) |
|
Definition at line 12 of file CaliHVScanRatioDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
CaliHVScanRatioDat::~CaliHVScanRatioDat |
( |
| ) |
|
Definition at line 77 of file CaliHVScanRatioDat.cc.
References dat, alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, setHVRatio(), setHVRatioRMS(), and setTaskStatus().
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);
100 std::pair< EcalLogicID, CaliHVScanRatioDat >
p;
102 while(rset->next()) {
118 throw(std::runtime_error(
"CaliHVScanRatioDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setTaskStatus(bool s)
oracle::occi::SQLException SQLException
static std::vector< std::string > checklist dat
oracle::occi::ResultSet ResultSet
void setHVRatioRMS(float c)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
float CaliHVScanRatioDat::getHVRatio |
( |
| ) |
const |
|
inline |
float CaliHVScanRatioDat::getHVRatioRMS |
( |
| ) |
const |
|
inline |
std::string CaliHVScanRatioDat::getTable |
( |
| ) |
|
|
inlinevirtual |
bool CaliHVScanRatioDat::getTaskStatus |
( |
| ) |
const |
|
inline |
void CaliHVScanRatioDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 31 of file CaliHVScanRatioDat.cc.
References alignCSCRings::e.
38 m_writeStmt->setSQL(
"INSERT INTO cali_hv_scan_ratio_dat (iov_id, logic_id, "
39 "hvratio, hvratio_rms, task_status) "
40 "VALUES (:iov_id, :logic_id, "
43 throw(std::runtime_error(
"CaliHVScanRatioDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
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 alignCSCRings::e, and o2o::iov.
56 if (!iovID) {
throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB: IOV not in DB")); }
59 if (!logicID) {
throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB: Bad EcalLogicID")); }
71 throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
bool getTaskStatus() const
oracle::occi::SQLException SQLException
float getHVRatioRMS() const
void checkConnection() const
float CaliHVScanRatioDat::m_hvratio |
|
private |
float CaliHVScanRatioDat::m_hvratioRMS |
|
private |
bool CaliHVScanRatioDat::m_taskStatus |
|
private |