#include <CaliGeneralDat.h>
Definition at line 12 of file CaliGeneralDat.h.
◆ CaliGeneralDat()
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::~CaliGeneralDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 65 of file CaliGeneralDat.cc.
References MillePedeFileConverter_cfg::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
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getComments()
std::string CaliGeneralDat::getComments |
( |
| ) |
const |
|
inline |
◆ getNumEvents()
int CaliGeneralDat::getNumEvents |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string CaliGeneralDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void CaliGeneralDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 23 of file CaliGeneralDat.cc.
References MillePedeFileConverter_cfg::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)
◆ setComments()
void CaliGeneralDat::setComments |
( |
std::string |
comments | ) |
|
|
inline |
◆ setNumEvents()
void CaliGeneralDat::setNumEvents |
( |
int |
n | ) |
|
|
inline |
◆ writeDB()
Definition at line 38 of file CaliGeneralDat.cc.
References MillePedeFileConverter_cfg::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
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_comments
std::string CaliGeneralDat::m_comments |
|
private |
◆ m_numEvents
int CaliGeneralDat::m_numEvents |
|
private |