#include <MODCCSTRDat.h>
Definition at line 11 of file MODCCSTRDat.h.
MODCCSTRDat::MODCCSTRDat |
( |
| ) |
|
Definition at line 11 of file MODCCSTRDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
MODCCSTRDat::~MODCCSTRDat |
( |
| ) |
|
|
override |
Definition at line 62 of file MODCCSTRDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, and setWord().
75 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
77 "FROM channelview cv JOIN OD_CCS_TR_dat d "
78 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
79 "WHERE d.iov_id = :iov_id");
83 std::pair<EcalLogicID, MODCCSTRDat>
p;
85 while (rset->next()) {
98 }
catch (SQLException&
e) {
99 throw(std::runtime_error(
"MODCCSTRDat::fetchData(): " + e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchID() noexcept(false) override
oracle::occi::Statement * m_readStmt
static std::vector< std::string > checklist dat
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
std::string MODCCSTRDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int MODCCSTRDat::getWord |
( |
| ) |
const |
|
inline |
void MODCCSTRDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file MODCCSTRDat.cc.
References alignCSCRings::e.
28 "INSERT INTO OD_CCS_TR_dat (iov_id, logic_id, "
30 "VALUES (:iov_id, :logic_id, "
32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"MODCCSTRDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void MODCCSTRDat::setWord |
( |
int |
x | ) |
|
|
inline |
Definition at line 103 of file MODCCSTRDat.cc.
References submitPVResolutionJobs::count, data, alignCSCRings::e, EcalLogicID::getLogicID(), getWord(), AlCaHLTBitMon_ParallelJobs::p, and x.
109 throw(std::runtime_error(
"MODCCSTRDat::writeArrayDB: IOV not in DB"));
112 int nrows =
data->size();
113 int* ids =
new int[nrows];
114 int* iovid_vec =
new int[nrows];
115 int* xx =
new int[nrows];
117 ub2* ids_len =
new ub2[nrows];
118 ub2* iov_len =
new ub2[nrows];
119 ub2* x_len =
new ub2[nrows];
124 typedef map<EcalLogicID, MODCCSTRDat>::const_iterator CI;
125 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
126 channel = &(
p->first);
129 throw(std::runtime_error(
"MODCCSTRDat::writeArrayDB: Bad EcalLogicID"));
131 ids[
count] = logicID;
132 iovid_vec[
count] = iovID;
134 dataitem = &(
p->second);
149 m_writeStmt->setDataBuffer(1, (dvoid*)iovid_vec, OCCIINT,
sizeof(iovid_vec[0]), iov_len);
150 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
151 m_writeStmt->setDataBuffer(3, (dvoid*)xx, OCCIINT,
sizeof(xx[0]), x_len);
163 }
catch (SQLException&
e) {
164 throw(std::runtime_error(
"MonPedestalsDat::writeArrayDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
char data[epos_bytes_allocation]
Definition at line 37 of file MODCCSTRDat.cc.
References alignCSCRings::e, and B2GTnPMonitor_cfi::item.
43 throw(std::runtime_error(
"MODCCSTRDat::writeDB: IOV not in DB"));
48 throw(std::runtime_error(
"MODCCSTRDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"MODCCSTRDat::writeDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override