#include <RunPNErrorsDat.h>
Definition at line 12 of file RunPNErrorsDat.h.
◆ RunPNErrorsDat()
RunPNErrorsDat::RunPNErrorsDat |
( |
| ) |
|
Definition at line 11 of file RunPNErrorsDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
◆ ~RunPNErrorsDat()
RunPNErrorsDat::~RunPNErrorsDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 62 of file RunPNErrorsDat.cc.
References MillePedeFileConverter_cfg::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_pn_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, RunPNErrorsDat>
p;
86 while (rset->next()) {
100 }
catch (SQLException&
e) {
101 throw(std::runtime_error(
"RunPNErrorsDat::fetchData(): " +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement * m_readStmt
void setErrorBits(uint64_t bits)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getErrorBits()
uint64_t RunPNErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunPNErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunPNErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file RunPNErrorsDat.cc.
References MillePedeFileConverter_cfg::e.
29 "INSERT INTO run_pn_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(
"RunPNErrorsDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
◆ setErrorBits()
void RunPNErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
◆ writeDB()
Definition at line 38 of file RunPNErrorsDat.cc.
References MillePedeFileConverter_cfg::e, B2GTnPMonitor_cfi::item, and to_string().
44 throw(std::runtime_error(
"RunPNErrorsDat::writeDB: IOV not in DB"));
49 throw(std::runtime_error(
"RunPNErrorsDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"RunPNErrorsDat::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 RunPNErrorsDat::m_errorBits |
|
private |