#include <FEConfigLUTGroupDat.h>
Definition at line 11 of file FEConfigLUTGroupDat.h.
◆ FEConfigLUTGroupDat()
FEConfigLUTGroupDat::FEConfigLUTGroupDat |
( |
| ) |
|
◆ ~FEConfigLUTGroupDat()
FEConfigLUTGroupDat::~FEConfigLUTGroupDat |
( |
| ) |
|
|
override |
◆ fetchData()
◆ getLUTGroupId()
int FEConfigLUTGroupDat::getLUTGroupId |
( |
| ) |
const |
|
inline |
◆ getLUTValue()
int FEConfigLUTGroupDat::getLUTValue |
( |
int |
i | ) |
const |
|
inline |
◆ getTable()
std::string FEConfigLUTGroupDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void FEConfigLUTGroupDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setLUTGroupId()
void FEConfigLUTGroupDat::setLUTGroupId |
( |
int |
x | ) |
|
|
inline |
◆ setLUTValue()
void FEConfigLUTGroupDat::setLUTValue |
( |
int |
i, |
|
|
int |
x |
|
) |
| |
|
inline |
◆ writeArrayDB()
Definition at line 156 of file FEConfigLUTGroupDat.cc.
161 int iconfID = iconf->
fetchID();
163 throw(std::runtime_error(
"FEConfigLUTGroupDat::writeArrayDB: ICONF not in DB"));
166 int nrows =
data->size() * 1024;
168 int* iconfid_vec =
new int[nrows];
169 int*
xx =
new int[nrows];
170 int*
yy =
new int[nrows];
171 int*
zz =
new int[nrows];
173 ub2* iconf_len =
new ub2[nrows];
174 ub2* x_len =
new ub2[nrows];
175 ub2* y_len =
new ub2[nrows];
176 ub2* z_len =
new ub2[nrows];
180 typedef map<EcalLogicID, FEConfigLUTGroupDat>::const_iterator CI;
181 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
182 dataitem = &(
p->second);
185 for (
int i = 0;
i < 1024;
i++) {
186 iconfid_vec[
count] = iconfID;
194 iconf_len[
count] =
sizeof(iconfid_vec[
count]);
208 cout <<
"about to insert " << iconfid_vec[
i] <<
" " <<
xx[
i] <<
" " <<
yy[
i] <<
" " <<
zz[
i] << endl;
210 cout <<
"about to insert " << iconfid_vec[
i] <<
" " <<
xx[
i] <<
" " <<
yy[
i] <<
" " <<
zz[
i] << endl;
212 m_writeStmt->setDataBuffer(1, (dvoid*)iconfid_vec, OCCIINT,
sizeof(iconfid_vec[0]), iconf_len);
213 m_writeStmt->setDataBuffer(2, (dvoid*)
xx, OCCIINT,
sizeof(
xx[0]), x_len);
214 m_writeStmt->setDataBuffer(3, (dvoid*)
yy, OCCIINT,
sizeof(
yy[0]), y_len);
215 m_writeStmt->setDataBuffer(4, (dvoid*)
zz, OCCIINT,
sizeof(
zz[0]), z_len);
219 delete[] iconfid_vec;
229 }
catch (SQLException&
e) {
230 throw(std::runtime_error(
std::string(
"FEConfigLUTGroupDat::writeArrayDB(): ") +
e.getMessage()));
References KineDebug3::count(), gather_cfg::cout, std::data(), MillePedeFileConverter_cfg::e, getLUTGroupId(), getLUTValue(), mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, AlCaHLTBitMon_QueryRunRegistry::string, x, geometryCSVtoXML::xx, y, geometryCSVtoXML::yy, z, and geometryCSVtoXML::zz.
◆ writeDB()
Definition at line 40 of file FEConfigLUTGroupDat.cc.
48 cout <<
"iconf=" << iconfID << endl;
51 throw(std::runtime_error(
"FEConfigLUTGroupDat::writeArrayDB: ICONF not in DB"));
55 int* iconfid_vec =
new int[nrows];
56 int*
xx =
new int[nrows];
57 int*
yy =
new int[nrows];
58 int*
zz =
new int[nrows];
60 ub2* iconf_len =
new ub2[nrows];
61 ub2* x_len =
new ub2[nrows];
62 ub2* y_len =
new ub2[nrows];
63 ub2* z_len =
new ub2[nrows];
66 iconfid_vec[
count] = iconfID;
67 int x =
item->getLUTGroupId();
83 m_writeStmt->setDataBuffer(1, (dvoid*)iconfid_vec, OCCIINT,
sizeof(iconfid_vec[0]), iconf_len);
84 m_writeStmt->setDataBuffer(2, (dvoid*)
xx, OCCIINT,
sizeof(
xx[0]), x_len);
85 m_writeStmt->setDataBuffer(3, (dvoid*)
yy, OCCIINT,
sizeof(
yy[0]), y_len);
86 m_writeStmt->setDataBuffer(4, (dvoid*)
zz, OCCIINT,
sizeof(
zz[0]), z_len);
100 }
catch (SQLException&
e) {
101 throw(std::runtime_error(
std::string(
"FEConfigLUTGroupDat::writeArrayDB(): ") +
e.getMessage()));
References KineDebug3::count(), gather_cfg::cout, MillePedeFileConverter_cfg::e, B2GTnPMonitor_cfi::item, AlCaHLTBitMon_QueryRunRegistry::string, x, geometryCSVtoXML::xx, y, geometryCSVtoXML::yy, z, and geometryCSVtoXML::zz.
◆ EcalCondDBInterface
◆ m_group_id
int FEConfigLUTGroupDat::m_group_id |
|
private |
◆ m_lut
int FEConfigLUTGroupDat::m_lut[1024] |
|
private |