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