#include <RunCrystalErrorsDat.h>
Definition at line 12 of file RunCrystalErrorsDat.h.
RunCrystalErrorsDat::RunCrystalErrorsDat |
( |
| ) |
|
Definition at line 12 of file RunCrystalErrorsDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
RunCrystalErrorsDat::~RunCrystalErrorsDat |
( |
| ) |
|
Definition at line 71 of file RunCrystalErrorsDat.cc.
References alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
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);
95 std::pair< EcalLogicID, RunCrystalErrorsDat >
p;
105 dat.
setErrorBits( boost::lexical_cast<uint64_t>(rset->getString(7)) );
110 m_conn->terminateStatement(stmt);
113 throw(std::runtime_error(
"RunCrystalErrorsDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void setErrorBits(uint64_t bits)
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
uint64_t RunCrystalErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
std::string RunCrystalErrorsDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void RunCrystalErrorsDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 28 of file RunCrystalErrorsDat.cc.
References alignCSCRings::e.
36 m_writeStmt->setSQL(
"INSERT INTO run_crystal_errors_dat (iov_id, logic_id, "
38 "VALUES (:iov_id, :logic_id, "
39 "to_number(:error_bits))");
41 throw(std::runtime_error(
"RunCrystalErrorsDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
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 alignCSCRings::e, and o2o::iov.
54 if (!iovID) {
throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB: IOV not in DB")); }
57 if (!logicID) {
throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB: Bad EcalLogicID")); }
65 throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
uint64_t getErrorBits() const
void checkConnection() const
uint64_t RunCrystalErrorsDat::m_errorBits |
|
private |