#include <FEConfigFgrDat.h>
Definition at line 11 of file FEConfigFgrDat.h.
◆ FEConfigFgrDat()
FEConfigFgrDat::FEConfigFgrDat |
( |
| ) |
|
Definition at line 11 of file FEConfigFgrDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
◆ ~FEConfigFgrDat()
FEConfigFgrDat::~FEConfigFgrDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 64 of file FEConfigFgrDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setFgrGroupId().
77 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 79 "FROM channelview cv JOIN fe_config_fgr_dat d " 80 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 81 "WHERE fgr_conf_id = :fgr_conf_id");
85 std::pair<EcalLogicID, FEConfigFgrDat>
p;
87 while (rset->next()) {
100 }
catch (SQLException&
e) {
101 throw(std::runtime_error(
"FEConfigFgrDat::fetchData: " +
e.getMessage()));
int fetchID() noexcept(false)
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setFgrGroupId(int x)
oracle::occi::Statement * m_readStmt
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
◆ getFgrGroupId()
int FEConfigFgrDat::getFgrGroupId |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string FEConfigFgrDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void FEConfigFgrDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file FEConfigFgrDat.cc.
References MillePedeFileConverter_cfg::e.
28 "INSERT INTO fe_config_fgr_dat (fgr_conf_id, logic_id, " 30 "VALUES (:fgr_conf_id, :logic_id, " 32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"FEConfigFgrDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
◆ setFgrGroupId()
void FEConfigFgrDat::setFgrGroupId |
( |
int |
x | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 105 of file FEConfigFgrDat.cc.
References submitPVResolutionJobs::count, data, MillePedeFileConverter_cfg::e, getFgrGroupId(), EcalLogicID::getLogicID(), AlCaHLTBitMon_ParallelJobs::p, x, and geometryCSVtoXML::xx.
110 int iconfID = iconf->
fetchID();
112 throw(std::runtime_error(
"FEConfigFgrDat::writeArrayDB: ICONF not in DB"));
115 int nrows =
data->size();
116 int* ids =
new int[nrows];
117 int* iconfid_vec =
new int[nrows];
118 int*
xx =
new int[nrows];
120 ub2* ids_len =
new ub2[nrows];
121 ub2* iconf_len =
new ub2[nrows];
122 ub2* x_len =
new ub2[nrows];
127 typedef map<EcalLogicID, FEConfigFgrDat>::const_iterator CI;
128 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
129 channel = &(
p->first);
132 throw(std::runtime_error(
"FEConfigFgrDat::writeArrayDB: Bad EcalLogicID"));
134 ids[
count] = logicID;
135 iconfid_vec[
count] = iconfID;
137 dataitem = &(
p->second);
144 iconf_len[
count] =
sizeof(iconfid_vec[
count]);
152 m_writeStmt->setDataBuffer(1, (dvoid*)iconfid_vec, OCCIINT,
sizeof(iconfid_vec[0]), iconf_len);
153 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
154 m_writeStmt->setDataBuffer(3, (dvoid*)
xx, OCCIINT,
sizeof(
xx[0]), x_len);
159 delete[] iconfid_vec;
166 }
catch (SQLException&
e) {
167 throw(std::runtime_error(
"FEConfigFgrDat::writeArrayDB(): " +
e.getMessage()));
int fetchID() noexcept(false)
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int getFgrGroupId() const
char data[epos_bytes_allocation]
◆ writeDB()
Definition at line 37 of file FEConfigFgrDat.cc.
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
45 throw(std::runtime_error(
"FEConfigFgrDat::writeDB: ICONF not in DB"));
50 throw(std::runtime_error(
"FEConfigFgrDat::writeDB: Bad EcalLogicID"));
59 }
catch (SQLException&
e) {
60 throw(std::runtime_error(
"FEConfigFgrDat::writeDB(): " +
e.getMessage()));
int fetchID() noexcept(false)
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
◆ EcalCondDBInterface
◆ m_group_id
int FEConfigFgrDat::m_group_id |
|
private |