#include <RunLaserRunDat.h>
Definition at line 11 of file RunLaserRunDat.h.
◆ RunLaserRunDat()
RunLaserRunDat::RunLaserRunDat |
( |
| ) |
|
Definition at line 11 of file RunLaserRunDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
std::string m_laserSeqCond
std::string m_laserSeqType
◆ ~RunLaserRunDat()
RunLaserRunDat::~RunLaserRunDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 62 of file RunLaserRunDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setLaserSequenceCond(), and setLaserSequenceType().
74 Statement* stmt =
m_conn->createStatement();
76 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 77 "d.laser_sequence_type, d.laser_sequence_cond " 78 "FROM channelview cv JOIN run_laserrun_config_dat d " 79 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 80 "WHERE d.iov_id = :iov_id");
81 stmt->setInt(1, iovID);
82 ResultSet* rset = stmt->executeQuery();
84 std::pair<EcalLogicID, RunLaserRunDat>
p;
86 while (rset->next()) {
100 m_conn->terminateStatement(stmt);
101 }
catch (SQLException&
e) {
102 throw(std::runtime_error(
"RunLaserRunDat::fetchData(): " +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setLaserSequenceCond(std::string x)
void setLaserSequenceType(std::string x)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getLaserSequenceCond()
std::string RunLaserRunDat::getLaserSequenceCond |
( |
| ) |
const |
|
inline |
◆ getLaserSequenceType()
std::string RunLaserRunDat::getLaserSequenceType |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunLaserRunDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunLaserRunDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 21 of file RunLaserRunDat.cc.
References MillePedeFileConverter_cfg::e.
27 "INSERT INTO run_laserrun_config_dat (iov_id, logic_id, " 28 "laser_sequence_type, laser_sequence_cond) " 31 }
catch (SQLException&
e) {
32 throw(std::runtime_error(
"RunLaserRunDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
◆ setLaserSequenceCond()
void RunLaserRunDat::setLaserSequenceCond |
( |
std::string |
x | ) |
|
|
inline |
◆ setLaserSequenceType()
void RunLaserRunDat::setLaserSequenceType |
( |
std::string |
x | ) |
|
|
inline |
◆ writeDB()
Definition at line 36 of file RunLaserRunDat.cc.
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
42 throw(std::runtime_error(
"RunLaserRunDat::writeDB: IOV not in DB"));
47 throw(std::runtime_error(
"RunLaserRunDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"RunLaserRunDat::writeDB(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_laserSeqCond
std::string RunLaserRunDat::m_laserSeqCond |
|
private |
◆ m_laserSeqType
std::string RunLaserRunDat::m_laserSeqType |
|
private |