#include <FEConfigLinParamDat.h>
Definition at line 11 of file FEConfigLinParamDat.h.
FEConfigLinParamDat::FEConfigLinParamDat |
( |
| ) |
|
Definition at line 11 of file FEConfigLinParamDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
FEConfigLinParamDat::~FEConfigLinParamDat |
( |
| ) |
|
Definition at line 72 of file FEConfigLinParamDat.cc.
References alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, and setETSat().
87 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
89 "FROM channelview cv JOIN "+
getTable()+
" d "
90 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
91 "WHERE lin_conf_id = :lin_conf_id");
95 std::pair< EcalLogicID, FEConfigLinParamDat >
p;
113 throw(std::runtime_error(
"FEConfigLinParamDat::fetchData: "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement * m_readStmt
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
float FEConfigLinParamDat::getETSat |
( |
| ) |
const |
|
inline |
std::string FEConfigLinParamDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void FEConfigLinParamDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 29 of file FEConfigLinParamDat.cc.
References alignCSCRings::e.
38 "VALUES (:lin_conf_id, :logic_id, "
41 throw(std::runtime_error(
"FEConfigLinParamDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void FEConfigLinParamDat::setETSat |
( |
float |
x | ) |
|
|
inline |
Definition at line 117 of file FEConfigLinParamDat.cc.
References KineDebug3::count(), data, alignCSCRings::e, getETSat(), EcalLogicID::getLogicID(), AlCaHLTBitMon_ParallelJobs::p, and x.
123 int iconfID = iconf->
fetchID();
124 if (!iconfID) {
throw(std::runtime_error(
"FEConfigLinParamDat::writeArrayDB: ICONF not in DB")); }
127 int nrows=
data->size();
128 int* ids=
new int[nrows];
129 int* iov_vec=
new int[nrows];
130 float* xx=
new float[nrows];
133 ub2* ids_len=
new ub2[nrows];
134 ub2* iov_len=
new ub2[nrows];
135 ub2* x_len=
new ub2[nrows];
140 typedef map< EcalLogicID, FEConfigLinParamDat >::const_iterator CI;
141 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
142 channel = &(
p->first);
144 if (!logicID) {
throw(std::runtime_error(
"FEConfigLinParamDat::writeArrayDB: Bad EcalLogicID")); }
146 iov_vec[
count]=iconfID;
148 dataitem = &(
p->second);
162 m_writeStmt->setDataBuffer(1, (dvoid*)iov_vec, OCCIINT,
sizeof(iov_vec[0]),iov_len);
163 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len );
164 m_writeStmt->setDataBuffer(3, (dvoid*)xx, OCCIFLOAT ,
sizeof(xx[0]), x_len );
177 throw(std::runtime_error(
"FEConfigLinParamDat::writeArrayDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
char data[epos_bytes_allocation]
void checkConnection() const
Definition at line 47 of file FEConfigLinParamDat.cc.
References alignCSCRings::e.
54 if (!iconfID) {
throw(std::runtime_error(
"FEConfigLinParamDat::writeDB: ICONF not in DB")); }
57 if (!logicID) {
throw(std::runtime_error(
"FEConfigLinParamDat::writeDB: Bad EcalLogicID")); }
66 throw(std::runtime_error(
"FEConfigLinParamDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
void checkConnection() const
float FEConfigLinParamDat::m_etsat |
|
private |