#include <FEConfigMainInfo.h>
Definition at line 14 of file FEConfigMainInfo.h.
◆ FEConfigMainInfo()
FEConfigMainInfo::FEConfigMainInfo |
( |
| ) |
|
◆ ~FEConfigMainInfo()
FEConfigMainInfo::~FEConfigMainInfo |
( |
| ) |
|
|
override |
◆ clear()
void FEConfigMainInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
◆ fetchID()
int FEConfigMainInfo::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 59 of file FEConfigMainInfo.cc.
75 "SELECT conf_id from FE_CONFIG_MAIN "
77 " and version = :version ");
80 std::cout <<
" using query with version " << endl;
84 "SELECT conf_id from FE_CONFIG_MAIN "
85 "WHERE tag = :1 and version= (select max(version) from FE_CONFIG_MAIN where tag=:2) ");
88 std::cout <<
" using query WITHOUT version " << endl;
91 ResultSet* rset = stmt->executeQuery();
94 m_ID = rset->getInt(1);
99 m_conn->terminateStatement(stmt);
101 throw(std::runtime_error(
"FEConfigMainInfo::fetchID: " +
e.getMessage()));
References gather_cfg::cout, cuy::dh, and MillePedeFileConverter_cfg::e.
◆ fetchIDLast()
int FEConfigMainInfo::fetchIDLast |
( |
| ) |
|
|
privatenoexcept |
Definition at line 163 of file FEConfigMainInfo.cc.
170 stmt->setSQL(
"SELECT max(conf_id) FROM fe_config_main ");
171 ResultSet* rset = stmt->executeQuery();
174 m_ID = rset->getInt(1);
178 m_conn->terminateStatement(stmt);
180 throw(std::runtime_error(
"ODRunConfigInfo::fetchIDLast: " +
e.getMessage()));
References cuy::dh, and MillePedeFileConverter_cfg::e.
◆ fetchNextId()
int FEConfigMainInfo::fetchNextId |
( |
| ) |
|
|
privatenoexcept |
◆ getBstId()
int FEConfigMainInfo::getBstId |
( |
| ) |
const |
|
inline |
◆ getBttId()
int FEConfigMainInfo::getBttId |
( |
| ) |
const |
|
inline |
◆ getBxtId()
int FEConfigMainInfo::getBxtId |
( |
| ) |
const |
|
inline |
◆ getDBTime()
Tm FEConfigMainInfo::getDBTime |
( |
| ) |
const |
|
inline |
◆ getDescription()
std::string FEConfigMainInfo::getDescription |
( |
| ) |
const |
|
inline |
◆ getFgrId()
int FEConfigMainInfo::getFgrId |
( |
| ) |
const |
|
inline |
◆ getId()
int FEConfigMainInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getLinId()
int FEConfigMainInfo::getLinId |
( |
| ) |
const |
|
inline |
◆ getLUTId()
int FEConfigMainInfo::getLUTId |
( |
| ) |
const |
|
inline |
◆ getPedId()
int FEConfigMainInfo::getPedId |
( |
| ) |
const |
|
inline |
◆ getSliId()
int FEConfigMainInfo::getSliId |
( |
| ) |
const |
|
inline |
◆ getSpiId()
int FEConfigMainInfo::getSpiId |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string FEConfigMainInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTimId()
int FEConfigMainInfo::getTimId |
( |
| ) |
const |
|
inline |
◆ getVersion()
int FEConfigMainInfo::getVersion |
( |
| ) |
const |
|
inline |
◆ getWeiId()
int FEConfigMainInfo::getWeiId |
( |
| ) |
const |
|
inline |
◆ insertConfig()
void FEConfigMainInfo::insertConfig |
( |
| ) |
|
|
privatenoexcept |
◆ operator!=()
◆ operator==()
◆ prepareWrite()
void FEConfigMainInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 107 of file FEConfigMainInfo.cc.
115 "INSERT INTO fe_config_main (conf_id, ped_conf_id, lin_conf_id, lut_conf_id, fgr_conf_id, sli_conf_id, "
116 "wei_conf_id, spi_conf_id, tim_conf_id, bxt_conf_id, btt_conf_id, bst_conf_id, tag, version, description) "
117 " VALUES (:1, :2, :3 , :4, :5, :6 ,:7, :8, :9, :10, :11, :12, :13, :14, :15 )");
123 throw(std::runtime_error(
"FEConfigMainInfo::prepareWrite(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setBstId()
void FEConfigMainInfo::setBstId |
( |
int |
x | ) |
|
|
inline |
◆ setBttId()
void FEConfigMainInfo::setBttId |
( |
int |
x | ) |
|
|
inline |
◆ setBxtId()
void FEConfigMainInfo::setBxtId |
( |
int |
x | ) |
|
|
inline |
◆ setByID()
void FEConfigMainInfo::setByID |
( |
int |
id | ) |
|
|
privatenoexcept |
Definition at line 187 of file FEConfigMainInfo.cc.
192 cout <<
"FEConfigMainInfo::setByID called for id " <<
id << endl;
197 stmt->setSQL(
"SELECT * FROM FE_CONFIG_MAIN WHERE conf_id = :1 ");
200 ResultSet* rset = stmt->executeQuery();
202 setId(rset->getInt(1));
217 Date dbdate = rset->getDate(16);
221 throw(std::runtime_error(
"FEConfigMainInfo::setByID: Given cycle_id is not in the database"));
223 m_conn->terminateStatement(stmt);
225 throw(std::runtime_error(
"FEConfigMainInfo::setByID: " +
e.getMessage()));
References gather_cfg::cout, cuy::dh, MillePedeFileConverter_cfg::e, and triggerObjects_cff::id.
◆ setDBTime()
void FEConfigMainInfo::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
◆ setDescription()
void FEConfigMainInfo::setDescription |
( |
std::string |
x | ) |
|
|
inline |
◆ setFgrId()
void FEConfigMainInfo::setFgrId |
( |
int |
x | ) |
|
|
inline |
◆ setId()
void FEConfigMainInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setLinId()
void FEConfigMainInfo::setLinId |
( |
int |
x | ) |
|
|
inline |
◆ setLUTId()
void FEConfigMainInfo::setLUTId |
( |
int |
x | ) |
|
|
inline |
◆ setPedId()
void FEConfigMainInfo::setPedId |
( |
int |
x | ) |
|
|
inline |
◆ setSliId()
void FEConfigMainInfo::setSliId |
( |
int |
x | ) |
|
|
inline |
◆ setSpiId()
void FEConfigMainInfo::setSpiId |
( |
int |
x | ) |
|
|
inline |
◆ setTimId()
void FEConfigMainInfo::setTimId |
( |
int |
x | ) |
|
|
inline |
◆ setVersion()
void FEConfigMainInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
Definition at line 66 of file FEConfigMainInfo.h.
References triggerObjects_cff::id, and m_version.
Referenced by popcon::EcalTPGBadStripHandler::getNewObjects(), popcon::EcalTPGLinConstHandler::getNewObjects(), popcon::EcalTPGWeightIdMapHandler::getNewObjects(), popcon::EcalTPGLutIdMapHandler::getNewObjects(), popcon::EcalTPGBadTTHandler::getNewObjects(), popcon::EcalTPGFineGrainEBIdMapHandler::getNewObjects(), popcon::EcalTPGPhysicsConstHandler::getNewObjects(), popcon::EcalTPGBadXTHandler::getNewObjects(), popcon::EcalTPGFineGrainTowerEEHandler::getNewObjects(), popcon::EcalTPGFineGrainEBGroupHandler::getNewObjects(), popcon::EcalTPGWeightGroupHandler::getNewObjects(), popcon::EcalTPGSlidingWindowHandler::getNewObjects(), popcon::EcalTPGFineGrainStripEEHandler::getNewObjects(), popcon::EcalTPGPedestalsHandler::getNewObjects(), popcon::EcalTPGSpikeThresholdHandler::getNewObjects(), popcon::EcalTPGLutGroupHandler::getNewObjects(), and EcalTPGDBApp::writeToConfDB_TPGMain().
◆ setWeiId()
void FEConfigMainInfo::setWeiId |
( |
int |
x | ) |
|
|
inline |
◆ writeDB()
void FEConfigMainInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ m_bst_id
int FEConfigMainInfo::m_bst_id |
|
private |
◆ m_btt_id
int FEConfigMainInfo::m_btt_id |
|
private |
◆ m_bxt_id
int FEConfigMainInfo::m_bxt_id |
|
private |
◆ m_db_time
Tm FEConfigMainInfo::m_db_time |
|
private |
◆ m_description
std::string FEConfigMainInfo::m_description |
|
private |
◆ m_fgr_id
int FEConfigMainInfo::m_fgr_id |
|
private |
◆ m_ID
int FEConfigMainInfo::m_ID |
|
private |
◆ m_lin_id
int FEConfigMainInfo::m_lin_id |
|
private |
◆ m_lut_id
int FEConfigMainInfo::m_lut_id |
|
private |
◆ m_ped_id
int FEConfigMainInfo::m_ped_id |
|
private |
◆ m_sli_id
int FEConfigMainInfo::m_sli_id |
|
private |
◆ m_spi_id
int FEConfigMainInfo::m_spi_id |
|
private |
◆ m_tim_id
int FEConfigMainInfo::m_tim_id |
|
private |
◆ m_version
int FEConfigMainInfo::m_version |
|
private |
◆ m_wei_id
int FEConfigMainInfo::m_wei_id |
|
private |
void writeDB() noexcept(false)
int fetchID() noexcept(false)
std::string getDescription() const
void prepareWrite() noexcept(false) override
int fetchNextId() noexcept(false)
void setDescription(std::string x)
void setDBTime(const Tm &x)
void setByID(int id) noexcept(false)
std::string m_description