#include <RunCrystalErrorsDat.h>
Definition at line 12 of file RunCrystalErrorsDat.h.
RunCrystalErrorsDat::RunCrystalErrorsDat |
( |
| ) |
|
Definition at line 12 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 71 of file RunCrystalErrorsDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setErrorBits(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getErrorBits().
85 Statement* stmt =
m_conn->createStatement();
87 stmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 88 "to_char(d.error_bits) " 89 "FROM channelview cv JOIN run_crystal_errors_dat d " 90 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 91 "WHERE d.iov_id = :iov_id");
92 stmt->setInt(1, iovID);
93 ResultSet* rset = stmt->executeQuery();
95 std::pair< EcalLogicID, RunCrystalErrorsDat >
p;
103 getOraString(rset,6));
105 dat.
setErrorBits( boost::lexical_cast<uint64_t>(getOraString(rset,7)) );
110 m_conn->terminateStatement(stmt);
112 }
catch (SQLException &
e) {
113 throw(std::runtime_error(
std::string(
"RunCrystalErrorsDat::fetchData(): ")+getOraMessage(&e)));
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
uint64_t RunCrystalErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
std::string RunCrystalErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void RunCrystalErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void RunCrystalErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
Definition at line 21 of file RunCrystalErrorsDat.h.
References bits, and m_errorBits.
Referenced by fetchData().
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
Definition at line 47 of file RunCrystalErrorsDat.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getErrorBits().
54 if (!iovID) {
throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB: IOV not in DB")); }
57 if (!logicID) {
throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB: Bad EcalLogicID")); }
64 }
catch (SQLException &
e) {
65 throw(std::runtime_error(
std::string(
"RunCrystalErrorsDat::writeDB(): ")+getOraMessage(&e)));
oracle::occi::Statement * m_writeStmt
void checkPrepare() noexcept(false)
uint64_t getErrorBits() const
void checkConnection() const noexcept(false)
int fetchID() noexcept(false) override
uint64_t RunCrystalErrorsDat::m_errorBits |
|
private |