#include <RunMemChErrorsDat.h>
Definition at line 12 of file RunMemChErrorsDat.h.
◆ RunMemChErrorsDat()
RunMemChErrorsDat::RunMemChErrorsDat |
( |
| ) |
|
Definition at line 11 of file RunMemChErrorsDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
◆ ~RunMemChErrorsDat()
RunMemChErrorsDat::~RunMemChErrorsDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 61 of file RunMemChErrorsDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
75 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 76 "to_char(d.error_bits) " 77 "FROM channelview cv JOIN run_mem_ch_errors_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, RunMemChErrorsDat>
p;
85 while (rset->next()) {
99 }
catch (SQLException&
e) {
100 throw(std::runtime_error(
"RunMemChErrorsDat::fetchData(): " +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setErrorBits(uint64_t bits)
oracle::occi::Statement * m_readStmt
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getErrorBits()
uint64_t RunMemChErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunMemChErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunMemChErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 21 of file RunMemChErrorsDat.cc.
References MillePedeFileConverter_cfg::e.
28 "INSERT INTO run_mem_ch_errors_dat (iov_id, logic_id, " 30 "VALUES (:iov_id, :logic_id, " 31 "to_number(:error_bits))");
32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"RunMemChErrorsDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
◆ setErrorBits()
void RunMemChErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
◆ writeDB()
Definition at line 37 of file RunMemChErrorsDat.cc.
References MillePedeFileConverter_cfg::e, B2GTnPMonitor_cfi::item, and to_string().
43 throw(std::runtime_error(
"RunMemChErrorsDat::writeDB: IOV not in DB"));
48 throw(std::runtime_error(
"RunMemChErrorsDat::writeDB: Bad EcalLogicID"));
56 }
catch (SQLException&
e) {
57 throw(std::runtime_error(
"RunMemChErrorsDat::writeDB(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
static std::string to_string(const XMLCh *ch)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_errorBits
uint64_t RunMemChErrorsDat::m_errorBits |
|
private |