#include <ODGolBiasCurrentDat.h>
Definition at line 11 of file ODGolBiasCurrentDat.h.
ODGolBiasCurrentDat::ODGolBiasCurrentDat |
( |
| ) |
|
ODGolBiasCurrentDat::~ODGolBiasCurrentDat |
( |
| ) |
|
Definition at line 73 of file ODGolBiasCurrentDat.cc.
References gather_cfg::cout, alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, setCurrent(), setFedId(), setGolId(), setPLLCurrent(), setStatus(), and setTTId().
86 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE rec_id = :rec_id order by fed_id, tt_id, gol_id ");
107 throw(std::runtime_error(
"ODGolBiasCurrentDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setPLLCurrent(int x)
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
int ODGolBiasCurrentDat::getCurrent |
( |
| ) |
const |
|
inline |
int ODGolBiasCurrentDat::getFedId |
( |
| ) |
const |
|
inline |
int ODGolBiasCurrentDat::getGolId |
( |
| ) |
const |
|
inline |
int ODGolBiasCurrentDat::getId |
( |
| ) |
const |
|
inline |
int ODGolBiasCurrentDat::getPLLCurrent |
( |
| ) |
const |
|
inline |
int ODGolBiasCurrentDat::getStatus |
( |
void |
| ) |
const |
|
inline |
std::string ODGolBiasCurrentDat::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODGolBiasCurrentDat::getTTId |
( |
| ) |
const |
|
inline |
void ODGolBiasCurrentDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IODConfig.
Definition at line 34 of file ODGolBiasCurrentDat.cc.
References alignCSCRings::e.
41 m_writeStmt->setSQL(
"INSERT INTO "+
getTable()+
" (rec_id, fed_id, tt_id, gol_id, gol_current, pll_current, status ) "
42 "VALUES (:1, :2, :3, :4, :5 , :6, :7)");
44 throw(std::runtime_error(
"ODGolBiasCurrentDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void ODGolBiasCurrentDat::setCurrent |
( |
int |
dac | ) |
|
|
inline |
void ODGolBiasCurrentDat::setFedId |
( |
int |
dac | ) |
|
|
inline |
void ODGolBiasCurrentDat::setGolId |
( |
int |
dac | ) |
|
|
inline |
void ODGolBiasCurrentDat::setId |
( |
int |
dac | ) |
|
|
inline |
void ODGolBiasCurrentDat::setPLLCurrent |
( |
int |
x | ) |
|
|
inline |
void ODGolBiasCurrentDat::setStatus |
( |
int |
dac | ) |
|
|
inline |
void ODGolBiasCurrentDat::setTTId |
( |
int |
dac | ) |
|
|
inline |
Definition at line 113 of file ODGolBiasCurrentDat.cc.
References prof2calltree::count, AlCaHLTBitMon_QueryRunRegistry::data, alignCSCRings::e, getCurrent(), getFedId(), getGolId(), getPLLCurrent(), getStatus(), getTTId(), o2o::iov, and GetRecoTauVFromDQM_MC_cff::kk.
119 if (!iovID) {
throw(std::runtime_error(
"ODDelays::writeArrayDB: ODFEDelaysInfo not in DB")); }
122 int nrows=
data.size();
123 int* ids=
new int[nrows];
124 int* xx=
new int[nrows];
125 int* yy=
new int[nrows];
126 int* zz=
new int[nrows];
127 int* ww=
new int[nrows];
128 int*
kk=
new int[nrows];
129 int* st=
new int[nrows];
133 ub2* ids_len=
new ub2[nrows];
134 ub2* x_len=
new ub2[nrows];
135 ub2* y_len=
new ub2[nrows];
136 ub2* z_len=
new ub2[nrows];
137 ub2* w_len=
new ub2[nrows];
138 ub2* k_len=
new ub2[nrows];
139 ub2* st_len=
new ub2[nrows];
168 m_writeStmt->setDataBuffer(1, (dvoid*)ids, OCCIINT,
sizeof(ids[0]),ids_len);
169 m_writeStmt->setDataBuffer(2, (dvoid*)xx, OCCIINT ,
sizeof(xx[0]), x_len );
170 m_writeStmt->setDataBuffer(3, (dvoid*)yy, OCCIINT ,
sizeof(yy[0]), y_len );
171 m_writeStmt->setDataBuffer(4, (dvoid*)zz, OCCIINT ,
sizeof(zz[0]), z_len );
172 m_writeStmt->setDataBuffer(5, (dvoid*)ww, OCCIINT ,
sizeof(ww[0]), w_len );
173 m_writeStmt->setDataBuffer(6, (dvoid*)kk, OCCIINT ,
sizeof(kk[0]), k_len );
174 m_writeStmt->setDataBuffer(7, (dvoid*)st, OCCIINT ,
sizeof(st[0]), st_len );
197 throw(std::runtime_error(
"ODGolBiasCurrentDat::writeArrayDB(): "+e.getMessage()));
oracle::occi::SQLException SQLException
int getPLLCurrent() const
void checkConnection() const
Definition at line 50 of file ODGolBiasCurrentDat.cc.
References alignCSCRings::e.
67 throw(std::runtime_error(
"ODGolBiasCurrentDat::writeDB(): "+e.getMessage()));
oracle::occi::SQLException SQLException
int getPLLCurrent() const
void checkConnection() const
int ODGolBiasCurrentDat::m_cur |
|
private |
int ODGolBiasCurrentDat::m_fed |
|
private |
int ODGolBiasCurrentDat::m_gol |
|
private |
int ODGolBiasCurrentDat::m_ID |
|
private |
int ODGolBiasCurrentDat::m_pll_cur |
|
private |
int ODGolBiasCurrentDat::m_sta |
|
private |
int ODGolBiasCurrentDat::m_tt |
|
private |