#include <RunConfigDat.h>
Definition at line 11 of file RunConfigDat.h.
◆ RunConfigDat()
RunConfigDat::RunConfigDat |
( |
| ) |
|
◆ ~RunConfigDat()
RunConfigDat::~RunConfigDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 64 of file RunConfigDat.cc.
77 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
78 "d.config_tag, d.config_ver "
79 "FROM channelview cv JOIN run_config_dat d "
80 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
81 "WHERE d.iov_id = :iov_id");
85 std::pair<EcalLogicID, RunConfigDat>
p;
87 while (rset->next()) {
101 }
catch (SQLException&
e) {
102 throw(std::runtime_error(
"RunConfigDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setConfigTag(), and setConfigVersion().
◆ getConfigTag()
std::string RunConfigDat::getConfigTag |
( |
| ) |
const |
|
inline |
◆ getConfigVersion()
int RunConfigDat::getConfigVersion |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunConfigDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunConfigDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 23 of file RunConfigDat.cc.
29 "INSERT INTO run_config_dat (iov_id, logic_id, "
30 "config_tag, config_ver) "
31 "VALUES (:iov_id, :logic_id, "
32 ":config_tag, :config_ver)");
33 }
catch (SQLException&
e) {
34 throw(std::runtime_error(
"RunConfigDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setConfigTag()
void RunConfigDat::setConfigTag |
( |
std::string |
tag | ) |
|
|
inline |
◆ setConfigVersion()
void RunConfigDat::setConfigVersion |
( |
int |
ver | ) |
|
|
inline |
◆ writeDB()
Definition at line 38 of file RunConfigDat.cc.
44 throw(std::runtime_error(
"RunConfigDat::writeDB: IOV not in DB"));
49 throw(std::runtime_error(
"RunConfigDat::writeDB: Bad EcalLogicID"));
59 }
catch (SQLException&
e) {
60 throw(std::runtime_error(
"RunConfigDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_configTag
std::string RunConfigDat::m_configTag |
|
private |
◆ m_configVer
int RunConfigDat::m_configVer |
|
private |