#include <CaliGeneralDat.h>
Definition at line 12 of file CaliGeneralDat.h.
CaliGeneralDat::CaliGeneralDat |
( |
| ) |
|
Definition at line 12 of file CaliGeneralDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
CaliGeneralDat::~CaliGeneralDat |
( |
| ) |
|
Definition at line 75 of file CaliGeneralDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setComments(), and setNumEvents().
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()) {
114 }
catch (SQLException &
e) {
115 throw(std::runtime_error(
"CaliGeneralDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setComments(std::string comments)
int fetchID() noexcept(false)
void checkConnection() const noexcept(false)
oracle::occi::Statement * m_readStmt
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
std::string CaliGeneralDat::getComments |
( |
| ) |
const |
|
inline |
int CaliGeneralDat::getNumEvents |
( |
| ) |
const |
|
inline |
std::string CaliGeneralDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void CaliGeneralDat::prepareWrite |
( |
| ) |
|
|
privatevirtualnoexcept |
Implements IDataItem.
Definition at line 30 of file CaliGeneralDat.cc.
References MillePedeFileConverter_cfg::e.
Referenced by getComments().
37 m_writeStmt->setSQL(
"INSERT INTO cali_general_dat (iov_id, logic_id, " 38 "num_events, comments) " 39 "VALUES (:iov_id, :logic_id, " 41 }
catch (SQLException &
e) {
42 throw(std::runtime_error(
"CaliGeneralDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
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.
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(
"CaliGeneralDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
std::string getComments() const
void checkPrepare() noexcept(false)
int fetchID() noexcept(false)
void checkConnection() const noexcept(false)
std::string CaliGeneralDat::m_comments |
|
private |
int CaliGeneralDat::m_numEvents |
|
private |