Definition at line 12 of file CaliTempDat.h.
Definition at line 125 of file CaliTempDat.cc.
References KineDebug3::count(), AlCaHLTBitMon_QueryRunRegistry::data, alignCSCRings::e, getBeta(), EcalLogicID::getLogicID(), getOffset(), getR25(), getTaskStatus(), o2o::iov, AlCaHLTBitMon_ParallelJobs::p, x, y, and z.
132 if (!iovID) {
throw(std::runtime_error(
"CaliTempDat::writeArrayDB: IOV not in DB")); }
135 int nrows=
data->size();
136 int* ids=
new int[nrows];
137 int* iovid_vec=
new int[nrows];
138 float* xx=
new float[nrows];
139 float* yy=
new float[nrows];
140 float* zz=
new float[nrows];
141 int* st=
new int[nrows];
143 ub2* ids_len=
new ub2[nrows];
144 ub2* iov_len=
new ub2[nrows];
145 ub2* x_len=
new ub2[nrows];
146 ub2* y_len=
new ub2[nrows];
147 ub2* z_len=
new ub2[nrows];
148 ub2* st_len=
new ub2[nrows];
153 typedef map< EcalLogicID, CaliTempDat >::const_iterator CI;
154 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
155 channel = &(
p->first);
157 if (!logicID) {
throw(std::runtime_error(
"CaliTempDat::writeArrayDB: Bad EcalLogicID")); }
159 iovid_vec[
count]=iovID;
161 dataitem = &(
p->second);
189 m_writeStmt->setDataBuffer(1, (dvoid*)iovid_vec, OCCIINT,
sizeof(iovid_vec[0]),iov_len);
190 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len );
191 m_writeStmt->setDataBuffer(3, (dvoid*)xx, OCCIFLOAT ,
sizeof(xx[0]), x_len );
192 m_writeStmt->setDataBuffer(4, (dvoid*)yy, OCCIFLOAT ,
sizeof(yy[0]), y_len );
193 m_writeStmt->setDataBuffer(5, (dvoid*)zz, OCCIFLOAT ,
sizeof(zz[0]), z_len );
194 m_writeStmt->setDataBuffer(6, (dvoid*)st, OCCIINT ,
sizeof(st[0]), st_len );
218 throw(std::runtime_error(
"MonPedestalsDat::writeArrayDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
bool getTaskStatus() const
oracle::occi::SQLException SQLException
void checkConnection() const