#include <ODVfeToRejectDat.h>
Definition at line 11 of file ODVfeToRejectDat.h.
ODVfeToRejectDat::ODVfeToRejectDat |
( |
| ) |
|
Definition at line 10 of file ODVfeToRejectDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODVfeToRejectDat::~ODVfeToRejectDat |
( |
| ) |
|
Definition at line 71 of file ODVfeToRejectDat.cc.
References gather_cfg::cout, alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, setFedId(), setGain(), setStatus(), setTTId(), and setVfeId().
84 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE rec_id = :rec_id order by fed_id, tt_id, vfe_id ");
104 throw(std::runtime_error(
"ODVfeToRejectDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
int ODVfeToRejectDat::getFedId |
( |
| ) |
const |
|
inline |
int ODVfeToRejectDat::getGain |
( |
| ) |
const |
|
inline |
int ODVfeToRejectDat::getId |
( |
| ) |
const |
|
inline |
int ODVfeToRejectDat::getStatus |
( |
void |
| ) |
const |
|
inline |
std::string ODVfeToRejectDat::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODVfeToRejectDat::getTTId |
( |
| ) |
const |
|
inline |
int ODVfeToRejectDat::getVfeId |
( |
| ) |
const |
|
inline |
void ODVfeToRejectDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IODConfig.
Definition at line 34 of file ODVfeToRejectDat.cc.
References alignCSCRings::e.
41 m_writeStmt->setSQL(
"INSERT INTO "+
getTable()+
" (rec_id, fed_id, tt_id, vfe_id, GAIN, STATUS ) "
42 "VALUES (:1, :2, :3, :4, :5 , :6 )");
44 throw(std::runtime_error(
"ODVfeToRejectDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void ODVfeToRejectDat::setFedId |
( |
int |
dac | ) |
|
|
inline |
void ODVfeToRejectDat::setGain |
( |
int |
dac | ) |
|
|
inline |
void ODVfeToRejectDat::setId |
( |
int |
dac | ) |
|
|
inline |
void ODVfeToRejectDat::setStatus |
( |
int |
dac | ) |
|
|
inline |
void ODVfeToRejectDat::setTTId |
( |
int |
dac | ) |
|
|
inline |
void ODVfeToRejectDat::setVfeId |
( |
int |
dac | ) |
|
|
inline |
Definition at line 110 of file ODVfeToRejectDat.cc.
References KineDebug3::count(), data, alignCSCRings::e, getFedId(), getGain(), getStatus(), getTTId(), getVfeId(), and o2o::iov.
116 if (!iovID) {
throw(std::runtime_error(
"ODDelays::writeArrayDB: ODFEDelaysInfo not in DB")); }
119 int nrows=
data.size();
120 int* ids=
new int[nrows];
121 int* xx=
new int[nrows];
122 int* yy=
new int[nrows];
123 int* zz=
new int[nrows];
124 int* ww=
new int[nrows];
125 int* st=
new int[nrows];
129 ub2* ids_len=
new ub2[nrows];
130 ub2* x_len=
new ub2[nrows];
131 ub2* y_len=
new ub2[nrows];
132 ub2* z_len=
new ub2[nrows];
133 ub2* w_len=
new ub2[nrows];
134 ub2* st_len=
new ub2[nrows];
161 m_writeStmt->setDataBuffer(1, (dvoid*)ids, OCCIINT,
sizeof(ids[0]),ids_len);
162 m_writeStmt->setDataBuffer(2, (dvoid*)xx, OCCIINT ,
sizeof(xx[0]), x_len );
163 m_writeStmt->setDataBuffer(3, (dvoid*)yy, OCCIINT ,
sizeof(yy[0]), y_len );
164 m_writeStmt->setDataBuffer(4, (dvoid*)zz, OCCIINT ,
sizeof(zz[0]), z_len );
165 m_writeStmt->setDataBuffer(5, (dvoid*)ww, OCCIINT ,
sizeof(ww[0]), w_len );
166 m_writeStmt->setDataBuffer(6, (dvoid*)st, OCCIINT ,
sizeof(st[0]), st_len );
187 throw(std::runtime_error(
"ODVfeToRejectDat::writeArrayDB(): "+e.getMessage()));
oracle::occi::SQLException SQLException
char data[epos_bytes_allocation]
void checkConnection() const
Definition at line 50 of file ODVfeToRejectDat.cc.
References alignCSCRings::e.
65 throw(std::runtime_error(
"ODVfeToRejectDat::writeDB(): "+e.getMessage()));
oracle::occi::SQLException SQLException
void checkConnection() const
int ODVfeToRejectDat::m_fed |
|
private |
int ODVfeToRejectDat::m_gain |
|
private |
int ODVfeToRejectDat::m_ID |
|
private |
int ODVfeToRejectDat::m_sta |
|
private |
int ODVfeToRejectDat::m_tt |
|
private |
int ODVfeToRejectDat::m_vfe |
|
private |