#include <MonLed1Dat.h>
Definition at line 12 of file MonLed1Dat.h.
◆ MonLed1Dat()
MonLed1Dat::MonLed1Dat |
( |
| ) |
|
◆ ~MonLed1Dat()
MonLed1Dat::~MonLed1Dat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 70 of file MonLed1Dat.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_led1_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, MonLed1Dat>
p;
94 while (rset->next()) {
111 }
catch (SQLException&
e) {
112 throw(std::runtime_error(
"MonLed1Dat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setTaskStatus(), setVPTMean(), setVPTOverPNMean(), setVPTOverPNRMS(), and setVPTRMS().
◆ getTable()
std::string MonLed1Dat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTaskStatus()
bool MonLed1Dat::getTaskStatus |
( |
| ) |
const |
|
inline |
◆ getVPTMean()
float MonLed1Dat::getVPTMean |
( |
| ) |
const |
|
inline |
◆ getVPTOverPNMean()
float MonLed1Dat::getVPTOverPNMean |
( |
| ) |
const |
|
inline |
◆ getVPTOverPNRMS()
float MonLed1Dat::getVPTOverPNRMS |
( |
| ) |
const |
|
inline |
◆ getVPTRMS()
float MonLed1Dat::getVPTRMS |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void MonLed1Dat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 25 of file MonLed1Dat.cc.
31 "INSERT INTO mon_led1_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(
"MonLed1Dat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setTaskStatus()
void MonLed1Dat::setTaskStatus |
( |
bool |
status | ) |
|
|
inline |
◆ setVPTMean()
void MonLed1Dat::setVPTMean |
( |
float |
mean | ) |
|
|
inline |
◆ setVPTOverPNMean()
void MonLed1Dat::setVPTOverPNMean |
( |
float |
mean | ) |
|
|
inline |
◆ setVPTOverPNRMS()
void MonLed1Dat::setVPTOverPNRMS |
( |
float |
rms | ) |
|
|
inline |
◆ setVPTRMS()
void MonLed1Dat::setVPTRMS |
( |
float |
rms | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 116 of file MonLed1Dat.cc.
122 throw(std::runtime_error(
"MonLed1Dat::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, MonLed1Dat>::const_iterator CI;
146 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
147 channel = &(
p->first);
150 throw(std::runtime_error(
"MonLed1Dat::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(
"MonLed1Dat::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 MonLed1Dat.cc.
46 throw(std::runtime_error(
"MonLed1Dat::writeDB: IOV not in DB"));
51 throw(std::runtime_error(
"MonLed1Dat::writeDB: Bad EcalLogicID"));
65 }
catch (SQLException&
e) {
66 throw(std::runtime_error(
"MonLed1Dat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_taskStatus
bool MonLed1Dat::m_taskStatus |
|
private |
◆ m_vptMean
float MonLed1Dat::m_vptMean |
|
private |
◆ m_vptOverPNMean
float MonLed1Dat::m_vptOverPNMean |
|
private |
◆ m_vptOverPNRMS
float MonLed1Dat::m_vptOverPNRMS |
|
private |
◆ m_vptRMS
float MonLed1Dat::m_vptRMS |
|
private |