#include <RunCrystalErrorsDat.h>
Definition at line 12 of file RunCrystalErrorsDat.h.
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 |
( |
| ) |
|
|
override |
Definition at line 62 of file RunCrystalErrorsDat.cc.
References dat, alignCSCRings::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)
static std::vector< std::string > checklist dat
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
uint64_t RunCrystalErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
std::string RunCrystalErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void RunCrystalErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 20 of file RunCrystalErrorsDat.cc.
References alignCSCRings::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)
void RunCrystalErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
Definition at line 36 of file RunCrystalErrorsDat.cc.
References alignCSCRings::e, and B2GTnPMonitor_cfi::item.
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)
uint64_t getErrorBits() const
int fetchID() noexcept(false) override
uint64_t RunCrystalErrorsDat::m_errorBits |
|
private |