#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 70 of file RunH4TablePositionDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setNumEvents(), setNumSpills(), setTableX(), and setTableY().
Referenced by getNumEvents().
83 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 84 "d.table_x, d.table_y, d.number_of_spills, d.number_of_events " 85 "FROM channelview cv JOIN run_h4_table_position_dat d " 86 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 87 "WHERE d.iov_id = :iov_id");
91 std::pair<EcalLogicID, RunH4TablePositionDat>
p;
93 while (rset->next()) {
110 }
catch (SQLException&
e) {
111 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 25 of file RunH4TablePositionDat.cc.
References MillePedeFileConverter_cfg::e.
Referenced by getNumEvents().
31 "INSERT INTO run_h4_table_position_dat (iov_id, logic_id, " 32 "table_x, table_y, number_of_spills, number_of_events ) " 33 "VALUES (:iov_id, :logic_id, " 34 ":table_x, :table_y, :number_of_spills, :number_of_events)");
35 }
catch (SQLException&
e) {
36 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 40 of file RunH4TablePositionDat.cc.
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
Referenced by getNumEvents().
48 throw(std::runtime_error(
"RunH4TablePositionDat::writeDB: IOV not in DB"));
53 throw(std::runtime_error(
"RunH4TablePositionDat::writeDB: Bad EcalLogicID"));
65 }
catch (SQLException&
e) {
66 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 |