#include <RunTTErrorsDat.h>
Definition at line 12 of file RunTTErrorsDat.h.
RunTTErrorsDat::RunTTErrorsDat |
( |
| ) |
|
Definition at line 12 of file RunTTErrorsDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunTTErrorsDat::~RunTTErrorsDat |
( |
| ) |
|
Definition at line 73 of file RunTTErrorsDat.cc.
References alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
89 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
90 "to_char(d.error_bits) "
91 "FROM channelview cv JOIN run_tt_errors_dat d "
92 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
93 "WHERE d.iov_id = :iov_id");
97 std::pair< EcalLogicID, RunTTErrorsDat >
p;
107 dat.
setErrorBits( boost::lexical_cast<uint64_t>(rset->getString(7)) );
114 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::SQLException SQLException
int fetchID() noexcept(false)
oracle::occi::Statement * m_readStmt
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
uint64_t RunTTErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
std::string RunTTErrorsDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void RunTTErrorsDat::prepareWrite |
( |
| ) |
|
|
privatevirtualnoexcept |
Implements IDataItem.
Definition at line 30 of file RunTTErrorsDat.cc.
References alignCSCRings::e.
38 m_writeStmt->setSQL(
"INSERT INTO run_tt_errors_dat (iov_id, logic_id, "
40 "VALUES (:iov_id, :logic_id, "
41 "to_number(:error_bits))");
43 throw(std::runtime_error(
"RunTTErrorsDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
void RunTTErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
Definition at line 21 of file RunTTErrorsDat.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 49 of file RunTTErrorsDat.cc.
References alignCSCRings::e, and o2o::iov.
56 if (!iovID) {
throw(std::runtime_error(
"RunTTErrorsDat::writeDB: IOV not in DB")); }
59 if (!logicID) {
throw(std::runtime_error(
"RunTTErrorsDat::writeDB: Bad EcalLogicID")); }
67 throw(std::runtime_error(
"RunTTErrorsDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
oracle::occi::SQLException SQLException
int fetchID() noexcept(false)
uint64_t getErrorBits() const
uint64_t RunTTErrorsDat::m_errorBits |
|
private |