#include <RunMemChErrorsDat.h>
Definition at line 12 of file RunMemChErrorsDat.h.
◆ RunMemChErrorsDat()
RunMemChErrorsDat::RunMemChErrorsDat |
( |
| ) |
|
◆ ~RunMemChErrorsDat()
RunMemChErrorsDat::~RunMemChErrorsDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 62 of file RunMemChErrorsDat.cc.
76 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
77 "to_char(d.error_bits) "
78 "FROM channelview cv JOIN run_mem_ch_errors_dat d "
79 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
80 "WHERE d.iov_id = :iov_id");
84 std::pair<EcalLogicID, RunMemChErrorsDat>
p;
86 while (rset->next()) {
94 dat.
setErrorBits(boost::lexical_cast<uint64_t>(rset->getString(7)));
100 }
catch (SQLException&
e) {
101 throw(std::runtime_error(
"RunMemChErrorsDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
◆ getErrorBits()
uint64_t RunMemChErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunMemChErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunMemChErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file RunMemChErrorsDat.cc.
29 "INSERT INTO run_mem_ch_errors_dat (iov_id, logic_id, "
31 "VALUES (:iov_id, :logic_id, "
32 "to_number(:error_bits))");
33 }
catch (SQLException&
e) {
34 throw(std::runtime_error(
"RunMemChErrorsDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setErrorBits()
void RunMemChErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
◆ writeDB()
Definition at line 38 of file RunMemChErrorsDat.cc.
44 throw(std::runtime_error(
"RunMemChErrorsDat::writeDB: IOV not in DB"));
49 throw(std::runtime_error(
"RunMemChErrorsDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"RunMemChErrorsDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_errorBits
uint64_t RunMemChErrorsDat::m_errorBits |
|
private |