#include <MonLaserStatusDat.h>
Definition at line 11 of file MonLaserStatusDat.h.
MonLaserStatusDat::MonLaserStatusDat |
( |
| ) |
|
Definition at line 10 of file MonLaserStatusDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
MonLaserStatusDat::~MonLaserStatusDat |
( |
| ) |
|
|
override |
Definition at line 70 of file MonLaserStatusDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, setLaserFanout(), setLaserFilter(), setLaserPower(), and setLaserWavelength().
83 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
84 "d.laser_power, d.laser_filter, d.laser_wavelength, d.laser_fanout "
85 "FROM channelview cv JOIN mon_laser_status_dat d "
86 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
87 "WHERE d.iov_id = :iov_id");
91 std::pair<EcalLogicID, MonLaserStatusDat>
p;
93 while (rset->next()) {
109 }
catch (SQLException&
e) {
110 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 checkConnection() const noexcept(false)
void setLaserPower(float p)
void setLaserWavelength(float p)
int fetchID() noexcept(false) override
oracle::occi::Statement * m_readStmt
static std::vector< std::string > checklist dat
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
float MonLaserStatusDat::getLaserFanout |
( |
| ) |
const |
|
inline |
float MonLaserStatusDat::getLaserFilter |
( |
| ) |
const |
|
inline |
float MonLaserStatusDat::getLaserPower |
( |
| ) |
const |
|
inline |
float MonLaserStatusDat::getLaserWavelength |
( |
| ) |
const |
|
inline |
std::string MonLaserStatusDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void MonLaserStatusDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 24 of file MonLaserStatusDat.cc.
References alignCSCRings::e.
30 "INSERT INTO mon_laser_status_dat (iov_id, logic_id, "
31 "laser_power, laser_filter, laser_wavelength, laser_fanout) "
32 "VALUES (:iov_id, :logic_id, "
34 }
catch (SQLException&
e) {
35 throw(std::runtime_error(
"MonLaserStatusDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
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 39 of file MonLaserStatusDat.cc.
References alignCSCRings::e, and B2GTnPMonitor_cfi::item.
47 throw(std::runtime_error(
"MonLaserStatusDat::writeDB: IOV not in DB"));
52 throw(std::runtime_error(
"MonLaserStatusDat::writeDB: Bad EcalLogicID"));
65 }
catch (SQLException&
e) {
66 throw(std::runtime_error(
"MonLaserStatusDat::writeDB(): " + e.getMessage()));
float getLaserWavelength() const
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
float getLaserPower() const
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
float getLaserFilter() const
float getLaserFanout() const
float MonLaserStatusDat::m_laserFanout |
|
private |
float MonLaserStatusDat::m_laserFilter |
|
private |
float MonLaserStatusDat::m_laserPower |
|
private |
float MonLaserStatusDat::m_laserWavelength |
|
private |