#include <MODCCSTRDat.h>
Definition at line 11 of file MODCCSTRDat.h.
◆ MODCCSTRDat()
MODCCSTRDat::MODCCSTRDat |
( |
| ) |
|
◆ ~MODCCSTRDat()
MODCCSTRDat::~MODCCSTRDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 62 of file MODCCSTRDat.cc.
75 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
77 "FROM channelview cv JOIN OD_CCS_TR_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, MODCCSTRDat>
p;
85 while (rset->next()) {
98 }
catch (SQLException&
e) {
99 throw(std::runtime_error(
"MODCCSTRDat::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and setWord().
◆ getTable()
std::string MODCCSTRDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getWord()
int MODCCSTRDat::getWord |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void MODCCSTRDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 22 of file MODCCSTRDat.cc.
28 "INSERT INTO OD_CCS_TR_dat (iov_id, logic_id, "
30 "VALUES (:iov_id, :logic_id, "
32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"MODCCSTRDat::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setWord()
void MODCCSTRDat::setWord |
( |
int |
x | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 103 of file MODCCSTRDat.cc.
109 throw(std::runtime_error(
"MODCCSTRDat::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, MODCCSTRDat>::const_iterator CI;
125 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
126 channel = &(
p->first);
129 throw(std::runtime_error(
"MODCCSTRDat::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 MODCCSTRDat.cc.
43 throw(std::runtime_error(
"MODCCSTRDat::writeDB: IOV not in DB"));
48 throw(std::runtime_error(
"MODCCSTRDat::writeDB: Bad EcalLogicID"));
57 }
catch (SQLException&
e) {
58 throw(std::runtime_error(
"MODCCSTRDat::writeDB(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
◆ EcalCondDBInterface
◆ m_word