#include <ODTowersToByPassDat.h>
Definition at line 11 of file ODTowersToByPassDat.h.
ODTowersToByPassDat::ODTowersToByPassDat |
( |
| ) |
|
Definition at line 10 of file ODTowersToByPassDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODTowersToByPassDat::~ODTowersToByPassDat |
( |
| ) |
|
|
override |
Definition at line 71 of file ODTowersToByPassDat.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setFedId(), setStatus(), setTimeCorr(), setTrId(), setTTId(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getStatus().
84 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE rec_id = :rec_id order by fed_id, tr_id, tt_id ");
104 throw(std::runtime_error(
std::string(
"ODTowersToByPassDat::fetchData(): ")+getOraMessage(&e)));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setTimeCorr(int dac)
std::string getTable() override
oracle::occi::SQLException SQLException
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false)
int ODTowersToByPassDat::getFedId |
( |
| ) |
const |
|
inline |
int ODTowersToByPassDat::getId |
( |
void |
| ) |
const |
|
inline |
int ODTowersToByPassDat::getStatus |
( |
| ) |
const |
|
inline |
std::string ODTowersToByPassDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODTowersToByPassDat::getTimeCorr |
( |
| ) |
const |
|
inline |
int ODTowersToByPassDat::getTrId |
( |
| ) |
const |
|
inline |
int ODTowersToByPassDat::getTTId |
( |
| ) |
const |
|
inline |
void ODTowersToByPassDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 34 of file ODTowersToByPassDat.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getStatus().
41 m_writeStmt->setSQL(
"INSERT INTO "+
getTable()+
" (rec_id, fed_id, tr_id, tt_id, time_corr, STATUS ) " 42 "VALUES (:1, :2, :3, :4, :5 , :6 )");
44 throw(std::runtime_error(
std::string(
"ODTowersToByPassDat::prepareWrite(): ")+getOraMessage(&e)));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::SQLException SQLException
void ODTowersToByPassDat::setFedId |
( |
int |
dac | ) |
|
|
inline |
void ODTowersToByPassDat::setId |
( |
int |
dac | ) |
|
|
inline |
void ODTowersToByPassDat::setStatus |
( |
int |
dac | ) |
|
|
inline |
void ODTowersToByPassDat::setTimeCorr |
( |
int |
dac | ) |
|
|
inline |
void ODTowersToByPassDat::setTrId |
( |
int |
dac | ) |
|
|
inline |
void ODTowersToByPassDat::setTTId |
( |
int |
dac | ) |
|
|
inline |
Definition at line 110 of file ODTowersToByPassDat.cc.
References KineDebug3::count(), data, MillePedeFileConverter_cfg::e, getFedId(), getStatus(), getTimeCorr(), getTrId(), getTTId(), electrons_cff::ids, createfilelist::int, AlCaHLTBitMon_QueryRunRegistry::string, geometryCSVtoXML::xx, geometryCSVtoXML::yy, and geometryCSVtoXML::zz.
Referenced by getStatus().
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(
std::string(
"ODTowersToByPassDat::writeArrayDB(): ")+getOraMessage(&e)));
void checkConnection() const noexcept(false)
char data[epos_bytes_allocation]
oracle::occi::SQLException SQLException
int fetchID() noexcept(false)
int ODTowersToByPassDat::m_fed |
|
private |
int ODTowersToByPassDat::m_ID |
|
private |
int ODTowersToByPassDat::m_sta |
|
private |
int ODTowersToByPassDat::m_time |
|
private |
int ODTowersToByPassDat::m_tr |
|
private |
int ODTowersToByPassDat::m_tt |
|
private |