#include <DCULVRTempsDat.h>
Definition at line 12 of file DCULVRTempsDat.h.
DCULVRTempsDat::DCULVRTempsDat |
( |
| ) |
|
Definition at line 12 of file DCULVRTempsDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
DCULVRTempsDat::~DCULVRTempsDat |
( |
| ) |
|
Definition at line 78 of file DCULVRTempsDat.cc.
References dat, alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, setT1(), setT2(), and setT3().
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) );
119 throw(std::runtime_error(
"DCULVRTempsDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement * m_readStmt
static std::vector< std::string > checklist dat
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
float DCULVRTempsDat::getT1 |
( |
| ) |
const |
|
inline |
float DCULVRTempsDat::getT2 |
( |
| ) |
const |
|
inline |
float DCULVRTempsDat::getT3 |
( |
| ) |
const |
|
inline |
std::string DCULVRTempsDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void DCULVRTempsDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 32 of file DCULVRTempsDat.cc.
References alignCSCRings::e.
39 m_writeStmt->setSQL(
"INSERT INTO dcu_lvr_temps_dat (iov_id, logic_id, "
41 "VALUES (:iov_id, :logic_id, "
44 throw(std::runtime_error(
"DCULVRTempsDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
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 alignCSCRings::e, and o2o::iov.
57 if (!iovID) {
throw(std::runtime_error(
"DCULVRTempsDat::writeDB: IOV not in DB")); }
60 if (!logicID) {
throw(std::runtime_error(
"DCULVRTempsDat::writeDB: Bad EcalLogicID")); }
72 throw(std::runtime_error(
"DCULVRTempsDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
void checkConnection() const
float DCULVRTempsDat::m_t1 |
|
private |
float DCULVRTempsDat::m_t2 |
|
private |
float DCULVRTempsDat::m_t3 |
|
private |