#include <MODDCCOperationDat.h>
Definition at line 11 of file MODDCCOperationDat.h.
◆ MODDCCOperationDat()
MODDCCOperationDat::MODDCCOperationDat |
( |
| ) |
|
Definition at line 11 of file MODDCCOperationDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
◆ ~MODDCCOperationDat()
MODDCCOperationDat::~MODDCCOperationDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 64 of file MODDCCOperationDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setOperation().
77 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 79 "FROM channelview cv JOIN " +
82 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 83 "WHERE d.iov_id = :iov_id");
87 std::pair<EcalLogicID, MODDCCOperationDat>
p;
89 while (rset->next()) {
102 }
catch (SQLException&
e) {
103 throw(std::runtime_error(
"MODDCCOperationDat::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
std::string getTable() override
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void setOperation(std::string x)
◆ getOperation()
std::string MODDCCOperationDat::getOperation |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string MODDCCOperationDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void MODDCCOperationDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file MODDCCOperationDat.cc.
References MillePedeFileConverter_cfg::e.
28 " (iov_id, logic_id, " 30 "VALUES (:iov_id, :logic_id, " 32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"MODDCCOperationDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
std::string getTable() override
◆ setOperation()
void MODDCCOperationDat::setOperation |
( |
std::string |
x | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 107 of file MODDCCOperationDat.cc.
References submitPVResolutionJobs::count, data, MillePedeFileConverter_cfg::e, EcalLogicID::getLogicID(), getOperation(), AlCaHLTBitMon_ParallelJobs::p, AlCaHLTBitMon_QueryRunRegistry::string, x, and geometryCSVtoXML::xx.
114 throw(std::runtime_error(
"MODDCCOperationDat::writeArrayDB: IOV not in DB"));
117 int nrows =
data->size();
118 int* ids =
new int[nrows];
119 int* iovid_vec =
new int[nrows];
122 ub2* ids_len =
new ub2[nrows];
123 ub2* iov_len =
new ub2[nrows];
124 ub2* x_len =
new ub2[nrows];
129 typedef map<EcalLogicID, MODDCCOperationDat>::const_iterator CI;
130 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
131 channel = &(
p->first);
134 throw(std::runtime_error(
"MODDCCOperationDat::writeArrayDB: Bad EcalLogicID"));
136 ids[
count] = logicID;
137 iovid_vec[
count] = iovID;
139 dataitem = &(
p->second);
154 m_writeStmt->setDataBuffer(1, (dvoid*)iovid_vec, OCCIINT,
sizeof(iovid_vec[0]), iov_len);
155 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
156 m_writeStmt->setDataBuffer(3, (dvoid*)
xx, OCCISTRING,
sizeof(
xx[0]), x_len);
168 }
catch (SQLException&
e) {
169 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
std::string getOperation() const
char data[epos_bytes_allocation]
◆ writeDB()
Definition at line 37 of file MODDCCOperationDat.cc.
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
45 throw(std::runtime_error(
"MODDCCOperationDat::writeDB: IOV not in DB"));
50 throw(std::runtime_error(
"MODDCCOperationDat::writeDB: Bad EcalLogicID"));
59 }
catch (SQLException&
e) {
60 throw(std::runtime_error(
"MODDCCOperationDat::writeDB(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_word
std::string MODDCCOperationDat::m_word |
|
private |