#include <FEConfigLUTParamDat.h>
Definition at line 11 of file FEConfigLUTParamDat.h.
FEConfigLUTParamDat::FEConfigLUTParamDat |
( |
| ) |
|
Definition at line 11 of file FEConfigLUTParamDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
FEConfigLUTParamDat::~FEConfigLUTParamDat |
( |
| ) |
|
Definition at line 77 of file FEConfigLUTParamDat.cc.
References edm::pset::fillMap(), L1TEmulatorMonitor_cff::p, setETSat(), setTTThreshhigh(), and setTTThreshlow().
92 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
93 " d.etsat, d.ttthreshlow, d.ttthreshhigh "
94 "FROM channelview cv JOIN "+
getTable()+
" d "
95 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
96 "WHERE lut_conf_id = :lut_conf_id");
100 std::pair< EcalLogicID, FEConfigLUTParamDat >
p;
102 while(rset->next()) {
120 throw(std::runtime_error(
"FEConfigLUTParamDat::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 setTTThreshhigh(float x)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void fillMap(Registry *reg, regmap_type &fillme)
void setTTThreshlow(float x)
void checkConnection() const
float FEConfigLUTParamDat::getETSat |
( |
| ) |
const |
|
inline |
std::string FEConfigLUTParamDat::getTable |
( |
| ) |
|
|
inlinevirtual |
float FEConfigLUTParamDat::getTTThreshhigh |
( |
| ) |
const |
|
inline |
float FEConfigLUTParamDat::getTTThreshlow |
( |
| ) |
const |
|
inline |
void FEConfigLUTParamDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 32 of file FEConfigLUTParamDat.cc.
40 " etsat, ttthreshlow, ttthreshhigh ) "
41 "VALUES (:lut_conf_id, :logic_id, "
42 ":etsat, :ttthreshlow, :ttthreshhigh )" );
44 throw(std::runtime_error(
"FEConfigLUTParamDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void FEConfigLUTParamDat::setETSat |
( |
float |
x | ) |
|
|
inline |
void FEConfigLUTParamDat::setTTThreshhigh |
( |
float |
x | ) |
|
|
inline |
void FEConfigLUTParamDat::setTTThreshlow |
( |
float |
x | ) |
|
|
inline |
Definition at line 124 of file FEConfigLUTParamDat.cc.
References prof2calltree::count, runTheMatrix::data, getETSat(), EcalLogicID::getLogicID(), getTTThreshhigh(), getTTThreshlow(), L1TEmulatorMonitor_cff::p, x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
130 int iconfID = iconf->
fetchID();
131 if (!iconfID) {
throw(std::runtime_error(
"FEConfigLUTParamDat::writeArrayDB: ICONF not in DB")); }
134 int nrows=
data->size();
135 int* ids=
new int[nrows];
136 int* iov_vec=
new int[nrows];
137 float* xx=
new float[nrows];
138 float* yy=
new float[nrows];
139 float* zz=
new float[nrows];
142 ub2* ids_len=
new ub2[nrows];
143 ub2* iov_len=
new ub2[nrows];
144 ub2* x_len=
new ub2[nrows];
145 ub2* y_len=
new ub2[nrows];
146 ub2* z_len=
new ub2[nrows];
152 typedef map< EcalLogicID, FEConfigLUTParamDat >::const_iterator CI;
153 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
154 channel = &(
p->first);
156 if (!logicID) {
throw(std::runtime_error(
"FEConfigLUTParamDat::writeArrayDB: Bad EcalLogicID")); }
158 iov_vec[
count]=iconfID;
160 dataitem = &(
p->second);
183 m_writeStmt->setDataBuffer(1, (dvoid*)iov_vec, OCCIINT,
sizeof(iov_vec[0]),iov_len);
184 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len );
185 m_writeStmt->setDataBuffer(3, (dvoid*)xx, OCCIFLOAT ,
sizeof(xx[0]), x_len );
186 m_writeStmt->setDataBuffer(4, (dvoid*)yy, OCCIFLOAT ,
sizeof(yy[0]), y_len );
187 m_writeStmt->setDataBuffer(5, (dvoid*)zz, OCCIFLOAT ,
sizeof(zz[0]), z_len );
204 throw(std::runtime_error(
"FEConfigLUTParamDat::writeArrayDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
float getTTThreshhigh() const
oracle::occi::SQLException SQLException
float getTTThreshlow() const
void checkConnection() const
Definition at line 50 of file FEConfigLUTParamDat.cc.
57 if (!iconfID) {
throw(std::runtime_error(
"FEConfigLUTParamDat::writeDB: ICONF not in DB")); }
60 if (!logicID) {
throw(std::runtime_error(
"FEConfigLUTParamDat::writeDB: Bad EcalLogicID")); }
71 throw(std::runtime_error(
"FEConfigLUTParamDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
float getTTThreshhigh() const
oracle::occi::SQLException SQLException
float getTTThreshlow() const
void checkConnection() const
float FEConfigLUTParamDat::m_etsat |
|
private |
float FEConfigLUTParamDat::m_tthreshhigh |
|
private |
float FEConfigLUTParamDat::m_tthreshlow |
|
private |