#include <ODScanConfig.h>
Definition at line 9 of file ODScanConfig.h.
◆ ODScanConfig()
ODScanConfig::ODScanConfig |
( |
| ) |
|
◆ ~ODScanConfig()
ODScanConfig::~ODScanConfig |
( |
| ) |
|
|
override |
◆ clear()
void ODScanConfig::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 113 of file ODScanConfig.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
116 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
117 throw(std::runtime_error(
"ODScanConfig::fetchData(): no Id defined for this ODScanConfig "));
123 "FROM ECAL_SCAN_DAT " 124 " where (scan_id = :1 or scan_tag=:2 )");
133 result->setId(rset->getInt(1));
134 result->setConfigTag(rset->getString(2));
135 result->setTypeId(rset->getInt(3));
136 result->setScanType(rset->getString(4));
137 result->setFromVal(rset->getInt(5));
138 result->setToVal(rset->getInt(6));
139 result->setStep(rset->getInt(7));
142 throw(std::runtime_error(
std::string(
"ODScanConfig::fetchData(): ") +
e.getMessage()));
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
◆ fetchID()
int ODScanConfig::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 146 of file ODScanConfig.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
157 "SELECT scan_id FROM ecal_scan_dat " 158 "WHERE scan_tag=:scan_tag ");
162 ResultSet* rset = stmt->executeQuery();
165 m_ID = rset->getInt(1);
169 m_conn->terminateStatement(stmt);
171 throw(std::runtime_error(
std::string(
"ODScanConfig::fetchID: ") +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
◆ fetchNextId()
int ODScanConfig::fetchNextId |
( |
| ) |
|
|
privatenoexcept |
◆ getFromVal()
int ODScanConfig::getFromVal |
( |
| ) |
const |
|
inline |
◆ getId()
int ODScanConfig::getId |
( |
void |
| ) |
const |
|
inline |
◆ getScanType()
std::string ODScanConfig::getScanType |
( |
| ) |
const |
|
inline |
◆ getStep()
int ODScanConfig::getStep |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODScanConfig::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getToVal()
int ODScanConfig::getToVal |
( |
| ) |
const |
|
inline |
◆ getTypeId()
int ODScanConfig::getTypeId |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODScanConfig::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 70 of file ODScanConfig.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
77 "INSERT INTO ECAL_scan_dat ( scan_id, scan_tag ," 78 " type_id, scan_type , FROM_VAL , TO_VAL, STEP )" 79 " VALUES ( :1, :2, :3, :4, :5, :6, :7)");
84 throw(std::runtime_error(
std::string(
"ODScanConfig::prepareWrite(): ") +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchNextId() noexcept(false)
oracle::occi::SQLException SQLException
◆ setFromVal()
void ODScanConfig::setFromVal |
( |
int |
x | ) |
|
|
inline |
◆ setId()
void ODScanConfig::setId |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
void ODScanConfig::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 50 of file ODScanConfig.cc.
54 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
55 if (ci->first ==
"SCAN_ID")
57 if (ci->first ==
"TYPE_ID")
59 if (ci->first ==
"TYPE" || ci->first ==
"SCAN_TYPE")
61 if (ci->first ==
"FROM" || ci->first ==
"FROM_VAL")
63 if (ci->first ==
"TO" || ci->first ==
"TO_VAL")
65 if (ci->first ==
"STEP")
66 setStep(atoi(ci->second.c_str()));
void setScanType(std::string x)
void setConfigTag(std::string x)
◆ setScanType()
void ODScanConfig::setScanType |
( |
std::string |
x | ) |
|
|
inline |
◆ setStep()
void ODScanConfig::setStep |
( |
int |
x | ) |
|
|
inline |
◆ setToVal()
void ODScanConfig::setToVal |
( |
int |
x | ) |
|
|
inline |
◆ setTypeId()
void ODScanConfig::setTypeId |
( |
int |
x | ) |
|
|
inline |
◆ writeDB()
void ODScanConfig::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 88 of file ODScanConfig.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
105 throw(std::runtime_error(
std::string(
"ODScanConfig::writeDB(): ") +
e.getMessage()));
109 throw(std::runtime_error(
"ODScanConfig::writeDB: Failed to write"));
std::string getScanType() const
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
int fetchID() noexcept(false)
void checkPrepare() noexcept(false)
◆ EcalCondDBInterface
◆ m_from_val
int ODScanConfig::m_from_val |
|
private |
◆ m_ID
◆ m_step
◆ m_to_val
int ODScanConfig::m_to_val |
|
private |
◆ m_type
std::string ODScanConfig::m_type |
|
private |
◆ m_type_id
int ODScanConfig::m_type_id |
|
private |