#include <ODRunConfigCycleInfo.h>
Definition at line 12 of file ODRunConfigCycleInfo.h.
◆ ODRunConfigCycleInfo()
ODRunConfigCycleInfo::ODRunConfigCycleInfo |
( |
| ) |
|
◆ ~ODRunConfigCycleInfo()
ODRunConfigCycleInfo::~ODRunConfigCycleInfo |
( |
| ) |
|
|
override |
◆ clear()
void ODRunConfigCycleInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 161 of file ODRunConfigCycleInfo.cc.
164 if (
result->getId() == 0) {
165 throw(std::runtime_error(
"ODRunConfigCycleInfo::fetchData(): no Id defined for this ODRunConfigCycleInfo "));
169 m_readStmt->setSQL(
"SELECT sequence_id , cycle_num , tag , description FROM ECAL_cycle_DAT WHERE cycle_id = :1 ");
176 result->setSequenceID(rset->getInt(1));
177 result->setCycleNumber(rset->getInt(2));
178 result->setTag(rset->getString(3));
179 result->setDescription(rset->getString(4));
182 throw(std::runtime_error(
"ODRunConfigCycleInfo::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and mps_fire::result.
◆ fetchID()
int ODRunConfigCycleInfo::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 73 of file ODRunConfigCycleInfo.cc.
86 "SELECT cycle_id from ECAL_cycle_DAT "
87 "WHERE sequence_id = :id1 "
88 " and cycle_num = :id2 ");
92 ResultSet* rset = stmt->executeQuery();
95 m_ID = rset->getInt(1);
99 m_conn->terminateStatement(stmt);
101 throw(std::runtime_error(
"ODRunConfigCycleInfo::fetchID: " +
e.getMessage()));
References cuy::dh, and MillePedeFileConverter_cfg::e.
◆ fetchIDLast()
int ODRunConfigCycleInfo::fetchIDLast |
( |
| ) |
|
|
privatenoexcept |
Definition at line 108 of file ODRunConfigCycleInfo.cc.
115 stmt->setSQL(
"SELECT max(cycle_id) FROM ecal_cycle_dat ");
116 ResultSet* rset = stmt->executeQuery();
119 m_ID = rset->getInt(1);
123 m_conn->terminateStatement(stmt);
125 throw(std::runtime_error(
"ODRunConfigCycleInfo::fetchIDLast: " +
e.getMessage()));
References cuy::dh, and MillePedeFileConverter_cfg::e.
◆ getCycleNumber()
int ODRunConfigCycleInfo::getCycleNumber |
( |
| ) |
const |
|
inline |
◆ getDescription()
std::string ODRunConfigCycleInfo::getDescription |
( |
| ) |
const |
|
inline |
◆ getId()
int ODRunConfigCycleInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getSequenceID()
int ODRunConfigCycleInfo::getSequenceID |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODRunConfigCycleInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTag()
std::string ODRunConfigCycleInfo::getTag |
( |
| ) |
const |
|
inline |
◆ insertConfig()
void ODRunConfigCycleInfo::insertConfig |
( |
| ) |
|
|
privatenoexcept |
◆ operator!=()
◆ operator==()
◆ prepareWrite()
void ODRunConfigCycleInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setByID()
void ODRunConfigCycleInfo::setByID |
( |
int |
id | ) |
|
|
privatenoexcept |
Definition at line 132 of file ODRunConfigCycleInfo.cc.
137 cout <<
"ODRunConfigCycleInfo::setByID called for id " <<
id << endl;
142 stmt->setSQL(
"SELECT sequence_id , cycle_num , tag , description FROM ECAL_cycle_DAT WHERE cycle_id = :1 ");
145 ResultSet* rset = stmt->executeQuery();
149 m_tag = rset->getString(3);
153 throw(std::runtime_error(
"ODRunConfigCycleInfo::setByID: Given cycle_id is not in the database"));
155 m_conn->terminateStatement(stmt);
157 throw(std::runtime_error(
"ODRunConfigCycleInfo::setByID: " +
e.getMessage()));
References gather_cfg::cout, cuy::dh, MillePedeFileConverter_cfg::e, and triggerObjects_cff::id.
◆ setCycleNumber()
void ODRunConfigCycleInfo::setCycleNumber |
( |
int |
n | ) |
|
|
inline |
◆ setDescription()
void ODRunConfigCycleInfo::setDescription |
( |
std::string |
x | ) |
|
|
inline |
◆ setId()
void ODRunConfigCycleInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setSequenceID()
void ODRunConfigCycleInfo::setSequenceID |
( |
int |
x | ) |
|
|
inline |
◆ setTag()
void ODRunConfigCycleInfo::setTag |
( |
std::string |
x | ) |
|
|
inline |
◆ writeDB()
void ODRunConfigCycleInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ ODEcalCycle
◆ m_cycle_num
int ODRunConfigCycleInfo::m_cycle_num |
|
private |
◆ m_description
std::string ODRunConfigCycleInfo::m_description |
|
private |
◆ m_ID
int ODRunConfigCycleInfo::m_ID |
|
private |
◆ m_sequence_id
int ODRunConfigCycleInfo::m_sequence_id |
|
private |
◆ m_tag
std::string ODRunConfigCycleInfo::m_tag |
|
private |