#include <RunCrystalErrorsDat.h>
Definition at line 12 of file RunCrystalErrorsDat.h.
◆ RunCrystalErrorsDat()
RunCrystalErrorsDat::RunCrystalErrorsDat |
( |
| ) |
|
Definition at line 11 of file RunCrystalErrorsDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
◆ ~RunCrystalErrorsDat()
RunCrystalErrorsDat::~RunCrystalErrorsDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 62 of file RunCrystalErrorsDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
74 Statement* stmt =
m_conn->createStatement();
77 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 78 "to_char(d.error_bits) " 79 "FROM channelview cv JOIN run_crystal_errors_dat d " 80 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 81 "WHERE d.iov_id = :iov_id");
82 stmt->setInt(1, iovID);
83 ResultSet* rset = stmt->executeQuery();
85 std::pair<EcalLogicID, RunCrystalErrorsDat>
p;
87 while (rset->next()) {
100 m_conn->terminateStatement(stmt);
102 }
catch (SQLException&
e) {
103 throw(std::runtime_error(
"RunCrystalErrorsDat::fetchData(): " +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setErrorBits(uint64_t bits)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getErrorBits()
uint64_t RunCrystalErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunCrystalErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunCrystalErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 20 of file RunCrystalErrorsDat.cc.
References MillePedeFileConverter_cfg::e.
27 "INSERT INTO run_crystal_errors_dat (iov_id, logic_id, " 29 "VALUES (:iov_id, :logic_id, " 30 "to_number(:error_bits))");
31 }
catch (SQLException&
e) {
32 throw(std::runtime_error(
"RunCrystalErrorsDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
◆ setErrorBits()
void RunCrystalErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
◆ writeDB()
Definition at line 36 of file RunCrystalErrorsDat.cc.
References MillePedeFileConverter_cfg::e, B2GTnPMonitor_cfi::item, and to_string().
44 throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB: IOV not in DB"));
49 throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"RunCrystalErrorsDat::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 RunCrystalErrorsDat::m_errorBits |
|
private |