#include <ODWeightsSamplesDat.h>
Definition at line 12 of file ODWeightsSamplesDat.h.
ODWeightsSamplesDat::ODWeightsSamplesDat |
( |
| ) |
|
ODWeightsSamplesDat::~ODWeightsSamplesDat |
( |
| ) |
|
Definition at line 64 of file ODWeightsSamplesDat.cc.
References gather_cfg::cout, o2o::iov, L1TEmulatorMonitor_cff::p, setFedId(), setSampleId(), and setWeightNumber().
77 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE rec_id = :rec_id order by fed_id, sample_id");
94 throw(std::runtime_error(
"ODWeightsSamplesDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setWeightNumber(int dac)
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void setSampleId(int dac)
void checkConnection() const
int ODWeightsSamplesDat::getFedId |
( |
| ) |
const |
|
inline |
int ODWeightsSamplesDat::getId |
( |
| ) |
const |
|
inline |
int ODWeightsSamplesDat::getSampleId |
( |
| ) |
const |
|
inline |
std::string ODWeightsSamplesDat::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODWeightsSamplesDat::getWeightNumber |
( |
| ) |
const |
|
inline |
void ODWeightsSamplesDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IODConfig.
Definition at line 29 of file ODWeightsSamplesDat.cc.
36 m_writeStmt->setSQL(
"INSERT INTO "+
getTable()+
" (rec_id, fed_id, sample_id, weight_number ) "
37 "VALUES (:1, :2, :3, :4 )");
39 throw(std::runtime_error(
"ODWeightsSamplesDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
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 100 of file ODWeightsSamplesDat.cc.
References prof2calltree::count, runTheMatrix::data, getFedId(), getSampleId(), getWeightNumber(), and o2o::iov.
106 if (!iovID) {
throw(std::runtime_error(
"ODDelays::writeArrayDB: ODFEDelaysInfo not in DB")); }
109 int nrows=
data.size();
110 int* ids=
new int[nrows];
111 int* xx=
new int[nrows];
112 int* yy=
new int[nrows];
113 int* zz=
new int[nrows];
115 ub2* ids_len=
new ub2[nrows];
116 ub2* x_len=
new ub2[nrows];
117 ub2* y_len=
new ub2[nrows];
118 ub2* z_len=
new ub2[nrows];
122 int n_data= (int)
data.size();
140 m_writeStmt->setDataBuffer(1, (dvoid*)ids, OCCIINT,
sizeof(ids[0]),ids_len);
141 m_writeStmt->setDataBuffer(2, (dvoid*)xx, OCCIINT ,
sizeof(xx[0]), x_len );
142 m_writeStmt->setDataBuffer(3, (dvoid*)yy, OCCIINT ,
sizeof(yy[0]), y_len );
143 m_writeStmt->setDataBuffer(4, (dvoid*)zz, OCCIINT ,
sizeof(zz[0]), z_len );
159 throw(std::runtime_error(
"ODWeightsSamplesDat::writeArrayDB(): "+e.getMessage()));
oracle::occi::SQLException SQLException
int getWeightNumber() const
void checkConnection() const
Definition at line 45 of file ODWeightsSamplesDat.cc.
58 throw(std::runtime_error(
"ODWeightsSamplesDat::writeDB(): "+e.getMessage()));
oracle::occi::SQLException SQLException
int getWeightNumber() const
void checkConnection() const
int ODWeightsSamplesDat::m_fed |
|
private |
int ODWeightsSamplesDat::m_ID |
|
private |
int ODWeightsSamplesDat::m_sn |
|
private |
int ODWeightsSamplesDat::m_ss |
|
private |