#include <RunMemTTErrorsDat.h>
Definition at line 12 of file RunMemTTErrorsDat.h.
◆ RunMemTTErrorsDat()
RunMemTTErrorsDat::RunMemTTErrorsDat |
( |
| ) |
|
◆ ~RunMemTTErrorsDat()
RunMemTTErrorsDat::~RunMemTTErrorsDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 63 of file RunMemTTErrorsDat.cc.
77 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
78 "to_char(d.error_bits) "
79 "FROM channelview cv JOIN run_mem_tt_errors_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, RunMemTTErrorsDat>
p;
87 while (rset->next()) {
95 dat.
setErrorBits(boost::lexical_cast<uint64_t>(rset->getString(7)));
101 }
catch (SQLException&
e) {
102 throw(std::runtime_error(
"RunMemTTErrorsDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
◆ getErrorBits()
uint64_t RunMemTTErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunMemTTErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunMemTTErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 23 of file RunMemTTErrorsDat.cc.
30 "INSERT INTO run_mem_tt_errors_dat (iov_id, logic_id, "
32 "VALUES (:iov_id, :logic_id, "
33 "to_number(:error_bits))");
34 }
catch (SQLException&
e) {
35 throw(std::runtime_error(
"RunMemTTErrorsDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setErrorBits()
void RunMemTTErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
◆ writeDB()
Definition at line 39 of file RunMemTTErrorsDat.cc.
45 throw(std::runtime_error(
"RunMemTTErrorsDat::writeDB: IOV not in DB"));
50 throw(std::runtime_error(
"RunMemTTErrorsDat::writeDB: Bad EcalLogicID"));
58 }
catch (SQLException&
e) {
59 throw(std::runtime_error(
"RunMemTTErrorsDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_errorBits
uint64_t RunMemTTErrorsDat::m_errorBits |
|
private |