#include <FEConfigFgrEETowerDat.h>
Definition at line 11 of file FEConfigFgrEETowerDat.h.
FEConfigFgrEETowerDat::FEConfigFgrEETowerDat |
( |
| ) |
|
Definition at line 11 of file FEConfigFgrEETowerDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
FEConfigFgrEETowerDat::~FEConfigFgrEETowerDat |
( |
| ) |
|
Definition at line 73 of file FEConfigFgrEETowerDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, and setLutValue().
88 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
90 "FROM channelview cv JOIN "+
getTable()+
" d "
91 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
92 "WHERE fgr_conf_id = :fgr_conf_id");
96 std::pair< EcalLogicID, FEConfigFgrEETowerDat >
p;
112 throw(std::runtime_error(
"FEConfigFgrEETowerDat::fetchData: "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement * m_readStmt
static std::vector< std::string > checklist dat
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void setLutValue(int mean)
void checkConnection() const
int FEConfigFgrEETowerDat::getLUTValue |
( |
| ) |
const |
|
inline |
int FEConfigFgrEETowerDat::getLutValue |
( |
| ) |
const |
|
inline |
std::string FEConfigFgrEETowerDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void FEConfigFgrEETowerDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 30 of file FEConfigFgrEETowerDat.cc.
References alignCSCRings::e.
39 "VALUES (:fgr_conf_id, :logic_id, "
42 throw(std::runtime_error(
"FEConfigFgrEETowerDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void FEConfigFgrEETowerDat::setLUTValue |
( |
int |
mean | ) |
|
|
inline |
void FEConfigFgrEETowerDat::setLutValue |
( |
int |
mean | ) |
|
|
inline |
Definition at line 116 of file FEConfigFgrEETowerDat.cc.
References prof2calltree::count, data, alignCSCRings::e, EcalLogicID::getLogicID(), getLutValue(), AlCaHLTBitMon_ParallelJobs::p, and x.
122 int iconfID = iconf->
fetchID();
123 if (!iconfID) {
throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeArrayDB: ICONF not in DB")); }
126 int nrows=
data->size();
127 int* ids=
new int[nrows];
128 int* iconfid_vec=
new int[nrows];
129 int* xx=
new int[nrows];
132 ub2* ids_len=
new ub2[nrows];
133 ub2* iconf_len=
new ub2[nrows];
134 ub2* x_len=
new ub2[nrows];
140 typedef map< EcalLogicID, FEConfigFgrEETowerDat >::const_iterator CI;
141 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
142 channel = &(
p->first);
144 if (!logicID) {
throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeArrayDB: Bad EcalLogicID")); }
146 iconfid_vec[
count]=iconfID;
148 dataitem = &(
p->second);
165 m_writeStmt->setDataBuffer(1, (dvoid*)iconfid_vec, OCCIINT,
sizeof(iconfid_vec[0]),iconf_len);
166 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len );
167 m_writeStmt->setDataBuffer(3, (dvoid*)xx, OCCIINT ,
sizeof(xx[0]), x_len );
172 delete [] iconfid_vec;
180 throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeArrayDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
char data[epos_bytes_allocation]
void checkConnection() const
Definition at line 48 of file FEConfigFgrEETowerDat.cc.
References alignCSCRings::e.
55 if (!iconfID) {
throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeDB: ICONF not in DB")); }
58 if (!logicID) {
throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeDB: Bad EcalLogicID")); }
67 throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
void checkConnection() const
int FEConfigFgrEETowerDat::m_lut |
|
private |