#include <RunTTErrorsDat.h>
Definition at line 12 of file RunTTErrorsDat.h.
RunTTErrorsDat::RunTTErrorsDat |
( |
| ) |
|
Definition at line 11 of file RunTTErrorsDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunTTErrorsDat::~RunTTErrorsDat |
( |
| ) |
|
|
override |
Definition at line 62 of file RunTTErrorsDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
76 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
77 "to_char(d.error_bits) "
78 "FROM channelview cv JOIN run_tt_errors_dat d "
79 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
80 "WHERE d.iov_id = :iov_id");
84 std::pair<EcalLogicID, RunTTErrorsDat>
p;
86 while (rset->next()) {
100 }
catch (SQLException&
e) {
101 throw(std::runtime_error(
"RunTTErrorsDat::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
static std::vector< std::string > checklist dat
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
uint64_t RunTTErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
std::string RunTTErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void RunTTErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file RunTTErrorsDat.cc.
References alignCSCRings::e.
29 "INSERT INTO run_tt_errors_dat (iov_id, logic_id, "
31 "VALUES (:iov_id, :logic_id, "
32 "to_number(:error_bits))");
33 }
catch (SQLException&
e) {
34 throw(std::runtime_error(
"RunTTErrorsDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void RunTTErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
Definition at line 38 of file RunTTErrorsDat.cc.
References alignCSCRings::e, and B2GTnPMonitor_cfi::item.
44 throw(std::runtime_error(
"RunTTErrorsDat::writeDB: IOV not in DB"));
49 throw(std::runtime_error(
"RunTTErrorsDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"RunTTErrorsDat::writeDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
uint64_t getErrorBits() const
int fetchID() noexcept(false) override
uint64_t RunTTErrorsDat::m_errorBits |
|
private |