#include <DCUVFETempDat.h>
Definition at line 12 of file DCUVFETempDat.h.
DCUVFETempDat::DCUVFETempDat |
( |
| ) |
|
Definition at line 12 of file DCUVFETempDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
DCUVFETempDat::~DCUVFETempDat |
( |
| ) |
|
|
override |
Definition at line 64 of file DCUVFETempDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, and setVFETemp().
77 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
79 "FROM channelview cv JOIN dcu_vfe_temp_dat d "
80 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
81 "WHERE d.iov_id = :iov_id");
85 std::pair<EcalLogicID, DCUVFETempDat>
p;
87 while (rset->next()) {
100 }
catch (SQLException&
e) {
101 throw(std::runtime_error(
"DCUVFETempDat::fetchData(): " + e.getMessage()));
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
int fetchID() noexcept(false) override
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void setVFETemp(float temp)
std::string DCUVFETempDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
float DCUVFETempDat::getVFETemp |
( |
| ) |
const |
|
inline |
void DCUVFETempDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 23 of file DCUVFETempDat.cc.
References alignCSCRings::e.
29 "INSERT INTO dcu_vfe_temp_dat (iov_id, logic_id, "
31 "VALUES (:iov_id, :logic_id, "
33 }
catch (SQLException&
e) {
34 throw(std::runtime_error(
"DCUVFETempDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void DCUVFETempDat::setVFETemp |
( |
float |
temp | ) |
|
|
inline |
Definition at line 105 of file DCUVFETempDat.cc.
References submitPVResolutionJobs::count, data, alignCSCRings::e, EcalLogicID::getLogicID(), getVFETemp(), AlCaHLTBitMon_ParallelJobs::p, and x.
111 throw(std::runtime_error(
"DCUVFETempDat::writeArrayDB: IOV not in DB"));
114 int nrows =
data->size();
115 int* ids =
new int[nrows];
116 int* iovid_vec =
new int[nrows];
117 float* xx =
new float[nrows];
119 ub2* ids_len =
new ub2[nrows];
120 ub2* iov_len =
new ub2[nrows];
121 ub2* x_len =
new ub2[nrows];
126 typedef map<EcalLogicID, DCUVFETempDat>::const_iterator CI;
127 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
128 channel = &(
p->first);
131 throw(std::runtime_error(
"DCUVFETempDat::writeArrayDB: Bad EcalLogicID"));
133 ids[
count] = logicID;
134 iovid_vec[
count] = iovID;
136 dataitem = &(
p->second);
151 m_writeStmt->setDataBuffer(1, (dvoid*)iovid_vec, OCCIINT,
sizeof(iovid_vec[0]), iov_len);
152 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
153 m_writeStmt->setDataBuffer(3, (dvoid*)xx, OCCIFLOAT,
sizeof(xx[0]), x_len);
165 }
catch (SQLException&
e) {
166 throw(std::runtime_error(
"DCUVFETempDat::writeArrayDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
char data[epos_bytes_allocation]
Definition at line 38 of file DCUVFETempDat.cc.
References alignCSCRings::e, and B2GTnPMonitor_cfi::item.
44 throw(std::runtime_error(
"DCUVFETempDat::writeDB: IOV not in DB"));
49 throw(std::runtime_error(
"DCUVFETempDat::writeDB: Bad EcalLogicID"));
59 }
catch (SQLException&
e) {
60 throw(std::runtime_error(
"DCUVFETempDat::writeDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
float DCUVFETempDat::m_vfeTemp |
|
private |