#include <RunTTErrorsDat.h>
Definition at line 12 of file RunTTErrorsDat.h.
◆ RunTTErrorsDat()
RunTTErrorsDat::RunTTErrorsDat |
( |
| ) |
|
◆ ~RunTTErrorsDat()
RunTTErrorsDat::~RunTTErrorsDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 63 of file RunTTErrorsDat.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_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, RunTTErrorsDat>
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(
"RunTTErrorsDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
◆ getErrorBits()
uint64_t RunTTErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunTTErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunTTErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 23 of file RunTTErrorsDat.cc.
30 "INSERT INTO run_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(
"RunTTErrorsDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setErrorBits()
void RunTTErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
◆ writeDB()
Definition at line 39 of file RunTTErrorsDat.cc.
45 throw(std::runtime_error(
"RunTTErrorsDat::writeDB: IOV not in DB"));
50 throw(std::runtime_error(
"RunTTErrorsDat::writeDB: Bad EcalLogicID"));
58 }
catch (SQLException&
e) {
59 throw(std::runtime_error(
"RunTTErrorsDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_errorBits
uint64_t RunTTErrorsDat::m_errorBits |
|
private |