#include <FEConfigFgrEETowerDat.h>
Definition at line 11 of file FEConfigFgrEETowerDat.h.
FEConfigFgrEETowerDat::FEConfigFgrEETowerDat |
( |
| ) |
|
Definition at line 11 of file FEConfigFgrEETowerDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
FEConfigFgrEETowerDat::~FEConfigFgrEETowerDat |
( |
| ) |
|
|
override |
Definition at line 64 of file FEConfigFgrEETowerDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, and setLutValue().
78 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
80 "FROM channelview cv JOIN " +
83 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
84 "WHERE fgr_conf_id = :fgr_conf_id");
88 std::pair<EcalLogicID, FEConfigFgrEETowerDat>
p;
90 while (rset->next()) {
103 }
catch (SQLException&
e) {
104 throw(std::runtime_error(
"FEConfigFgrEETowerDat::fetchData: " + e.getMessage()));
int fetchID() noexcept(false)
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement * m_readStmt
static std::vector< std::string > checklist dat
std::string getTable() override
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void setLutValue(int mean)
int FEConfigFgrEETowerDat::getLUTValue |
( |
| ) |
const |
|
inline |
int FEConfigFgrEETowerDat::getLutValue |
( |
| ) |
const |
|
inline |
std::string FEConfigFgrEETowerDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void FEConfigFgrEETowerDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file FEConfigFgrEETowerDat.cc.
References alignCSCRings::e.
28 " (fgr_conf_id, logic_id, "
30 "VALUES (:fgr_conf_id, :logic_id, "
32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"FEConfigFgrEETowerDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
std::string getTable() override
void FEConfigFgrEETowerDat::setLUTValue |
( |
int |
mean | ) |
|
|
inline |
void FEConfigFgrEETowerDat::setLutValue |
( |
int |
mean | ) |
|
|
inline |
Definition at line 108 of file FEConfigFgrEETowerDat.cc.
References submitPVResolutionJobs::count, data, alignCSCRings::e, EcalLogicID::getLogicID(), getLutValue(), AlCaHLTBitMon_ParallelJobs::p, and x.
113 int iconfID = iconf->
fetchID();
115 throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeArrayDB: ICONF not in DB"));
118 int nrows =
data->size();
119 int* ids =
new int[nrows];
120 int* iconfid_vec =
new int[nrows];
121 int* xx =
new int[nrows];
123 ub2* ids_len =
new ub2[nrows];
124 ub2* iconf_len =
new ub2[nrows];
125 ub2* x_len =
new ub2[nrows];
130 typedef map<EcalLogicID, FEConfigFgrEETowerDat>::const_iterator CI;
131 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
132 channel = &(
p->first);
135 throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeArrayDB: Bad EcalLogicID"));
137 ids[
count] = logicID;
138 iconfid_vec[
count] = iconfID;
140 dataitem = &(
p->second);
147 iconf_len[
count] =
sizeof(iconfid_vec[
count]);
155 m_writeStmt->setDataBuffer(1, (dvoid*)iconfid_vec, OCCIINT,
sizeof(iconfid_vec[0]), iconf_len);
156 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
157 m_writeStmt->setDataBuffer(3, (dvoid*)xx, OCCIINT,
sizeof(xx[0]), x_len);
162 delete[] iconfid_vec;
169 }
catch (SQLException&
e) {
170 throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeArrayDB(): " + e.getMessage()));
int fetchID() noexcept(false)
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
char data[epos_bytes_allocation]
Definition at line 37 of file FEConfigFgrEETowerDat.cc.
References alignCSCRings::e, and B2GTnPMonitor_cfi::item.
45 throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeDB: ICONF not in DB"));
50 throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeDB: Bad EcalLogicID"));
59 }
catch (SQLException&
e) {
60 throw(std::runtime_error(
"FEConfigFgrEETowerDat::writeDB(): " + e.getMessage()));
int fetchID() noexcept(false)
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int FEConfigFgrEETowerDat::m_lut |
|
private |