#include <FEConfigLUTDat.h>
Definition at line 11 of file FEConfigLUTDat.h.
◆ FEConfigLUTDat()
FEConfigLUTDat::FEConfigLUTDat |
( |
| ) |
|
◆ ~FEConfigLUTDat()
FEConfigLUTDat::~FEConfigLUTDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 64 of file FEConfigLUTDat.cc.
77 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
79 "FROM channelview cv JOIN fe_config_lut_dat d "
80 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
81 "WHERE lut_conf_id = :lut_conf_id");
85 std::pair<EcalLogicID, FEConfigLUTDat>
p;
87 while (rset->next()) {
100 }
catch (SQLException&
e) {
101 throw(std::runtime_error(
"FEConfigLUTDat::fetchData: " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setLUTGroupId().
◆ getLUTGroupId()
int FEConfigLUTDat::getLUTGroupId |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string FEConfigLUTDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void FEConfigLUTDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file FEConfigLUTDat.cc.
28 "INSERT INTO fe_config_lut_dat (lut_conf_id, logic_id, "
30 "VALUES (:lut_conf_id, :logic_id, "
32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"FEConfigLUTDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setLUTGroupId()
void FEConfigLUTDat::setLUTGroupId |
( |
int |
x | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 105 of file FEConfigLUTDat.cc.
110 int iconfID = iconf->
fetchID();
112 throw(std::runtime_error(
"FEConfigLUTDat::writeArrayDB: ICONF not in DB"));
115 int nrows =
data->size();
116 int* ids =
new int[nrows];
117 int* iconfid_vec =
new int[nrows];
118 int*
xx =
new int[nrows];
120 ub2* ids_len =
new ub2[nrows];
121 ub2* iconf_len =
new ub2[nrows];
122 ub2* x_len =
new ub2[nrows];
127 typedef map<EcalLogicID, FEConfigLUTDat>::const_iterator CI;
128 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
129 channel = &(
p->first);
132 throw(std::runtime_error(
"FEConfigLUTDat::writeArrayDB: Bad EcalLogicID"));
134 ids[
count] = logicID;
135 iconfid_vec[
count] = iconfID;
137 dataitem = &(
p->second);
144 iconf_len[
count] =
sizeof(iconfid_vec[
count]);
152 m_writeStmt->setDataBuffer(1, (dvoid*)iconfid_vec, OCCIINT,
sizeof(iconfid_vec[0]), iconf_len);
153 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
154 m_writeStmt->setDataBuffer(3, (dvoid*)
xx, OCCIINT,
sizeof(
xx[0]), x_len);
159 delete[] iconfid_vec;
166 }
catch (SQLException&
e) {
167 throw(std::runtime_error(
"FEConfigLUTDat::writeArrayDB(): " +
e.getMessage()));
References submitPVResolutionJobs::count, data, MillePedeFileConverter_cfg::e, EcalLogicID::getLogicID(), getLUTGroupId(), AlCaHLTBitMon_ParallelJobs::p, x, and geometryCSVtoXML::xx.
◆ writeDB()
Definition at line 37 of file FEConfigLUTDat.cc.
45 throw(std::runtime_error(
"FEConfigLUTDat::writeDB: ICONF not in DB"));
50 throw(std::runtime_error(
"FEConfigLUTDat::writeDB: Bad EcalLogicID"));
59 }
catch (SQLException&
e) {
60 throw(std::runtime_error(
"FEConfigLUTDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_group_id
int FEConfigLUTDat::m_group_id |
|
private |