#include <ODPedestalOffsetsDat.h>
Definition at line 11 of file ODPedestalOffsetsDat.h.
◆ ODPedestalOffsetsDat()
ODPedestalOffsetsDat::ODPedestalOffsetsDat |
( |
| ) |
|
◆ ~ODPedestalOffsetsDat()
ODPedestalOffsetsDat::~ODPedestalOffsetsDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 59 of file ODPedestalOffsetsDat.cc.
71 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE rec_id = :rec_id order by sm_id, fed_id, tt_id, cry_id");
77 while (rset->next()) {
83 dat.
setLow(rset->getInt(6));
84 dat.
setMid(rset->getInt(7));
91 throw(std::runtime_error(
"ODPedestalOffsetsDat::fetchData(): " +
e.getMessage()));
References gather_cfg::cout, MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setCrystalId(), setFedId(), setHigh(), setLow(), setMid(), setSMId(), and setTTId().
◆ getCrystalId()
int ODPedestalOffsetsDat::getCrystalId |
( |
| ) |
const |
|
inline |
◆ getFedId()
int ODPedestalOffsetsDat::getFedId |
( |
| ) |
const |
|
inline |
◆ getHigh()
int ODPedestalOffsetsDat::getHigh |
( |
| ) |
const |
|
inline |
◆ getId()
int ODPedestalOffsetsDat::getId |
( |
void |
| ) |
const |
|
inline |
◆ getLow()
int ODPedestalOffsetsDat::getLow |
( |
| ) |
const |
|
inline |
◆ getMid()
int ODPedestalOffsetsDat::getMid |
( |
| ) |
const |
|
inline |
◆ getSMId()
int ODPedestalOffsetsDat::getSMId |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODPedestalOffsetsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTTId()
int ODPedestalOffsetsDat::getTTId |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODPedestalOffsetsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 27 of file ODPedestalOffsetsDat.cc.
33 " (rec_id, sm_id, fed_id, tt_id, cry_id, low, mid, high) "
34 "VALUES (:1, :2, :3, :4, :5, :6, :7, :8 )");
36 throw(std::runtime_error(
"ODPedestalOffsetsDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setCrystalId()
void ODPedestalOffsetsDat::setCrystalId |
( |
int |
dac | ) |
|
|
inline |
◆ setFedId()
void ODPedestalOffsetsDat::setFedId |
( |
int |
dac | ) |
|
|
inline |
◆ setHigh()
void ODPedestalOffsetsDat::setHigh |
( |
int |
dac | ) |
|
|
inline |
◆ setId()
void ODPedestalOffsetsDat::setId |
( |
int |
dac | ) |
|
|
inline |
◆ setLow()
void ODPedestalOffsetsDat::setLow |
( |
int |
dac | ) |
|
|
inline |
◆ setMid()
void ODPedestalOffsetsDat::setMid |
( |
int |
dac | ) |
|
|
inline |
◆ setSMId()
void ODPedestalOffsetsDat::setSMId |
( |
int |
dac | ) |
|
|
inline |
◆ setTTId()
void ODPedestalOffsetsDat::setTTId |
( |
int |
dac | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 97 of file ODPedestalOffsetsDat.cc.
103 throw(std::runtime_error(
"ODDelays::writeArrayDB: ODFEDelaysInfo not in DB"));
106 int nrows =
data.size();
107 int* ids =
new int[nrows];
108 int*
xx =
new int[nrows];
109 int*
yy =
new int[nrows];
110 int*
zz =
new int[nrows];
111 int* st =
new int[nrows];
112 int* xx1 =
new int[nrows];
113 int* yy1 =
new int[nrows];
114 int* zz1 =
new int[nrows];
116 ub2* ids_len =
new ub2[nrows];
117 ub2* x_len =
new ub2[nrows];
118 ub2* y_len =
new ub2[nrows];
119 ub2* z_len =
new ub2[nrows];
120 ub2* st_len =
new ub2[nrows];
121 ub2* x1_len =
new ub2[nrows];
122 ub2* y1_len =
new ub2[nrows];
123 ub2* z1_len =
new ub2[nrows];
150 m_writeStmt->setDataBuffer(1, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
151 m_writeStmt->setDataBuffer(2, (dvoid*)
xx, OCCIINT,
sizeof(
xx[0]), x_len);
152 m_writeStmt->setDataBuffer(3, (dvoid*)
yy, OCCIINT,
sizeof(
yy[0]), y_len);
153 m_writeStmt->setDataBuffer(4, (dvoid*)
zz, OCCIINT,
sizeof(
zz[0]), z_len);
154 m_writeStmt->setDataBuffer(5, (dvoid*)st, OCCIINT,
sizeof(st[0]), st_len);
155 m_writeStmt->setDataBuffer(6, (dvoid*)xx1, OCCIINT,
sizeof(xx1[0]), x1_len);
156 m_writeStmt->setDataBuffer(7, (dvoid*)yy1, OCCIINT,
sizeof(yy1[0]), y1_len);
157 m_writeStmt->setDataBuffer(8, (dvoid*)zz1, OCCIINT,
sizeof(zz1[0]), z1_len);
180 throw(std::runtime_error(
"ODPedestalOffsetsDat::writeArrayDB(): " +
e.getMessage()));
References KineDebug3::count(), std::data(), MillePedeFileConverter_cfg::e, getCrystalId(), getFedId(), getHigh(), getLow(), getMid(), getSMId(), getTTId(), createfilelist::int, geometryCSVtoXML::xx, geometryCSVtoXML::yy, and geometryCSVtoXML::zz.
◆ writeDB()
◆ EcalCondDBInterface
◆ m_fed
int ODPedestalOffsetsDat::m_fed |
|
private |
◆ m_high
int ODPedestalOffsetsDat::m_high |
|
private |
◆ m_ID
int ODPedestalOffsetsDat::m_ID |
|
private |
◆ m_low
int ODPedestalOffsetsDat::m_low |
|
private |
◆ m_mid
int ODPedestalOffsetsDat::m_mid |
|
private |
◆ m_sm
int ODPedestalOffsetsDat::m_sm |
|
private |
◆ m_tt
int ODPedestalOffsetsDat::m_tt |
|
private |
◆ m_xt
int ODPedestalOffsetsDat::m_xt |
|
private |