#include <RunH4TablePositionDat.h>
Definition at line 11 of file RunH4TablePositionDat.h.
RunH4TablePositionDat::RunH4TablePositionDat |
( |
| ) |
|
Definition at line 11 of file RunH4TablePositionDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunH4TablePositionDat::~RunH4TablePositionDat |
( |
| ) |
|
Definition at line 78 of file RunH4TablePositionDat.cc.
References alignCSCRings::e, edm::pset::fillMap(), o2o::iov, AlCaHLTBitMon_ParallelJobs::p, setNumEvents(), setNumSpills(), setTableX(), and setTableY().
93 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
94 "d.table_x, d.table_y, d.number_of_spills, d.number_of_events "
95 "FROM channelview cv JOIN run_h4_table_position_dat d "
96 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
97 "WHERE d.iov_id = :iov_id");
101 std::pair< EcalLogicID, RunH4TablePositionDat >
p;
103 while(rset->next()) {
121 throw(std::runtime_error(
"RunH4TablePositionDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void setNumSpills(int num)
oracle::occi::Statement * m_readStmt
oracle::occi::ResultSet ResultSet
void setNumEvents(int num)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void fillMap(Registry *reg, regmap_type &fillme)
void checkConnection() const
int RunH4TablePositionDat::getNumEvents |
( |
| ) |
const |
|
inline |
int RunH4TablePositionDat::getNumSpills |
( |
| ) |
const |
|
inline |
std::string RunH4TablePositionDat::getTable |
( |
| ) |
|
|
inlinevirtual |
int RunH4TablePositionDat::getTableX |
( |
| ) |
const |
|
inline |
int RunH4TablePositionDat::getTableY |
( |
| ) |
const |
|
inline |
void RunH4TablePositionDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 32 of file RunH4TablePositionDat.cc.
References alignCSCRings::e.
39 m_writeStmt->setSQL(
"INSERT INTO run_h4_table_position_dat (iov_id, logic_id, "
40 "table_x, table_y, number_of_spills, number_of_events ) "
41 "VALUES (:iov_id, :logic_id, "
42 ":table_x, :table_y, :number_of_spills, :number_of_events)");
44 throw(std::runtime_error(
"RunH4TablePositionDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void RunH4TablePositionDat::setNumEvents |
( |
int |
num | ) |
|
|
inline |
void RunH4TablePositionDat::setNumSpills |
( |
int |
num | ) |
|
|
inline |
void RunH4TablePositionDat::setTableX |
( |
int |
num | ) |
|
|
inline |
void RunH4TablePositionDat::setTableY |
( |
int |
num | ) |
|
|
inline |
Definition at line 50 of file RunH4TablePositionDat.cc.
References alignCSCRings::e, and o2o::iov.
57 if (!iovID) {
throw(std::runtime_error(
"RunH4TablePositionDat::writeDB: IOV not in DB")); }
60 if (!logicID) {
throw(std::runtime_error(
"RunH4TablePositionDat::writeDB: Bad EcalLogicID")); }
72 throw(std::runtime_error(
"RunH4TablePositionDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
void checkConnection() const
int RunH4TablePositionDat::m_numEvents |
|
private |
int RunH4TablePositionDat::m_numSpills |
|
private |
int RunH4TablePositionDat::m_table_x |
|
private |
int RunH4TablePositionDat::m_table_y |
|
private |