#include <RunFEConfigDat.h>
Definition at line 12 of file RunFEConfigDat.h.
◆ RunFEConfigDat()
RunFEConfigDat::RunFEConfigDat |
( |
| ) |
|
Definition at line 11 of file RunFEConfigDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
◆ ~RunFEConfigDat()
RunFEConfigDat::~RunFEConfigDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 62 of file RunFEConfigDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setConfigId().
76 Statement* stmt =
m_conn->createStatement();
78 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 80 "FROM channelview cv JOIN run_FEConfig_dat d " 81 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 82 "WHERE d.iov_id = :iov_id");
83 stmt->setInt(1, iovID);
86 ResultSet* rset = stmt->executeQuery();
88 std::pair<EcalLogicID, RunFEConfigDat>
p;
90 while (rset->next()) {
104 m_conn->terminateStatement(stmt);
105 }
catch (SQLException&
e) {
106 throw(std::runtime_error(
"RunFEConfigDat::fetchData(): " +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getConfigId()
int RunFEConfigDat::getConfigId |
( |
| ) |
const |
|
inline |
◆ getDelays()
◆ getTable()
std::string RunFEConfigDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunFEConfigDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file RunFEConfigDat.cc.
References MillePedeFileConverter_cfg::e.
28 "INSERT INTO run_FEConfig_dat (iov_id, logic_id, " 30 "VALUES (:iov_id, :logic_id, " 32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"RunFEConfigDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
◆ setConfigId()
void RunFEConfigDat::setConfigId |
( |
int |
x | ) |
|
|
inline |
◆ writeDB()
Definition at line 37 of file RunFEConfigDat.cc.
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
43 throw(std::runtime_error(
"RunFEConfigDat::writeDB: IOV not in DB"));
48 throw(std::runtime_error(
"RunFEConfigDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"RunFEConfigDat::writeDB(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_config
int RunFEConfigDat::m_config |
|
private |