#include <RunH4TablePositionDat.h>
Definition at line 11 of file RunH4TablePositionDat.h.
RunH4TablePositionDat::RunH4TablePositionDat |
( |
| ) |
|
Definition at line 11 of file RunH4TablePositionDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunH4TablePositionDat::~RunH4TablePositionDat |
( |
| ) |
|
|
override |
Definition at line 78 of file RunH4TablePositionDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setNumEvents(), setNumSpills(), setTableX(), and setTableY().
Referenced by getNumEvents().
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()) {
120 }
catch (SQLException &
e) {
121 throw(std::runtime_error(
"RunH4TablePositionDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setNumSpills(int num)
oracle::occi::Statement * m_readStmt
void setNumEvents(int num)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
int RunH4TablePositionDat::getNumEvents |
( |
| ) |
const |
|
inline |
int RunH4TablePositionDat::getNumSpills |
( |
| ) |
const |
|
inline |
std::string RunH4TablePositionDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int RunH4TablePositionDat::getTableX |
( |
| ) |
const |
|
inline |
int RunH4TablePositionDat::getTableY |
( |
| ) |
const |
|
inline |
void RunH4TablePositionDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 32 of file RunH4TablePositionDat.cc.
References MillePedeFileConverter_cfg::e.
Referenced by getNumEvents().
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)");
43 }
catch (SQLException &
e) {
44 throw(std::runtime_error(
"RunH4TablePositionDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
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 MillePedeFileConverter_cfg::e.
Referenced by getNumEvents().
57 if (!iovID) {
throw(std::runtime_error(
"RunH4TablePositionDat::writeDB: IOV not in DB")); }
60 if (!logicID) {
throw(std::runtime_error(
"RunH4TablePositionDat::writeDB: Bad EcalLogicID")); }
71 }
catch (SQLException &
e) {
72 throw(std::runtime_error(
"RunH4TablePositionDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkPrepare() noexcept(false)
void checkConnection() const noexcept(false)
int fetchID() noexcept(false) override
int RunH4TablePositionDat::m_numEvents |
|
private |
int RunH4TablePositionDat::m_numSpills |
|
private |
int RunH4TablePositionDat::m_table_x |
|
private |
int RunH4TablePositionDat::m_table_y |
|
private |