#include <RunPNErrorsDat.h>
Definition at line 12 of file RunPNErrorsDat.h.
RunPNErrorsDat::RunPNErrorsDat |
( |
| ) |
|
Definition at line 12 of file RunPNErrorsDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunPNErrorsDat::~RunPNErrorsDat |
( |
| ) |
|
Definition at line 73 of file RunPNErrorsDat.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_pn_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, RunPNErrorsDat >
p;
107 dat.
setErrorBits( boost::lexical_cast<uint64_t>(rset->getString(7)) );
115 throw(std::runtime_error(
"RunPNErrorsDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement * m_readStmt
void setErrorBits(uint64_t bits)
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
uint64_t RunPNErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
std::string RunPNErrorsDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void RunPNErrorsDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 30 of file RunPNErrorsDat.cc.
References alignCSCRings::e.
38 m_writeStmt->setSQL(
"INSERT INTO run_pn_errors_dat (iov_id, logic_id, "
40 "VALUES (:iov_id, :logic_id, "
41 "to_number(:error_bits))");
43 throw(std::runtime_error(
"RunPNErrorsDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void RunPNErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
Definition at line 21 of file RunPNErrorsDat.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 RunPNErrorsDat.cc.
References alignCSCRings::e, and o2o::iov.
56 if (!iovID) {
throw(std::runtime_error(
"RunPNErrorsDat::writeDB: IOV not in DB")); }
59 if (!logicID) {
throw(std::runtime_error(
"RunPNErrorsDat::writeDB: Bad EcalLogicID")); }
67 throw(std::runtime_error(
"RunPNErrorsDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
uint64_t getErrorBits() const
oracle::occi::SQLException SQLException
void checkConnection() const
uint64_t RunPNErrorsDat::m_errorBits |
|
private |