#include <ODJBH4Config.h>
Definition at line 9 of file ODJBH4Config.h.
◆ ODJBH4Config()
ODJBH4Config::ODJBH4Config |
( |
| ) |
|
◆ ~ODJBH4Config()
ODJBH4Config::~ODJBH4Config |
( |
| ) |
|
|
override |
◆ clear()
void ODJBH4Config::clear |
( |
void |
| ) |
|
|
private |
Definition at line 22 of file ODJBH4Config.cc.
std::string m_hal_tab_file
std::string m_hal_mod_file
std::string m_hal_add_file
◆ fetchData()
Definition at line 99 of file ODJBH4Config.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
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()));
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
◆ fetchID()
int ODJBH4Config::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 133 of file ODJBH4Config.cc.
References MillePedeFileConverter_cfg::e.
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()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
◆ fetchNextId()
int ODJBH4Config::fetchNextId |
( |
| ) |
|
|
privatenoexcept |
Definition at line 33 of file ODJBH4Config.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
39 m_readStmt->setSQL(
"select ecal_JBH4_config_sq.NextVal from dual");
41 while (rset->next()) {
48 throw(std::runtime_error(
"ODJBH4Config::fetchNextId(): " +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
◆ 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.
References MillePedeFileConverter_cfg::e.
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()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchNextId() noexcept(false)
oracle::occi::SQLException SQLException
◆ 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.
References MillePedeFileConverter_cfg::e.
91 throw(std::runtime_error(
"ODJBH4Config::writeDB(): " +
e.getMessage()));
95 throw(std::runtime_error(
"ODJBH4Config::writeDB: Failed to write"));
std::string getCaenBridgeType() const
int fetchID() noexcept(false)
void checkConnection() const noexcept(false)
std::string getHalModuleFile() const
int getCaenBoardNumber() const
int getCaenLinkNumber() const
std::string getHalStaticTableFile() const
oracle::occi::SQLException SQLException
std::string getHalAddressTableFile() const
std::string getCbd8210SerialNumber() const
std::string getConfigTag()
void checkPrepare() noexcept(false)
◆ 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 |