#include <ODFEPedestalOffsetInfo.h>
Definition at line 9 of file ODFEPedestalOffsetInfo.h.
◆ ODFEPedestalOffsetInfo()
ODFEPedestalOffsetInfo::ODFEPedestalOffsetInfo |
( |
| ) |
|
◆ ~ODFEPedestalOffsetInfo()
ODFEPedestalOffsetInfo::~ODFEPedestalOffsetInfo |
( |
| ) |
|
|
override |
◆ clear()
void ODFEPedestalOffsetInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 109 of file ODFEPedestalOffsetInfo.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
112 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
113 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::fetchData(): no Id defined for this ODFEPedestalOffsetInfo "));
117 if (
result->getId() != 0) {
120 }
else if (!
result->getConfigTag().empty()) {
126 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::fetchData(): no Id defined for this record "));
135 result->setId(rset->getInt(1));
136 result->setConfigTag(rset->getString(2));
137 result->setVersion(rset->getInt(3));
140 throw(std::runtime_error(
std::string(
"ODFEPedestalOffsetInfo::fetchData(): ") +
e.getMessage()));
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::SQLException SQLException
◆ fetchID()
int ODFEPedestalOffsetInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 163 of file ODFEPedestalOffsetInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
173 stmt->setSQL(
"SELECT rec_id FROM " +
getTable() +
"WHERE tag=:1 and version=:2 ");
178 ResultSet* rset = stmt->executeQuery();
181 m_ID = rset->getInt(1);
185 m_conn->terminateStatement(stmt);
187 throw(std::runtime_error(
std::string(
"ODFEPedestalOffsetInfo::fetchID: ") +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
◆ fetchLastData()
◆ fetchNextId()
int ODFEPedestalOffsetInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ getId()
int ODFEPedestalOffsetInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getTable()
std::string ODFEPedestalOffsetInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getVersion()
int ODFEPedestalOffsetInfo::getVersion |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODFEPedestalOffsetInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setId()
void ODFEPedestalOffsetInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
void ODFEPedestalOffsetInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 69 of file ODFEPedestalOffsetInfo.cc.
73 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
74 if (ci->first ==
"VERSION")
76 if (ci->first ==
"TAG")
void setConfigTag(std::string x)
◆ setVersion()
void ODFEPedestalOffsetInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
◆ writeDB()
void ODFEPedestalOffsetInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 81 of file ODFEPedestalOffsetInfo.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
93 throw(std::runtime_error(
std::string(
"ODFEPedestalOffsetInfo::writeDB(): ") +
e.getMessage()));
98 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
void fetchData(ODFEPedestalOffsetInfo *result) noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
◆ EcalCondDBInterface
◆ m_ID
int ODFEPedestalOffsetInfo::m_ID |
|
private |
◆ m_version
int ODFEPedestalOffsetInfo::m_version |
|
private |