#include <DCULVRTempsDat.h>
Definition at line 12 of file DCULVRTempsDat.h.
◆ DCULVRTempsDat()
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::~DCULVRTempsDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 68 of file DCULVRTempsDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setT1(), setT2(), and setT3().
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)
◆ getT1()
float DCULVRTempsDat::getT1 |
( |
| ) |
const |
|
inline |
◆ getT2()
float DCULVRTempsDat::getT2 |
( |
| ) |
const |
|
inline |
◆ getT3()
float DCULVRTempsDat::getT3 |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string DCULVRTempsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void DCULVRTempsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 25 of file DCULVRTempsDat.cc.
References MillePedeFileConverter_cfg::e.
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)
◆ setT1()
void DCULVRTempsDat::setT1 |
( |
float |
temp | ) |
|
|
inline |
◆ setT2()
void DCULVRTempsDat::setT2 |
( |
float |
temp | ) |
|
|
inline |
◆ setT3()
void DCULVRTempsDat::setT3 |
( |
float |
temp | ) |
|
|
inline |
◆ writeArrayDB()
◆ writeDB()
Definition at line 40 of file DCULVRTempsDat.cc.
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
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 checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_t1
float DCULVRTempsDat::m_t1 |
|
private |
◆ m_t2
float DCULVRTempsDat::m_t2 |
|
private |
◆ m_t3
float DCULVRTempsDat::m_t3 |
|
private |