#include <ODGolBiasCurrentDat.h>
Definition at line 11 of file ODGolBiasCurrentDat.h.
◆ ODGolBiasCurrentDat()
ODGolBiasCurrentDat::ODGolBiasCurrentDat |
( |
| ) |
|
Definition at line 10 of file ODGolBiasCurrentDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
◆ ~ODGolBiasCurrentDat()
ODGolBiasCurrentDat::~ODGolBiasCurrentDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 57 of file ODGolBiasCurrentDat.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setCurrent(), setFedId(), setGolId(), setPLLCurrent(), setStatus(), and setTTId().
68 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE rec_id = :rec_id order by fed_id, tt_id, gol_id ");
74 while (rset->next()) {
87 throw(std::runtime_error(
"ODGolBiasCurrentDat::fetchData(): " +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setPLLCurrent(int x)
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
oracle::occi::SQLException SQLException
std::string getTable() override
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
◆ getCurrent()
int ODGolBiasCurrentDat::getCurrent |
( |
| ) |
const |
|
inline |
◆ getFedId()
int ODGolBiasCurrentDat::getFedId |
( |
| ) |
const |
|
inline |
◆ getGolId()
int ODGolBiasCurrentDat::getGolId |
( |
| ) |
const |
|
inline |
◆ getId()
int ODGolBiasCurrentDat::getId |
( |
void |
| ) |
const |
|
inline |
◆ getPLLCurrent()
int ODGolBiasCurrentDat::getPLLCurrent |
( |
| ) |
const |
|
inline |
◆ getStatus()
int ODGolBiasCurrentDat::getStatus |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODGolBiasCurrentDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTTId()
int ODGolBiasCurrentDat::getTTId |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODGolBiasCurrentDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 26 of file ODGolBiasCurrentDat.cc.
References MillePedeFileConverter_cfg::e.
32 " (rec_id, fed_id, tt_id, gol_id, gol_current, pll_current, status ) " 33 "VALUES (:1, :2, :3, :4, :5 , :6, :7)");
35 throw(std::runtime_error(
"ODGolBiasCurrentDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
std::string getTable() override
◆ setCurrent()
void ODGolBiasCurrentDat::setCurrent |
( |
int |
dac | ) |
|
|
inline |
◆ setFedId()
void ODGolBiasCurrentDat::setFedId |
( |
int |
dac | ) |
|
|
inline |
◆ setGolId()
void ODGolBiasCurrentDat::setGolId |
( |
int |
dac | ) |
|
|
inline |
◆ setId()
void ODGolBiasCurrentDat::setId |
( |
int |
dac | ) |
|
|
inline |
◆ setPLLCurrent()
void ODGolBiasCurrentDat::setPLLCurrent |
( |
int |
x | ) |
|
|
inline |
◆ setStatus()
void ODGolBiasCurrentDat::setStatus |
( |
int |
dac | ) |
|
|
inline |
◆ setTTId()
void ODGolBiasCurrentDat::setTTId |
( |
int |
dac | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 93 of file ODGolBiasCurrentDat.cc.
References submitPVResolutionJobs::count, data, MillePedeFileConverter_cfg::e, getCurrent(), getFedId(), getGolId(), getPLLCurrent(), getStatus(), getTTId(), createfilelist::int, GetRecoTauVFromDQM_MC_cff::kk, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::ww, geometryCSVtoXML::xx, geometryCSVtoXML::yy, and geometryCSVtoXML::zz.
99 throw(std::runtime_error(
"ODDelays::writeArrayDB: ODFEDelaysInfo not in DB"));
102 int nrows =
data.size();
103 int* ids =
new int[nrows];
104 int*
xx =
new int[nrows];
105 int*
yy =
new int[nrows];
106 int*
zz =
new int[nrows];
107 int*
ww =
new int[nrows];
108 int*
kk =
new int[nrows];
109 int* st =
new int[nrows];
111 ub2* ids_len =
new ub2[nrows];
112 ub2* x_len =
new ub2[nrows];
113 ub2* y_len =
new ub2[nrows];
114 ub2* z_len =
new ub2[nrows];
115 ub2* w_len =
new ub2[nrows];
116 ub2* k_len =
new ub2[nrows];
117 ub2* st_len =
new ub2[nrows];
141 m_writeStmt->setDataBuffer(1, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
142 m_writeStmt->setDataBuffer(2, (dvoid*)
xx, OCCIINT,
sizeof(
xx[0]), x_len);
143 m_writeStmt->setDataBuffer(3, (dvoid*)
yy, OCCIINT,
sizeof(
yy[0]), y_len);
144 m_writeStmt->setDataBuffer(4, (dvoid*)
zz, OCCIINT,
sizeof(
zz[0]), z_len);
145 m_writeStmt->setDataBuffer(5, (dvoid*)
ww, OCCIINT,
sizeof(
ww[0]), w_len);
146 m_writeStmt->setDataBuffer(6, (dvoid*)
kk, OCCIINT,
sizeof(
kk[0]), k_len);
147 m_writeStmt->setDataBuffer(7, (dvoid*)st, OCCIINT,
sizeof(st[0]), st_len);
168 throw(std::runtime_error(
"ODGolBiasCurrentDat::writeArrayDB(): " +
e.getMessage()));
int getPLLCurrent() const
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
char data[epos_bytes_allocation]
oracle::occi::SQLException SQLException
◆ writeDB()
◆ EcalCondDBInterface
◆ m_cur
int ODGolBiasCurrentDat::m_cur |
|
private |
◆ m_fed
int ODGolBiasCurrentDat::m_fed |
|
private |
◆ m_gol
int ODGolBiasCurrentDat::m_gol |
|
private |
◆ m_ID
int ODGolBiasCurrentDat::m_ID |
|
private |
◆ m_pll_cur
int ODGolBiasCurrentDat::m_pll_cur |
|
private |
◆ m_sta
int ODGolBiasCurrentDat::m_sta |
|
private |
◆ m_tt
int ODGolBiasCurrentDat::m_tt |
|
private |