#include <DCULVRTempsDat.h>
Definition at line 12 of file DCULVRTempsDat.h.
DCULVRTempsDat::DCULVRTempsDat |
( |
| ) |
|
Definition at line 12 of file DCULVRTempsDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
DCULVRTempsDat::~DCULVRTempsDat |
( |
| ) |
|
|
override |
Definition at line 68 of file DCULVRTempsDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setT1(), setT2(), and setT3().
Referenced by getT3().
81 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 83 "FROM channelview cv JOIN dcu_lvr_temps_dat d " 84 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 85 "WHERE d.iov_id = :iov_id");
89 std::pair<EcalLogicID, DCULVRTempsDat>
p;
91 while (rset->next()) {
99 dat.
setT1(rset->getFloat(7));
100 dat.
setT2(rset->getFloat(8));
101 dat.
setT3(rset->getFloat(9));
106 }
catch (SQLException&
e) {
107 throw(std::runtime_error(
"DCULVRTempsDat::fetchData(): " + e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement * m_readStmt
int fetchID() noexcept(false) override
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
float DCULVRTempsDat::getT1 |
( |
| ) |
const |
|
inline |
float DCULVRTempsDat::getT2 |
( |
| ) |
const |
|
inline |
float DCULVRTempsDat::getT3 |
( |
| ) |
const |
|
inline |
std::string DCULVRTempsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void DCULVRTempsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 25 of file DCULVRTempsDat.cc.
References MillePedeFileConverter_cfg::e.
Referenced by getT3().
31 "INSERT INTO dcu_lvr_temps_dat (iov_id, logic_id, " 33 "VALUES (:iov_id, :logic_id, " 35 }
catch (SQLException&
e) {
36 throw(std::runtime_error(
"DCULVRTempsDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void DCULVRTempsDat::setT1 |
( |
float |
temp | ) |
|
|
inline |
void DCULVRTempsDat::setT2 |
( |
float |
temp | ) |
|
|
inline |
void DCULVRTempsDat::setT3 |
( |
float |
temp | ) |
|
|
inline |
Definition at line 40 of file DCULVRTempsDat.cc.
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
Referenced by getT3().
46 throw(std::runtime_error(
"DCULVRTempsDat::writeDB: IOV not in DB"));
51 throw(std::runtime_error(
"DCULVRTempsDat::writeDB: Bad EcalLogicID"));
63 }
catch (SQLException&
e) {
64 throw(std::runtime_error(
"DCULVRTempsDat::writeDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkPrepare() noexcept(false)
void checkConnection() const noexcept(false)
int fetchID() noexcept(false) override
float DCULVRTempsDat::m_t1 |
|
private |
float DCULVRTempsDat::m_t2 |
|
private |
float DCULVRTempsDat::m_t3 |
|
private |