#include <ODWeightsSamplesDat.h>
Definition at line 12 of file ODWeightsSamplesDat.h.
ODWeightsSamplesDat::ODWeightsSamplesDat |
( |
| ) |
|
Definition at line 10 of file ODWeightsSamplesDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODWeightsSamplesDat::~ODWeightsSamplesDat |
( |
| ) |
|
|
override |
void ODWeightsSamplesDat::clear |
( |
void |
| ) |
|
|
private |
Definition at line 55 of file ODWeightsSamplesDat.cc.
References gather_cfg::cout, dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, setFedId(), setSampleId(), and setWeightNumber().
66 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE rec_id = :rec_id order by fed_id, sample_id");
72 while (rset->next()) {
82 throw(std::runtime_error(
"ODWeightsSamplesDat::fetchData(): " + e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setWeightNumber(int dac)
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
static std::vector< std::string > checklist dat
oracle::occi::SQLException SQLException
std::string getTable() override
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void setSampleId(int dac)
Definition at line 86 of file ODWeightsSamplesDat.cc.
References alignCSCRings::e, and AlCaHLTBitMon_ParallelJobs::p.
90 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE rec_id = :1 order by fed_id, sample_id");
94 while (rset->next()) {
101 throw(std::runtime_error(
"ODWeightsSamplesDat::fetchData(): " + e.getMessage()));
void setWeightNumber(int dac)
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
std::string getTable() override
void setSampleId(int dac)
int ODWeightsSamplesDat::getFedId |
( |
| ) |
const |
|
inline |
int ODWeightsSamplesDat::getId |
( |
void |
| ) |
const |
|
inline |
int ODWeightsSamplesDat::getSampleId |
( |
| ) |
const |
|
inline |
std::string ODWeightsSamplesDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODWeightsSamplesDat::getWeightNumber |
( |
| ) |
const |
|
inline |
void ODWeightsSamplesDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 27 of file ODWeightsSamplesDat.cc.
References alignCSCRings::e.
33 " (rec_id, fed_id, sample_id, weight_number ) "
34 "VALUES (:1, :2, :3, :4 )");
36 throw(std::runtime_error(
"ODWeightsSamplesDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
std::string getTable() override
void ODWeightsSamplesDat::setFedId |
( |
int |
dac | ) |
|
|
inline |
void ODWeightsSamplesDat::setId |
( |
int |
dac | ) |
|
|
inline |
void ODWeightsSamplesDat::setSampleId |
( |
int |
dac | ) |
|
|
inline |
void ODWeightsSamplesDat::setWeightNumber |
( |
int |
dac | ) |
|
|
inline |
Definition at line 107 of file ODWeightsSamplesDat.cc.
References submitPVResolutionJobs::count, data, alignCSCRings::e, getFedId(), getSampleId(), and getWeightNumber().
113 throw(std::runtime_error(
"ODDelays::writeArrayDB: ODFEDelaysInfo not in DB"));
116 int nrows =
data.size();
117 int* ids =
new int[nrows];
118 int* xx =
new int[nrows];
119 int* yy =
new int[nrows];
120 int* zz =
new int[nrows];
122 ub2* ids_len =
new ub2[nrows];
123 ub2* x_len =
new ub2[nrows];
124 ub2* y_len =
new ub2[nrows];
125 ub2* z_len =
new ub2[nrows];
129 int n_data = (int)
data.size();
144 m_writeStmt->setDataBuffer(1, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
145 m_writeStmt->setDataBuffer(2, (dvoid*)xx, OCCIINT,
sizeof(xx[0]), x_len);
146 m_writeStmt->setDataBuffer(3, (dvoid*)yy, OCCIINT,
sizeof(yy[0]), y_len);
147 m_writeStmt->setDataBuffer(4, (dvoid*)zz, OCCIINT,
sizeof(zz[0]), z_len);
162 throw(std::runtime_error(
"ODWeightsSamplesDat::writeArrayDB(): " + e.getMessage()));
void checkConnection() const noexcept(false)
int getWeightNumber() const
int fetchID() noexcept(false)
char data[epos_bytes_allocation]
oracle::occi::SQLException SQLException
int ODWeightsSamplesDat::m_fed |
|
private |
int ODWeightsSamplesDat::m_ID |
|
private |
int ODWeightsSamplesDat::m_sn |
|
private |
int ODWeightsSamplesDat::m_ss |
|
private |