#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 65 of file CaliGeneralDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, setComments(), and setNumEvents().
78 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
79 "d.num_events, d.comments "
80 "FROM channelview cv JOIN cali_general_dat d "
81 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
82 "WHERE d.iov_id = :iov_id");
86 std::pair<EcalLogicID, CaliGeneralDat>
p;
88 while (rset->next()) {
102 }
catch (SQLException&
e) {
103 throw(std::runtime_error(
"CaliGeneralDat::fetchData(): " + e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setComments(std::string comments)
oracle::occi::Statement * m_readStmt
static std::vector< std::string > checklist dat
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 |
Implements IDataItem.
Definition at line 23 of file CaliGeneralDat.cc.
References alignCSCRings::e.
29 "INSERT INTO cali_general_dat (iov_id, logic_id, "
30 "num_events, comments) "
31 "VALUES (:iov_id, :logic_id, "
33 }
catch (SQLException&
e) {
34 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 38 of file CaliGeneralDat.cc.
References alignCSCRings::e, and B2GTnPMonitor_cfi::item.
44 throw(std::runtime_error(
"CaliGeneralDat::writeDB: IOV not in DB"));
49 throw(std::runtime_error(
"CaliGeneralDat::writeDB: Bad EcalLogicID"));
60 }
catch (SQLException&
e) {
61 throw(std::runtime_error(
"CaliGeneralDat::writeDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
std::string getComments() const
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
std::string CaliGeneralDat::m_comments |
|
private |
int CaliGeneralDat::m_numEvents |
|
private |