#include <RunLaserRunDat.h>
Definition at line 11 of file RunLaserRunDat.h.
RunLaserRunDat::RunLaserRunDat |
( |
| ) |
|
Definition at line 11 of file RunLaserRunDat.cc.
References NULL.
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 |
( |
| ) |
|
Definition at line 72 of file RunLaserRunDat.cc.
References alignCSCRings::e, edm::pset::fillMap(), o2o::iov, AlCaHLTBitMon_ParallelJobs::p, setLaserSequenceCond(), and setLaserSequenceType().
86 Statement* stmt =
m_conn->createStatement();
87 stmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
88 "d.laser_sequence_type, d.laser_sequence_cond "
89 "FROM channelview cv JOIN run_laserrun_config_dat d "
90 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
91 "WHERE d.iov_id = :iov_id");
92 stmt->setInt(1, iovID);
95 std::pair< EcalLogicID, RunLaserRunDat >
p;
111 m_conn->terminateStatement(stmt);
113 throw(std::runtime_error(
"RunLaserRunDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void setLaserSequenceCond(std::string x)
void setLaserSequenceType(std::string x)
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void fillMap(Registry *reg, regmap_type &fillme)
void checkConnection() const
std::string RunLaserRunDat::getLaserSequenceCond |
( |
| ) |
const |
|
inline |
std::string RunLaserRunDat::getLaserSequenceType |
( |
| ) |
const |
|
inline |
std::string RunLaserRunDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void RunLaserRunDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 28 of file RunLaserRunDat.cc.
References alignCSCRings::e.
35 m_writeStmt->setSQL(
"INSERT INTO run_laserrun_config_dat (iov_id, logic_id, "
36 "laser_sequence_type, laser_sequence_cond) "
40 throw(std::runtime_error(
"RunLaserRunDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void RunLaserRunDat::setLaserSequenceCond |
( |
std::string |
x | ) |
|
|
inline |
void RunLaserRunDat::setLaserSequenceType |
( |
std::string |
x | ) |
|
|
inline |
Definition at line 46 of file RunLaserRunDat.cc.
References alignCSCRings::e, and o2o::iov.
53 if (!iovID) {
throw(std::runtime_error(
"RunLaserRunDat::writeDB: IOV not in DB")); }
56 if (!logicID) {
throw(std::runtime_error(
"RunLaserRunDat::writeDB: Bad EcalLogicID")); }
66 throw(std::runtime_error(
"RunLaserRunDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
std::string getLaserSequenceCond() const
std::string getLaserSequenceType() const
void checkConnection() const
std::string RunLaserRunDat::m_laserSeqCond |
|
private |
std::string RunLaserRunDat::m_laserSeqType |
|
private |