#include <MonLed2Dat.h>
Definition at line 12 of file MonLed2Dat.h.
◆ MonLed2Dat()
MonLed2Dat::MonLed2Dat |
( |
| ) |
|
◆ ~MonLed2Dat()
MonLed2Dat::~MonLed2Dat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 70 of file MonLed2Dat.cc.
84 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
85 "d.vpt_mean, d.vpt_rms, d.vpt_over_pn_mean, d.vpt_over_pn_rms, d.task_status "
86 "FROM channelview cv JOIN mon_led2_dat d "
87 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
88 "WHERE d.iov_id = :iov_id");
92 std::pair<EcalLogicID, MonLed2Dat>
p;
94 while (rset->next()) {
111 }
catch (SQLException&
e) {
112 throw(std::runtime_error(
"MonLed2Dat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setTaskStatus(), setVPTMean(), setVPTOverPNMean(), setVPTOverPNRMS(), and setVPTRMS().
◆ getTable()
std::string MonLed2Dat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTaskStatus()
bool MonLed2Dat::getTaskStatus |
( |
| ) |
const |
|
inline |
◆ getVPTMean()
float MonLed2Dat::getVPTMean |
( |
| ) |
const |
|
inline |
◆ getVPTOverPNMean()
float MonLed2Dat::getVPTOverPNMean |
( |
| ) |
const |
|
inline |
◆ getVPTOverPNRMS()
float MonLed2Dat::getVPTOverPNRMS |
( |
| ) |
const |
|
inline |
◆ getVPTRMS()
float MonLed2Dat::getVPTRMS |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void MonLed2Dat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 25 of file MonLed2Dat.cc.
31 "INSERT INTO mon_led2_dat (iov_id, logic_id, "
32 "vpt_mean, vpt_rms, vpt_over_pn_mean, vpt_over_pn_rms, task_status) "
33 "VALUES (:iov_id, :logic_id, "
34 ":vpt_mean, :vpt_rms, :vpt_over_pn_mean, :vpt_over_pn_rms, :task_status)");
35 }
catch (SQLException&
e) {
36 throw(std::runtime_error(
"MonLed2Dat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setTaskStatus()
void MonLed2Dat::setTaskStatus |
( |
bool |
status | ) |
|
|
inline |
◆ setVPTMean()
void MonLed2Dat::setVPTMean |
( |
float |
mean | ) |
|
|
inline |
◆ setVPTOverPNMean()
void MonLed2Dat::setVPTOverPNMean |
( |
float |
mean | ) |
|
|
inline |
◆ setVPTOverPNRMS()
void MonLed2Dat::setVPTOverPNRMS |
( |
float |
rms | ) |
|
|
inline |
◆ setVPTRMS()
void MonLed2Dat::setVPTRMS |
( |
float |
rms | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 116 of file MonLed2Dat.cc.
122 throw(std::runtime_error(
"MonLed2Dat::writeArrayDB: IOV not in DB"));
125 int nrows =
data->size();
126 int* ids =
new int[nrows];
127 int* iovid_vec =
new int[nrows];
128 float*
xx =
new float[nrows];
129 float*
yy =
new float[nrows];
130 float*
zz =
new float[nrows];
131 float* ww =
new float[nrows];
132 int* st =
new int[nrows];
134 ub2* ids_len =
new ub2[nrows];
135 ub2* iov_len =
new ub2[nrows];
136 ub2* x_len =
new ub2[nrows];
137 ub2* y_len =
new ub2[nrows];
138 ub2* z_len =
new ub2[nrows];
139 ub2* w_len =
new ub2[nrows];
140 ub2* st_len =
new ub2[nrows];
145 typedef map<EcalLogicID, MonLed2Dat>::const_iterator CI;
146 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
147 channel = &(
p->first);
150 throw(std::runtime_error(
"MonLed2Dat::writeArrayDB: Bad EcalLogicID"));
152 ids[
count] = logicID;
153 iovid_vec[
count] = iovID;
155 dataitem = &(
p->second);
182 m_writeStmt->setDataBuffer(1, (dvoid*)iovid_vec, OCCIINT,
sizeof(iovid_vec[0]), iov_len);
183 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
184 m_writeStmt->setDataBuffer(3, (dvoid*)
xx, OCCIFLOAT,
sizeof(
xx[0]), x_len);
185 m_writeStmt->setDataBuffer(4, (dvoid*)
yy, OCCIFLOAT,
sizeof(
yy[0]), y_len);
186 m_writeStmt->setDataBuffer(5, (dvoid*)
zz, OCCIFLOAT,
sizeof(
zz[0]), z_len);
187 m_writeStmt->setDataBuffer(6, (dvoid*)ww, OCCIFLOAT,
sizeof(ww[0]), w_len);
188 m_writeStmt->setDataBuffer(7, (dvoid*)st, OCCIINT,
sizeof(st[0]), st_len);
208 }
catch (SQLException&
e) {
209 throw(std::runtime_error(
"MonLed2Dat::writeArrayDB(): " +
e.getMessage()));
References submitPVResolutionJobs::count, data, MillePedeFileConverter_cfg::e, EcalLogicID::getLogicID(), getTaskStatus(), getVPTMean(), getVPTOverPNMean(), getVPTOverPNRMS(), getVPTRMS(), AlCaHLTBitMon_ParallelJobs::p, w, x, geometryCSVtoXML::xx, y, geometryCSVtoXML::yy, z, and geometryCSVtoXML::zz.
◆ writeDB()
Definition at line 40 of file MonLed2Dat.cc.
46 throw(std::runtime_error(
"MonLed2Dat::writeDB: IOV not in DB"));
51 throw(std::runtime_error(
"MonLed2Dat::writeDB: Bad EcalLogicID"));
65 }
catch (SQLException&
e) {
66 throw(std::runtime_error(
"MonLed2Dat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_taskStatus
bool MonLed2Dat::m_taskStatus |
|
private |
◆ m_vptMean
float MonLed2Dat::m_vptMean |
|
private |
◆ m_vptOverPNMean
float MonLed2Dat::m_vptOverPNMean |
|
private |
◆ m_vptOverPNRMS
float MonLed2Dat::m_vptOverPNRMS |
|
private |
◆ m_vptRMS
float MonLed2Dat::m_vptRMS |
|
private |