#include <CaliHVScanRatioDat.h>
Definition at line 12 of file CaliHVScanRatioDat.h.
◆ CaliHVScanRatioDat()
CaliHVScanRatioDat::CaliHVScanRatioDat |
( |
| ) |
|
◆ ~CaliHVScanRatioDat()
CaliHVScanRatioDat::~CaliHVScanRatioDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 69 of file CaliHVScanRatioDat.cc.
81 Statement* stmt =
m_conn->createStatement();
83 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
84 "d.hvratio, d.hvratio_rms, d.task_status "
85 "FROM channelview cv JOIN cali_hv_scan_ratio_dat d "
86 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
87 "WHERE d.iov_id = :iov_id");
88 stmt->setInt(1, iovID);
89 ResultSet* rset = stmt->executeQuery();
91 std::pair<EcalLogicID, CaliHVScanRatioDat>
p;
93 while (rset->next()) {
108 }
catch (SQLException&
e) {
109 throw(std::runtime_error(
"CaliHVScanRatioDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setHVRatio(), setHVRatioRMS(), and setTaskStatus().
◆ getHVRatio()
float CaliHVScanRatioDat::getHVRatio |
( |
| ) |
const |
|
inline |
◆ getHVRatioRMS()
float CaliHVScanRatioDat::getHVRatioRMS |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string CaliHVScanRatioDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTaskStatus()
bool CaliHVScanRatioDat::getTaskStatus |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void CaliHVScanRatioDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 24 of file CaliHVScanRatioDat.cc.
30 "INSERT INTO cali_hv_scan_ratio_dat (iov_id, logic_id, "
31 "hvratio, hvratio_rms, task_status) "
32 "VALUES (:iov_id, :logic_id, "
34 }
catch (SQLException&
e) {
35 throw(std::runtime_error(
"CaliHVScanRatioDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setHVRatio()
void CaliHVScanRatioDat::setHVRatio |
( |
float |
c | ) |
|
|
inline |
◆ setHVRatioRMS()
void CaliHVScanRatioDat::setHVRatioRMS |
( |
float |
c | ) |
|
|
inline |
◆ setTaskStatus()
void CaliHVScanRatioDat::setTaskStatus |
( |
bool |
s | ) |
|
|
inline |
◆ writeDB()
Definition at line 39 of file CaliHVScanRatioDat.cc.
47 throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB: IOV not in DB"));
52 throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB: Bad EcalLogicID"));
64 }
catch (SQLException&
e) {
65 throw(std::runtime_error(
"CaliHVScanRatioDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_hvratio
float CaliHVScanRatioDat::m_hvratio |
|
private |
◆ m_hvratioRMS
float CaliHVScanRatioDat::m_hvratioRMS |
|
private |
◆ m_taskStatus
bool CaliHVScanRatioDat::m_taskStatus |
|
private |