#include <ODCond2ConfInfo.h>
Definition at line 12 of file ODCond2ConfInfo.h.
◆ ODCond2ConfInfo()
ODCond2ConfInfo::ODCond2ConfInfo |
( |
| ) |
|
◆ ~ODCond2ConfInfo()
ODCond2ConfInfo::~ODCond2ConfInfo |
( |
| ) |
|
|
override |
◆ clear()
void ODCond2ConfInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 154 of file ODCond2ConfInfo.cc.
160 if (
result->getId() == 0) {
161 throw(std::runtime_error(
"ODCond2ConfInfo::fetchData(): no Id defined for this ODCond2ConfInfo "));
166 "SELECT rec_id, REC_TYPE, rec_date, location, "
167 "run_number, short_desc, db_timestamp FROM " +
169 " , COND2CONF_TYPE_DEF , location_def "
170 " where rec_id = :1 AND COND2CONF_TYPE_DEF.def_id=" +
171 getTable() +
".REC_TYPE_ID AND location_def.def_id=LOCATION_ID ");
181 result->setType(rset->getString(2));
182 Date startDate = rset->getDate(3);
183 result->setLocation(rset->getString(4));
184 result->setRunNumber(rset->getInt(5));
185 result->setDescription(rset->getString(6));
186 Date endDate = rset->getDate(7);
192 throw(std::runtime_error(
std::string(
"ODCond2ConfInfo::fetchData(): ") +
e.getMessage()));
References cuy::dh, MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ fetchID()
int ODCond2ConfInfo::fetchID |
( |
| ) |
|
|
noexcept |
◆ fetchNextId()
int ODCond2ConfInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ fetchParents()
void ODCond2ConfInfo::fetchParents |
( |
| ) |
|
|
privatenoexcept |
◆ getDBDate()
Tm ODCond2ConfInfo::getDBDate |
( |
| ) |
const |
|
inline |
◆ getDescription()
std::string ODCond2ConfInfo::getDescription |
( |
| ) |
const |
|
inline |
◆ getId()
int ODCond2ConfInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getLocation()
std::string ODCond2ConfInfo::getLocation |
( |
| ) |
const |
|
inline |
◆ getRecordDate()
Tm ODCond2ConfInfo::getRecordDate |
( |
| ) |
const |
|
inline |
◆ getRunNumber()
int ODCond2ConfInfo::getRunNumber |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODCond2ConfInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getType()
std::string ODCond2ConfInfo::getType |
( |
void |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODCond2ConfInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 91 of file ODCond2ConfInfo.cc.
103 " ( rec_id, rec_type_id, rec_date, "
104 "location_id, run_number, short_desc ) "
105 " VALUES ( :1, :2, :3 , :4, :5, :6 ) ");
114 throw(std::runtime_error(
std::string(
"ODCond2ConfInfo::prepareWrite(): ") +
e.getMessage()));
References MillePedeFileConverter_cfg::e, getId(), and AlCaHLTBitMon_QueryRunRegistry::string.
◆ setDBDate()
void ODCond2ConfInfo::setDBDate |
( |
const Tm & |
x | ) |
|
|
inline |
◆ setDescription()
void ODCond2ConfInfo::setDescription |
( |
std::string |
x | ) |
|
|
inline |
◆ setId()
void ODCond2ConfInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setLocation()
void ODCond2ConfInfo::setLocation |
( |
std::string |
x | ) |
|
|
inline |
◆ setParameters()
void ODCond2ConfInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 118 of file ODCond2ConfInfo.cc.
122 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
125 std::cout <<
"method not yet implemented" << std::endl;
References gather_cfg::cout.
◆ setRecordDate()
void ODCond2ConfInfo::setRecordDate |
( |
const Tm & |
x | ) |
|
|
inline |
◆ setRunNumber()
void ODCond2ConfInfo::setRunNumber |
( |
int |
id | ) |
|
|
inline |
◆ setType()
void ODCond2ConfInfo::setType |
( |
std::string |
x | ) |
|
|
inline |
◆ writeDB()
void ODCond2ConfInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ m_db_time
Tm ODCond2ConfInfo::m_db_time |
|
private |
◆ m_desc
std::string ODCond2ConfInfo::m_desc |
|
private |
◆ m_ID
int ODCond2ConfInfo::m_ID |
|
private |
◆ m_loc
std::string ODCond2ConfInfo::m_loc |
|
private |
◆ m_loc_id
int ODCond2ConfInfo::m_loc_id |
|
private |
◆ m_rec_time
Tm ODCond2ConfInfo::m_rec_time |
|
private |
◆ m_run
int ODCond2ConfInfo::m_run |
|
private |
◆ m_typ_id
int ODCond2ConfInfo::m_typ_id |
|
private |
◆ m_type
std::string ODCond2ConfInfo::m_type |
|
private |