#include <MonLaserStatusDat.h>
Definition at line 11 of file MonLaserStatusDat.h.
MonLaserStatusDat::MonLaserStatusDat |
( |
| ) |
|
Definition at line 10 of file MonLaserStatusDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
MonLaserStatusDat::~MonLaserStatusDat |
( |
| ) |
|
Definition at line 78 of file MonLaserStatusDat.cc.
References alignCSCRings::e, edm::pset::fillMap(), o2o::iov, AlCaHLTBitMon_ParallelJobs::p, setLaserFanout(), setLaserFilter(), setLaserPower(), and setLaserWavelength().
93 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
94 "d.laser_power, d.laser_filter, d.laser_wavelength, d.laser_fanout "
95 "FROM channelview cv JOIN mon_laser_status_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, MonLaserStatusDat >
p;
103 while(rset->next()) {
120 throw(std::runtime_error(
"MonLaserStatusDat::fetchData(): "+e.getMessage()));
void setLaserFanout(float p)
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setLaserFilter(float p)
void setLaserPower(float p)
void setLaserWavelength(float p)
oracle::occi::SQLException SQLException
oracle::occi::Statement * m_readStmt
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void fillMap(Registry *reg, regmap_type &fillme)
void checkConnection() const
float MonLaserStatusDat::getLaserFanout |
( |
| ) |
const |
|
inline |
float MonLaserStatusDat::getLaserFilter |
( |
| ) |
const |
|
inline |
float MonLaserStatusDat::getLaserPower |
( |
| ) |
const |
|
inline |
float MonLaserStatusDat::getLaserWavelength |
( |
| ) |
const |
|
inline |
std::string MonLaserStatusDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void MonLaserStatusDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 31 of file MonLaserStatusDat.cc.
References alignCSCRings::e.
38 m_writeStmt->setSQL(
"INSERT INTO mon_laser_status_dat (iov_id, logic_id, "
39 "laser_power, laser_filter, laser_wavelength, laser_fanout) "
40 "VALUES (:iov_id, :logic_id, "
43 throw(std::runtime_error(
"MonLaserStatusDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void MonLaserStatusDat::setLaserFanout |
( |
float |
p | ) |
|
|
inline |
void MonLaserStatusDat::setLaserFilter |
( |
float |
p | ) |
|
|
inline |
void MonLaserStatusDat::setLaserPower |
( |
float |
p | ) |
|
|
inline |
void MonLaserStatusDat::setLaserWavelength |
( |
float |
p | ) |
|
|
inline |
Definition at line 49 of file MonLaserStatusDat.cc.
References alignCSCRings::e, and o2o::iov.
56 if (!iovID) {
throw(std::runtime_error(
"MonLaserStatusDat::writeDB: IOV not in DB")); }
59 if (!logicID) {
throw(std::runtime_error(
"MonLaserStatusDat::writeDB: Bad EcalLogicID")); }
72 throw(std::runtime_error(
"MonLaserStatusDat::writeDB(): "+e.getMessage()));
float getLaserWavelength() const
oracle::occi::Statement * m_writeStmt
float getLaserPower() const
oracle::occi::SQLException SQLException
float getLaserFilter() const
float getLaserFanout() const
void checkConnection() const
float MonLaserStatusDat::m_laserFanout |
|
private |
float MonLaserStatusDat::m_laserFilter |
|
private |
float MonLaserStatusDat::m_laserPower |
|
private |
float MonLaserStatusDat::m_laserWavelength |
|
private |