#include <CaliGeneralDat.h>
Definition at line 12 of file CaliGeneralDat.h.
◆ CaliGeneralDat()
CaliGeneralDat::CaliGeneralDat |
( |
| ) |
|
◆ ~CaliGeneralDat()
CaliGeneralDat::~CaliGeneralDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 65 of file CaliGeneralDat.cc.
78 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
79 "d.num_events, d.comments "
80 "FROM channelview cv JOIN cali_general_dat d "
81 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
82 "WHERE d.iov_id = :iov_id");
86 std::pair<EcalLogicID, CaliGeneralDat>
p;
88 while (rset->next()) {
102 }
catch (SQLException&
e) {
103 throw(std::runtime_error(
"CaliGeneralDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setComments(), and setNumEvents().
◆ getComments()
std::string CaliGeneralDat::getComments |
( |
| ) |
const |
|
inline |
◆ getNumEvents()
int CaliGeneralDat::getNumEvents |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string CaliGeneralDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void CaliGeneralDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 23 of file CaliGeneralDat.cc.
29 "INSERT INTO cali_general_dat (iov_id, logic_id, "
30 "num_events, comments) "
31 "VALUES (:iov_id, :logic_id, "
33 }
catch (SQLException&
e) {
34 throw(std::runtime_error(
"CaliGeneralDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setComments()
void CaliGeneralDat::setComments |
( |
std::string |
comments | ) |
|
|
inline |
◆ setNumEvents()
void CaliGeneralDat::setNumEvents |
( |
int |
n | ) |
|
|
inline |
◆ writeDB()
Definition at line 38 of file CaliGeneralDat.cc.
44 throw(std::runtime_error(
"CaliGeneralDat::writeDB: IOV not in DB"));
49 throw(std::runtime_error(
"CaliGeneralDat::writeDB: Bad EcalLogicID"));
60 }
catch (SQLException&
e) {
61 throw(std::runtime_error(
"CaliGeneralDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_comments
std::string CaliGeneralDat::m_comments |
|
private |
◆ m_numEvents
int CaliGeneralDat::m_numEvents |
|
private |