#include <CaliGeneralDat.h>
Definition at line 12 of file CaliGeneralDat.h.
CaliGeneralDat::CaliGeneralDat |
( |
| ) |
|
Definition at line 12 of file CaliGeneralDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
CaliGeneralDat::~CaliGeneralDat |
( |
| ) |
|
|
override |
Definition at line 75 of file CaliGeneralDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setComments(), setNumEvents(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getComments().
90 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 91 "d.num_events, d.comments " 92 "FROM channelview cv JOIN cali_general_dat d " 93 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 94 "WHERE d.iov_id = :iov_id");
98 std::pair< EcalLogicID, CaliGeneralDat >
p;
100 while(rset->next()) {
106 getOraString(rset,6));
114 }
catch (SQLException &
e) {
115 throw(std::runtime_error(
std::string(
"CaliGeneralDat::fetchData(): ")+getOraMessage(&e)));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setComments(std::string comments)
void checkConnection() const noexcept(false)
oracle::occi::Statement * m_readStmt
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
std::string CaliGeneralDat::getComments |
( |
| ) |
const |
|
inline |
int CaliGeneralDat::getNumEvents |
( |
| ) |
const |
|
inline |
std::string CaliGeneralDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void CaliGeneralDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void CaliGeneralDat::setComments |
( |
std::string |
comments | ) |
|
|
inline |
void CaliGeneralDat::setNumEvents |
( |
int |
n | ) |
|
|
inline |
Definition at line 48 of file CaliGeneralDat.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getComments().
55 if (!iovID) {
throw(std::runtime_error(
"CaliGeneralDat::writeDB: IOV not in DB")); }
58 if (!logicID) {
throw(std::runtime_error(
"CaliGeneralDat::writeDB: Bad EcalLogicID")); }
68 }
catch (SQLException &
e) {
69 throw(std::runtime_error(
std::string(
"CaliGeneralDat::writeDB(): ")+getOraMessage(&e)));
oracle::occi::Statement * m_writeStmt
std::string getComments() const
void checkPrepare() noexcept(false)
void checkConnection() const noexcept(false)
int fetchID() noexcept(false) override
std::string CaliGeneralDat::m_comments |
|
private |
int CaliGeneralDat::m_numEvents |
|
private |