#include <ODJBH4Config.h>
Definition at line 9 of file ODJBH4Config.h.
◆ ODJBH4Config()
ODJBH4Config::ODJBH4Config |
( |
| ) |
|
◆ ~ODJBH4Config()
ODJBH4Config::~ODJBH4Config |
( |
| ) |
|
|
override |
◆ clear()
void ODJBH4Config::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 99 of file ODJBH4Config.cc.
102 if (
result->getId() == 0) {
103 throw(std::runtime_error(
"ODJBH4Config::fetchData(): no Id defined for this ODJBH4Config "));
108 "SELECT * FROM ECAL_Jbh4_CONFIGURATION "
109 " where ( jbh4_configuration_id = :1 or jbh4_tag=:2 )");
116 result->setId(rset->getInt(1));
117 result->setConfigTag(rset->getString(2));
119 result->setUseBuffer(rset->getInt(3));
120 result->setHalModuleFile(rset->getString(4));
121 result->setHalAddressTableFile(rset->getString(5));
122 result->setHalStaticTableFile(rset->getString(6));
123 result->setCbd8210SerialNumber(rset->getString(7));
124 result->setCaenBridgeType(rset->getString(8));
125 result->setCaenLinkNumber(rset->getInt(9));
126 result->setCaenBoardNumber(rset->getInt(10));
129 throw(std::runtime_error(
"ODJBH4Config::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and mps_fire::result.
◆ fetchID()
int ODJBH4Config::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 133 of file ODJBH4Config.cc.
144 "SELECT jbh4_configuration_id FROM ecal_jbh4_configuration "
145 "WHERE jbh4_tag=:jbh4_tag ");
149 ResultSet *rset = stmt->executeQuery();
152 m_ID = rset->getInt(1);
156 m_conn->terminateStatement(stmt);
158 throw(std::runtime_error(
"ODJBH4Config::fetchID: " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ fetchNextId()
int ODJBH4Config::fetchNextId |
( |
| ) |
|
|
privatenoexcept |
◆ getCaenBoardNumber()
int ODJBH4Config::getCaenBoardNumber |
( |
| ) |
const |
|
inline |
◆ getCaenBridgeType()
std::string ODJBH4Config::getCaenBridgeType |
( |
| ) |
const |
|
inline |
◆ getCaenLinkNumber()
int ODJBH4Config::getCaenLinkNumber |
( |
| ) |
const |
|
inline |
◆ getCbd8210SerialNumber()
std::string ODJBH4Config::getCbd8210SerialNumber |
( |
| ) |
const |
|
inline |
◆ getHalAddressTableFile()
std::string ODJBH4Config::getHalAddressTableFile |
( |
| ) |
const |
|
inline |
◆ getHalModuleFile()
std::string ODJBH4Config::getHalModuleFile |
( |
| ) |
const |
|
inline |
◆ getHalStaticTableFile()
std::string ODJBH4Config::getHalStaticTableFile |
( |
| ) |
const |
|
inline |
◆ getId()
int ODJBH4Config::getId |
( |
void |
| ) |
const |
|
inline |
◆ getTable()
std::string ODJBH4Config::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getUseBuffer()
int ODJBH4Config::getUseBuffer |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODJBH4Config::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 52 of file ODJBH4Config.cc.
59 "INSERT INTO ECAL_Jbh4_CONFIGURATION ( jbh4_configuration_id, jbh4_tag, "
60 " useBuffer, halModuleFile, halAddressTableFile, halStaticTableFile, halcbd8210serialnumber, "
61 " caenbridgetype, caenlinknumber, caenboardnumber) "
62 " VALUES ( :1, :2, :3, :4, :5, :6, :7, :8 , :9, :10 )");
67 throw(std::runtime_error(
"ODJBH4Config::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setCaenBoardNumber()
void ODJBH4Config::setCaenBoardNumber |
( |
int |
x | ) |
|
|
inline |
◆ setCaenBridgeType()
void ODJBH4Config::setCaenBridgeType |
( |
std::string |
x | ) |
|
|
inline |
◆ setCaenLinkNumber()
void ODJBH4Config::setCaenLinkNumber |
( |
int |
x | ) |
|
|
inline |
◆ setCbd8210SerialNumber()
void ODJBH4Config::setCbd8210SerialNumber |
( |
std::string |
x | ) |
|
|
inline |
◆ setHalAddressTableFile()
void ODJBH4Config::setHalAddressTableFile |
( |
std::string |
x | ) |
|
|
inline |
◆ setHalModuleFile()
void ODJBH4Config::setHalModuleFile |
( |
std::string |
x | ) |
|
|
inline |
◆ setHalStaticTableFile()
void ODJBH4Config::setHalStaticTableFile |
( |
std::string |
x | ) |
|
|
inline |
◆ setId()
void ODJBH4Config::setId |
( |
int |
id | ) |
|
|
inline |
◆ setUseBuffer()
void ODJBH4Config::setUseBuffer |
( |
int |
x | ) |
|
|
inline |
◆ writeDB()
void ODJBH4Config::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 71 of file ODJBH4Config.cc.
91 throw(std::runtime_error(
"ODJBH4Config::writeDB(): " +
e.getMessage()));
95 throw(std::runtime_error(
"ODJBH4Config::writeDB: Failed to write"));
References MillePedeFileConverter_cfg::e.
◆ EcalCondDBInterface
◆ m_caen1
std::string ODJBH4Config::m_caen1 |
|
private |
◆ m_caen2
int ODJBH4Config::m_caen2 |
|
private |
◆ m_caen3
int ODJBH4Config::m_caen3 |
|
private |
◆ m_hal_add_file
std::string ODJBH4Config::m_hal_add_file |
|
private |
◆ m_hal_mod_file
std::string ODJBH4Config::m_hal_mod_file |
|
private |
◆ m_hal_tab_file
std::string ODJBH4Config::m_hal_tab_file |
|
private |
◆ m_ID
◆ m_serial
std::string ODJBH4Config::m_serial |
|
private |
◆ m_use_buffer
int ODJBH4Config::m_use_buffer |
|
private |