#include <FEConfigFgrEEStripDat.h>
Definition at line 11 of file FEConfigFgrEEStripDat.h.
FEConfigFgrEEStripDat::FEConfigFgrEEStripDat |
( |
| ) |
|
Definition at line 11 of file FEConfigFgrEEStripDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
FEConfigFgrEEStripDat::~FEConfigFgrEEStripDat |
( |
| ) |
|
Definition at line 75 of file FEConfigFgrEEStripDat.cc.
References alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, setLutFg(), and setThreshold().
90 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
91 "d.threshold, d.lut_fg "
92 "FROM channelview cv JOIN "+
getTable()+
" d "
93 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
94 "WHERE fgr_conf_id = :fgr_conf_id");
98 std::pair< EcalLogicID, FEConfigFgrEEStripDat >
p;
100 while(rset->next()) {
115 throw(std::runtime_error(
"FEConfigFgrEEStripDat::fetchData: "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void setThreshold(unsigned int mean)
void setLutFg(unsigned int mean)
oracle::occi::Statement * m_readStmt
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
unsigned int FEConfigFgrEEStripDat::getLutFg |
( |
| ) |
const |
|
inline |
unsigned int FEConfigFgrEEStripDat::getLUTFgr |
( |
| ) |
const |
|
inline |
unsigned int FEConfigFgrEEStripDat::getLutFgr |
( |
| ) |
const |
|
inline |
std::string FEConfigFgrEEStripDat::getTable |
( |
| ) |
|
|
inlinevirtual |
unsigned int FEConfigFgrEEStripDat::getThreshold |
( |
| ) |
const |
|
inline |
void FEConfigFgrEEStripDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 31 of file FEConfigFgrEEStripDat.cc.
References alignCSCRings::e.
39 "threshold, lut_fg ) "
40 "VALUES (:fgr_conf_id, :logic_id, "
41 ":threshold, :lut_fg )" );
43 throw(std::runtime_error(
"FEConfigFgrEEStripDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void FEConfigFgrEEStripDat::setLutFg |
( |
unsigned int |
mean | ) |
|
|
inline |
void FEConfigFgrEEStripDat::setLUTFgr |
( |
unsigned int |
mean | ) |
|
|
inline |
void FEConfigFgrEEStripDat::setLutFgr |
( |
unsigned int |
mean | ) |
|
|
inline |
void FEConfigFgrEEStripDat::setThreshold |
( |
unsigned int |
mean | ) |
|
|
inline |
Definition at line 119 of file FEConfigFgrEEStripDat.cc.
References KineDebug3::count(), data, alignCSCRings::e, EcalLogicID::getLogicID(), getLutFg(), getThreshold(), AlCaHLTBitMon_ParallelJobs::p, x, and y.
125 int iconfID = iconf->
fetchID();
126 if (!iconfID) {
throw(std::runtime_error(
"FEConfigFgrEEStripDat::writeArrayDB: ICONF not in DB")); }
129 int nrows=
data->size();
130 int* ids=
new int[nrows];
131 int* iconfid_vec=
new int[nrows];
132 unsigned int* xx=
new unsigned int[nrows];
133 unsigned int* yy=
new unsigned int[nrows];
136 ub2* ids_len=
new ub2[nrows];
137 ub2* iconf_len=
new ub2[nrows];
138 ub2* x_len=
new ub2[nrows];
139 ub2* y_len=
new ub2[nrows];
145 typedef map< EcalLogicID, FEConfigFgrEEStripDat >::const_iterator CI;
146 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
147 channel = &(
p->first);
149 if (!logicID) {
throw(std::runtime_error(
"FEConfigFgrEEStripDat::writeArrayDB: Bad EcalLogicID")); }
151 iconfid_vec[
count]=iconfID;
153 dataitem = &(
p->second);
173 m_writeStmt->setDataBuffer(1, (dvoid*)iconfid_vec, OCCIINT,
sizeof(iconfid_vec[0]),iconf_len);
174 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len );
175 m_writeStmt->setDataBuffer(3, (dvoid*)xx, OCCIUNSIGNED_INT ,
sizeof(xx[0]), x_len );
176 m_writeStmt->setDataBuffer(4, (dvoid*)yy, OCCIUNSIGNED_INT ,
sizeof(yy[0]), y_len );
181 delete [] iconfid_vec;
191 throw(std::runtime_error(
"FEConfigFgrEEStripDat::writeArrayDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
unsigned int getThreshold() const
oracle::occi::SQLException SQLException
unsigned int getLutFg() const
char data[epos_bytes_allocation]
void checkConnection() const
Definition at line 49 of file FEConfigFgrEEStripDat.cc.
References alignCSCRings::e.
56 if (!iconfID) {
throw(std::runtime_error(
"FEConfigFgrEEStripDat::writeDB: ICONF not in DB")); }
59 if (!logicID) {
throw(std::runtime_error(
"FEConfigFgrEEStripDat::writeDB: Bad EcalLogicID")); }
69 throw(std::runtime_error(
"FEConfigFgrEEStripDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
unsigned int getThreshold() const
oracle::occi::SQLException SQLException
unsigned int getLutFg() const
void checkConnection() const
unsigned int FEConfigFgrEEStripDat::m_lut_fg |
|
private |
unsigned int FEConfigFgrEEStripDat::m_thresh |
|
private |