#include <FEConfigLinParamDat.h>
Definition at line 11 of file FEConfigLinParamDat.h.
◆ FEConfigLinParamDat()
FEConfigLinParamDat::FEConfigLinParamDat |
( |
| ) |
|
◆ ~FEConfigLinParamDat()
FEConfigLinParamDat::~FEConfigLinParamDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 64 of file FEConfigLinParamDat.cc.
78 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
80 "FROM channelview cv JOIN " +
83 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
84 "WHERE lin_conf_id = :lin_conf_id");
88 std::pair<EcalLogicID, FEConfigLinParamDat>
p;
90 while (rset->next()) {
103 }
catch (SQLException&
e) {
104 throw(std::runtime_error(
"FEConfigLinParamDat::fetchData: " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setETSat().
◆ getETSat()
float FEConfigLinParamDat::getETSat |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string FEConfigLinParamDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void FEConfigLinParamDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setETSat()
void FEConfigLinParamDat::setETSat |
( |
float |
x | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 108 of file FEConfigLinParamDat.cc.
113 int iconfID = iconf->
fetchID();
115 throw(std::runtime_error(
"FEConfigLinParamDat::writeArrayDB: ICONF not in DB"));
118 int nrows =
data->size();
119 int* ids =
new int[nrows];
120 int* iov_vec =
new int[nrows];
121 float*
xx =
new float[nrows];
123 ub2* ids_len =
new ub2[nrows];
124 ub2* iov_len =
new ub2[nrows];
125 ub2* x_len =
new ub2[nrows];
130 typedef map<EcalLogicID, FEConfigLinParamDat>::const_iterator CI;
131 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
132 channel = &(
p->first);
135 throw(std::runtime_error(
"FEConfigLinParamDat::writeArrayDB: Bad EcalLogicID"));
137 ids[
count] = logicID;
138 iov_vec[
count] = iconfID;
140 dataitem = &(
p->second);
153 m_writeStmt->setDataBuffer(1, (dvoid*)iov_vec, OCCIINT,
sizeof(iov_vec[0]), iov_len);
154 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
155 m_writeStmt->setDataBuffer(3, (dvoid*)
xx, OCCIFLOAT,
sizeof(
xx[0]), x_len);
167 }
catch (SQLException&
e) {
168 throw(std::runtime_error(
"FEConfigLinParamDat::writeArrayDB(): " +
e.getMessage()));
References submitPVResolutionJobs::count, data, MillePedeFileConverter_cfg::e, getETSat(), EcalLogicID::getLogicID(), AlCaHLTBitMon_ParallelJobs::p, x, and geometryCSVtoXML::xx.
◆ writeDB()
Definition at line 37 of file FEConfigLinParamDat.cc.
45 throw(std::runtime_error(
"FEConfigLinParamDat::writeDB: ICONF not in DB"));
50 throw(std::runtime_error(
"FEConfigLinParamDat::writeDB: Bad EcalLogicID"));
59 }
catch (SQLException&
e) {
60 throw(std::runtime_error(
"FEConfigLinParamDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_etsat
float FEConfigLinParamDat::m_etsat |
|
private |