#include <ODDCCConfig.h>
Definition at line 15 of file ODDCCConfig.h.
◆ ODDCCConfig()
ODDCCConfig::ODDCCConfig |
( |
| ) |
|
◆ ~ODDCCConfig()
ODDCCConfig::~ODDCCConfig |
( |
| ) |
|
|
override |
◆ clear()
void ODDCCConfig::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
◆ fetchID()
int ODDCCConfig::fetchID |
( |
| ) |
|
|
privatenoexcept |
◆ fetchNextId()
int ODDCCConfig::fetchNextId |
( |
| ) |
|
|
privatenoexcept |
◆ getDCCClob()
unsigned char* ODDCCConfig::getDCCClob |
( |
| ) |
const |
|
inline |
◆ getDCCClobSize()
unsigned int ODDCCConfig::getDCCClobSize |
( |
| ) |
const |
|
inline |
◆ getDCCConfigurationUrl()
std::string ODDCCConfig::getDCCConfigurationUrl |
( |
| ) |
const |
|
inline |
◆ getDCCWeightsMode()
std::string ODDCCConfig::getDCCWeightsMode |
( |
| ) |
const |
|
inline |
◆ getId()
int ODDCCConfig::getId |
( |
void |
| ) |
const |
|
inline |
◆ getNTestPatternsToLoad()
int ODDCCConfig::getNTestPatternsToLoad |
( |
| ) |
const |
|
inline |
◆ getSize()
unsigned int ODDCCConfig::getSize |
( |
| ) |
const |
|
inline |
◆ getSMHalf()
int ODDCCConfig::getSMHalf |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODDCCConfig::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTestPatternFileUrl()
std::string ODDCCConfig::getTestPatternFileUrl |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODDCCConfig::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 48 of file ODDCCConfig.cc.
56 "INSERT INTO ECAL_DCC_CONFIGURATION (dcc_configuration_id, dcc_tag, "
57 " DCC_CONFIGURATION_URL, TESTPATTERN_FILE_URL, "
58 " N_TESTPATTERNS_TO_LOAD , SM_HALF, weightsmode, "
59 " dcc_configuration) "
60 "VALUES (:1, :2, :3, :4, :5, :6 , :7 ,:8 )");
70 oracle::occi::Clob clob(
m_conn);
77 std::cout <<
"DCC Clob inserted into CONFIGURATION with id=" << next_id << std::endl;
82 "SELECT dcc_configuration FROM ECAL_DCC_CONFIGURATION WHERE"
83 " dcc_configuration_id=:1 FOR UPDATE");
85 std::cout <<
"updating the clob 0" << std::endl;
88 throw(std::runtime_error(
std::string(
"ODDCCConfig::prepareWrite(): ") +
e.getMessage()));
91 std::cout <<
"updating the clob 1 " << std::endl;
References gather_cfg::cout, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ setDCCClob()
void ODDCCConfig::setDCCClob |
( |
unsigned char * |
x | ) |
|
|
inline |
◆ setDCCConfigurationUrl()
void ODDCCConfig::setDCCConfigurationUrl |
( |
std::string |
x | ) |
|
|
inline |
◆ setDCCWeightsMode()
void ODDCCConfig::setDCCWeightsMode |
( |
std::string |
x | ) |
|
|
inline |
◆ setId()
void ODDCCConfig::setId |
( |
int |
id | ) |
|
|
inline |
◆ setNTestPatternsToLoad()
void ODDCCConfig::setNTestPatternsToLoad |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
void ODDCCConfig::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 94 of file ODDCCConfig.cc.
98 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
99 if (ci->first ==
"DCC_CONFIGURATION_ID")
101 if (ci->first ==
"TESTPATTERN_FILE_URL")
103 if (ci->first ==
"N_TESTPATTERNS_TO_LOAD")
105 if (ci->first ==
"SM_HALF")
107 if (ci->first ==
"WEIGHTSMODE")
109 if (ci->first ==
"DCC_CONFIGURATION_URL") {
117 inpFile.open(
fname.c_str());
122 bufsize = inpFile.tellg();
123 std::cout <<
" bufsize =" << bufsize << std::endl;
125 inpFile.seekg(0, ios::beg);
References gather_cfg::cout, end, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ setSize()
void ODDCCConfig::setSize |
( |
unsigned int |
id | ) |
|
|
inline |
◆ setSMHalf()
void ODDCCConfig::setSMHalf |
( |
int |
id | ) |
|
|
inline |
◆ setTestPatternFileUrl()
void ODDCCConfig::setTestPatternFileUrl |
( |
std::string |
x | ) |
|
|
inline |
◆ writeDB()
void ODDCCConfig::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ m_dcc_clob
unsigned char* ODDCCConfig::m_dcc_clob |
|
private |
◆ m_dcc_url
std::string ODDCCConfig::m_dcc_url |
|
private |
◆ m_ID
◆ m_ntest
◆ m_size
unsigned int ODDCCConfig::m_size |
|
private |
◆ m_sm_half
int ODDCCConfig::m_sm_half |
|
private |
◆ m_test_url
std::string ODDCCConfig::m_test_url |
|
private |
◆ m_wei
std::string ODDCCConfig::m_wei |
|
private |