#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 78 of file DCULVRTempsDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setT1(), setT2(), and setT3().
Referenced by getT3().
93 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 95 "FROM channelview cv JOIN dcu_lvr_temps_dat d " 96 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 97 "WHERE d.iov_id = :iov_id");
101 std::pair< EcalLogicID, DCULVRTempsDat >
p;
103 while(rset->next()) {
111 dat.
setT1( rset->getFloat(7) );
112 dat.
setT2( rset->getFloat(8) );
113 dat.
setT3( rset->getFloat(9) );
118 }
catch (SQLException &
e) {
119 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 32 of file DCULVRTempsDat.cc.
References MillePedeFileConverter_cfg::e.
Referenced by getT3().
39 m_writeStmt->setSQL(
"INSERT INTO dcu_lvr_temps_dat (iov_id, logic_id, " 41 "VALUES (:iov_id, :logic_id, " 43 }
catch (SQLException &
e) {
44 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 50 of file DCULVRTempsDat.cc.
References MillePedeFileConverter_cfg::e.
Referenced by getT3().
57 if (!iovID) {
throw(std::runtime_error(
"DCULVRTempsDat::writeDB: IOV not in DB")); }
60 if (!logicID) {
throw(std::runtime_error(
"DCULVRTempsDat::writeDB: Bad EcalLogicID")); }
71 }
catch (SQLException &
e) {
72 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 |