#include <MODCCSFEDat.h>
Definition at line 11 of file MODCCSFEDat.h.
◆ MODCCSFEDat()
MODCCSFEDat::MODCCSFEDat |
( |
| ) |
|
◆ ~MODCCSFEDat()
MODCCSFEDat::~MODCCSFEDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 62 of file MODCCSFEDat.cc.
75 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
77 "FROM channelview cv JOIN OD_CCS_FE_dat d "
78 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
79 "WHERE d.iov_id = :iov_id");
83 std::pair<EcalLogicID, MODCCSFEDat>
p;
85 while (rset->next()) {
98 }
catch (SQLException&
e) {
99 throw(std::runtime_error(
"MODCCSFEDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setWord().
◆ getTable()
std::string MODCCSFEDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getWord()
int MODCCSFEDat::getWord |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void MODCCSFEDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file MODCCSFEDat.cc.
28 "INSERT INTO OD_CCS_FE_dat (iov_id, logic_id, "
30 "VALUES (:iov_id, :logic_id, "
32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"MODCCSFEDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setWord()
void MODCCSFEDat::setWord |
( |
int |
x | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 103 of file MODCCSFEDat.cc.
109 throw(std::runtime_error(
"MODCCSFEDat::writeArrayDB: IOV not in DB"));
112 int nrows =
data->size();
113 int* ids =
new int[nrows];
114 int* iovid_vec =
new int[nrows];
115 int*
xx =
new int[nrows];
117 ub2* ids_len =
new ub2[nrows];
118 ub2* iov_len =
new ub2[nrows];
119 ub2* x_len =
new ub2[nrows];
124 typedef map<EcalLogicID, MODCCSFEDat>::const_iterator CI;
125 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
126 channel = &(
p->first);
129 throw(std::runtime_error(
"MODCCSFEDat::writeArrayDB: Bad EcalLogicID"));
131 ids[
count] = logicID;
132 iovid_vec[
count] = iovID;
134 dataitem = &(
p->second);
149 m_writeStmt->setDataBuffer(1, (dvoid*)iovid_vec, OCCIINT,
sizeof(iovid_vec[0]), iov_len);
150 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
151 m_writeStmt->setDataBuffer(3, (dvoid*)
xx, OCCIINT,
sizeof(
xx[0]), x_len);
163 }
catch (SQLException&
e) {
164 throw(std::runtime_error(
"MonPedestalsDat::writeArrayDB(): " +
e.getMessage()));
References KineDebug3::count(), std::data(), MillePedeFileConverter_cfg::e, EcalLogicID::getLogicID(), getWord(), AlCaHLTBitMon_ParallelJobs::p, x, and geometryCSVtoXML::xx.
◆ writeDB()
Definition at line 37 of file MODCCSFEDat.cc.
43 throw(std::runtime_error(
"MODCCSFEDat::writeDB: IOV not in DB"));
48 throw(std::runtime_error(
"MODCCSFEDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"MODCCSFEDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_word