#include <ODLaserCycle.h>
Definition at line 9 of file ODLaserCycle.h.
◆ ODLaserCycle()
ODLaserCycle::ODLaserCycle |
( |
| ) |
|
◆ ~ODLaserCycle()
ODLaserCycle::~ODLaserCycle |
( |
| ) |
|
|
override |
◆ clear()
void ODLaserCycle::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 109 of file ODLaserCycle.cc.
113 if (
result->getId() == 0) {
114 throw(std::runtime_error(
"ODLaserConfig::fetchData(): no Id defined for this ODLaserConfig "));
119 "SELECT laser_configuration_id FROM ecal_laser_cycle "
120 "WHERE cycle_id = :1 ");
127 result->setLaserConfigurationID(rset->getInt(1));
130 throw(std::runtime_error(
"ODLaserCycle::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and mps_fire::result.
◆ fetchID()
int ODLaserCycle::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 56 of file ODLaserCycle.cc.
67 "SELECT cycle_id, laser_configuration_id FROM ecal_laser_cycle "
68 "WHERE cycle_id = :1 ");
69 stmt->setInt(1,
m_ID);
70 ResultSet *rset = stmt->executeQuery();
73 m_ID = rset->getInt(1);
78 m_conn->terminateStatement(stmt);
80 throw(std::runtime_error(
"ODLaserCycle::fetchID: " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ getId()
int ODLaserCycle::getId |
( |
void |
| ) |
const |
|
inline |
◆ getLaserConfigurationID()
int ODLaserCycle::getLaserConfigurationID |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODLaserCycle::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ insertConfig()
void ODLaserCycle::insertConfig |
( |
| ) |
|
|
privatenoexcept |
◆ operator!=()
bool ODLaserCycle::operator!= |
( |
const ODLaserCycle & |
m | ) |
const |
|
inline |
◆ operator==()
bool ODLaserCycle::operator== |
( |
const ODLaserCycle & |
m | ) |
const |
|
inline |
◆ prepareWrite()
void ODLaserCycle::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setByID()
void ODLaserCycle::setByID |
( |
int |
id | ) |
|
|
privatenoexcept |
Definition at line 86 of file ODLaserCycle.cc.
92 "SELECT cycle_id, laser_configuration_id FROM ecal_laser_cycle "
93 "WHERE cycle_id = :1 ");
95 ResultSet *rset = stmt->executeQuery();
98 m_ID = rset->getInt(1);
103 m_conn->terminateStatement(stmt);
105 throw(std::runtime_error(
"ODLaserCycle::fetchID: " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setId()
void ODLaserCycle::setId |
( |
int |
id | ) |
|
|
inline |
◆ setLaserConfigurationID()
void ODLaserCycle::setLaserConfigurationID |
( |
int |
x | ) |
|
|
inline |
◆ writeDB()
void ODLaserCycle::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ ODEcalCycle
◆ m_ID
◆ m_laser_config_id
int ODLaserCycle::m_laser_config_id |
|
private |