Definition at line 12 of file CaliTempDat.h.
Definition at line 113 of file CaliTempDat.cc.
References submitPVResolutionJobs::count, data, MillePedeFileConverter_cfg::e, getBeta(), EcalLogicID::getLogicID(), getOffset(), getR25(), getTaskStatus(), AlCaHLTBitMon_ParallelJobs::p, x, geometryCSVtoXML::xx, y, geometryCSVtoXML::yy, z, and geometryCSVtoXML::zz.
119 throw(std::runtime_error(
"CaliTempDat::writeArrayDB: IOV not in DB"));
122 int nrows =
data->size();
123 int* ids =
new int[nrows];
124 int* iovid_vec =
new int[nrows];
125 float*
xx =
new float[nrows];
126 float*
yy =
new float[nrows];
127 float*
zz =
new float[nrows];
128 int* st =
new int[nrows];
130 ub2* ids_len =
new ub2[nrows];
131 ub2* iov_len =
new ub2[nrows];
132 ub2* x_len =
new ub2[nrows];
133 ub2* y_len =
new ub2[nrows];
134 ub2* z_len =
new ub2[nrows];
135 ub2* st_len =
new ub2[nrows];
140 typedef map<EcalLogicID, CaliTempDat>::const_iterator CI;
141 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
142 channel = &(
p->first);
145 throw(std::runtime_error(
"CaliTempDat::writeArrayDB: Bad EcalLogicID"));
147 ids[
count] = logicID;
148 iovid_vec[
count] = iovID;
150 dataitem = &(
p->second);
174 m_writeStmt->setDataBuffer(1, (dvoid*)iovid_vec, OCCIINT,
sizeof(iovid_vec[0]), iov_len);
175 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
176 m_writeStmt->setDataBuffer(3, (dvoid*)
xx, OCCIFLOAT,
sizeof(
xx[0]), x_len);
177 m_writeStmt->setDataBuffer(4, (dvoid*)
yy, OCCIFLOAT,
sizeof(
yy[0]), y_len);
178 m_writeStmt->setDataBuffer(5, (dvoid*)
zz, OCCIFLOAT,
sizeof(
zz[0]), z_len);
179 m_writeStmt->setDataBuffer(6, (dvoid*)st, OCCIINT,
sizeof(st[0]), st_len);
198 }
catch (SQLException&
e) {
199 throw(std::runtime_error(
"MonPedestalsDat::writeArrayDB(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
bool getTaskStatus() const
char data[epos_bytes_allocation]
int fetchID() noexcept(false) override