#include <RunCrystalErrorsDat.h>
Definition at line 12 of file RunCrystalErrorsDat.h.
◆ RunCrystalErrorsDat()
RunCrystalErrorsDat::RunCrystalErrorsDat |
( |
| ) |
|
◆ ~RunCrystalErrorsDat()
RunCrystalErrorsDat::~RunCrystalErrorsDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 63 of file RunCrystalErrorsDat.cc.
75 Statement* stmt =
m_conn->createStatement();
78 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
79 "to_char(d.error_bits) "
80 "FROM channelview cv JOIN run_crystal_errors_dat d "
81 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
82 "WHERE d.iov_id = :iov_id");
83 stmt->setInt(1, iovID);
84 ResultSet* rset = stmt->executeQuery();
86 std::pair<EcalLogicID, RunCrystalErrorsDat>
p;
88 while (rset->next()) {
96 dat.
setErrorBits(boost::lexical_cast<uint64_t>(rset->getString(7)));
101 m_conn->terminateStatement(stmt);
103 }
catch (SQLException&
e) {
104 throw(std::runtime_error(
"RunCrystalErrorsDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
◆ getErrorBits()
uint64_t RunCrystalErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunCrystalErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunCrystalErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 21 of file RunCrystalErrorsDat.cc.
28 "INSERT INTO run_crystal_errors_dat (iov_id, logic_id, "
30 "VALUES (:iov_id, :logic_id, "
31 "to_number(:error_bits))");
32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"RunCrystalErrorsDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setErrorBits()
void RunCrystalErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
◆ writeDB()
Definition at line 37 of file RunCrystalErrorsDat.cc.
45 throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB: IOV not in DB"));
50 throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB: Bad EcalLogicID"));
58 }
catch (SQLException&
e) {
59 throw(std::runtime_error(
"RunCrystalErrorsDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_errorBits
uint64_t RunCrystalErrorsDat::m_errorBits |
|
private |