#include <MonPNPedDat.h>
Definition at line 12 of file MonPNPedDat.h.
◆ MonPNPedDat()
MonPNPedDat::MonPNPedDat |
( |
| ) |
|
◆ ~MonPNPedDat()
MonPNPedDat::~MonPNPedDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 72 of file MonPNPedDat.cc.
85 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
86 "d.ped_mean_g1,d.ped_rms_g1, d.ped_mean_g16, d.ped_rms_g16, d.task_status "
87 "FROM channelview cv JOIN mon_pn_ped_dat d "
88 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
89 "WHERE d.iov_id = :iov_id");
93 std::pair<EcalLogicID, MonPNPedDat>
p;
95 while (rset->next()) {
111 }
catch (SQLException&
e) {
112 throw(std::runtime_error(
"MonPNPedDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setPedMeanG1(), setPedMeanG16(), setPedRMSG1(), setPedRMSG16(), and setTaskStatus().
◆ getPedMeanG1()
float MonPNPedDat::getPedMeanG1 |
( |
| ) |
const |
|
inline |
◆ getPedMeanG16()
float MonPNPedDat::getPedMeanG16 |
( |
| ) |
const |
|
inline |
◆ getPedRMSG1()
float MonPNPedDat::getPedRMSG1 |
( |
| ) |
const |
|
inline |
◆ getPedRMSG16()
float MonPNPedDat::getPedRMSG16 |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string MonPNPedDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTaskStatus()
bool MonPNPedDat::getTaskStatus |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void MonPNPedDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 27 of file MonPNPedDat.cc.
33 "INSERT INTO mon_pn_ped_dat (iov_id, logic_id, "
34 "ped_mean_g1, ped_rms_g1, ped_mean_g16, ped_rms_g16, task_status) "
35 "VALUES (:iov_id, :logic_id, "
36 ":3, :4, :5, :6, :7)");
37 }
catch (SQLException&
e) {
38 throw(std::runtime_error(
"MonPNPedDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setPedMeanG1()
void MonPNPedDat::setPedMeanG1 |
( |
float |
mean | ) |
|
|
inline |
◆ setPedMeanG16()
void MonPNPedDat::setPedMeanG16 |
( |
float |
mean | ) |
|
|
inline |
◆ setPedRMSG1()
void MonPNPedDat::setPedRMSG1 |
( |
float |
mean | ) |
|
|
inline |
◆ setPedRMSG16()
void MonPNPedDat::setPedRMSG16 |
( |
float |
mean | ) |
|
|
inline |
◆ setTaskStatus()
void MonPNPedDat::setTaskStatus |
( |
bool |
status | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 116 of file MonPNPedDat.cc.
122 throw(std::runtime_error(
"MonPNPedDat::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];
141 ub2* st_len =
new ub2[nrows];
146 typedef map<EcalLogicID, MonPNPedDat>::const_iterator CI;
147 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
148 channel = &(
p->first);
151 throw(std::runtime_error(
"MonPNPedDat::writeArrayDB: Bad EcalLogicID"));
153 ids[
count] = logicID;
154 iovid_vec[
count] = iovID;
156 dataitem = &(
p->second);
185 m_writeStmt->setDataBuffer(1, (dvoid*)iovid_vec, OCCIINT,
sizeof(iovid_vec[0]), iov_len);
186 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
187 m_writeStmt->setDataBuffer(3, (dvoid*)
xx, OCCIFLOAT,
sizeof(
xx[0]), x_len);
188 m_writeStmt->setDataBuffer(4, (dvoid*)
yy, OCCIFLOAT,
sizeof(
yy[0]), y_len);
189 m_writeStmt->setDataBuffer(5, (dvoid*)
zz, OCCIFLOAT,
sizeof(
zz[0]), z_len);
190 m_writeStmt->setDataBuffer(6, (dvoid*)ww, OCCIFLOAT,
sizeof(ww[0]), w_len);
191 m_writeStmt->setDataBuffer(7, (dvoid*)st, OCCIINT,
sizeof(st[0]), st_len);
213 }
catch (SQLException&
e) {
214 throw(std::runtime_error(
"MonPNPedDat::writeArrayDB(): " +
e.getMessage()));
References submitPVResolutionJobs::count, data, MillePedeFileConverter_cfg::e, EcalLogicID::getLogicID(), getPedMeanG1(), getPedMeanG16(), getPedRMSG1(), getPedRMSG16(), getTaskStatus(), AlCaHLTBitMon_ParallelJobs::p, w, x, geometryCSVtoXML::xx, y, geometryCSVtoXML::yy, z, and geometryCSVtoXML::zz.
◆ writeDB()
Definition at line 42 of file MonPNPedDat.cc.
48 throw(std::runtime_error(
"MonPNPedDat::writeDB: IOV not in DB"));
53 throw(std::runtime_error(
"MonPNPedDat::writeDB: Bad EcalLogicID"));
67 }
catch (SQLException&
e) {
68 throw(std::runtime_error(
"MonPNPedDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_pedMeanG1
float MonPNPedDat::m_pedMeanG1 |
|
private |
◆ m_pedMeanG16
float MonPNPedDat::m_pedMeanG16 |
|
private |
◆ m_pedRMSG1
float MonPNPedDat::m_pedRMSG1 |
|
private |
◆ m_pedRMSG16
float MonPNPedDat::m_pedRMSG16 |
|
private |
◆ m_taskStatus
bool MonPNPedDat::m_taskStatus |
|
private |