#include <ODTCCConfig.h>
Definition at line 15 of file ODTCCConfig.h.
◆ ODTCCConfig()
ODTCCConfig::ODTCCConfig |
( |
| ) |
|
◆ ~ODTCCConfig()
ODTCCConfig::~ODTCCConfig |
( |
| ) |
|
|
override |
◆ clear()
void ODTCCConfig::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 156 of file ODTCCConfig.cc.
159 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
160 throw(std::runtime_error(
"ODTCCConfig::fetchData(): no Id defined for this ODTCCConfig "));
166 "FROM ECAL_TCC_CONFIGURATION d "
167 " where (tcc_configuration_id = :1 or tcc_tag=:2 )");
174 result->setId(rset->getInt(1));
175 result->setConfigTag(rset->getString(2));
177 result->setTCCConfigurationFile(rset->getString(3));
178 result->setLUTConfigurationFile(rset->getString(4));
179 result->setSLBConfigurationFile(rset->getString(5));
180 result->setTestPatternFileUrl(rset->getString(6));
181 result->setNTestPatternsToLoad(rset->getInt(7));
184 Clob clob1 = rset->getClob(8);
185 cout <<
"Opening the clob in Read only mode" << endl;
186 clob1.open(OCCI_LOB_READONLY);
187 int clobLength = clob1.length();
188 cout <<
"Length of the clob1 is: " << clobLength << endl;
191 cout <<
"the clob buffer is:" << endl;
192 for (
int i = 0;
i < clobLength; ++
i)
197 Clob clob2 = rset->getClob(9);
198 cout <<
"Opening the clob in Read only mode" << endl;
199 clob2.open(OCCI_LOB_READONLY);
200 clobLength = clob2.length();
201 cout <<
"Length of the clob2 is: " << clobLength << endl;
202 unsigned char* buffer2 =
readClob(clob2, clobLength);
204 cout <<
"the clob buffer is:" << endl;
205 for (
int i = 0;
i < clobLength; ++
i)
206 cout << (
char)buffer2[
i];
208 result->setLUTClob(buffer2);
210 Clob clob3 = rset->getClob(10);
211 cout <<
"Opening the clob in Read only mode" << endl;
212 clob3.open(OCCI_LOB_READONLY);
213 clobLength = clob3.length();
214 cout <<
"Length of the clob3 is: " << clobLength << endl;
215 unsigned char* buffer3 =
readClob(clob3, clobLength);
217 cout <<
"the clob buffer is:" << endl;
218 for (
int i = 0;
i < clobLength; ++
i)
219 cout << (
char)buffer3[
i];
221 result->setSLBClob(buffer3);
224 throw(std::runtime_error(
std::string(
"ODTCCConfig::fetchData(): ") +
e.getMessage()));
References edmScanValgrind::buffer, gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ fetchID()
int ODTCCConfig::fetchID |
( |
| ) |
|
|
privatenoexcept |
◆ fetchNextId()
int ODTCCConfig::fetchNextId |
( |
| ) |
|
|
privatenoexcept |
◆ getId()
int ODTCCConfig::getId |
( |
void |
| ) |
const |
|
inline |
◆ getLUTClob()
unsigned char* ODTCCConfig::getLUTClob |
( |
| ) |
const |
|
inline |
◆ getLUTConfigurationFile()
std::string ODTCCConfig::getLUTConfigurationFile |
( |
| ) |
const |
|
inline |
◆ getNTestPatternsToLoad()
int ODTCCConfig::getNTestPatternsToLoad |
( |
| ) |
const |
|
inline |
◆ getSLBClob()
unsigned char* ODTCCConfig::getSLBClob |
( |
| ) |
const |
|
inline |
◆ getSLBConfigurationFile()
std::string ODTCCConfig::getSLBConfigurationFile |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODTCCConfig::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTCCClob()
unsigned char* ODTCCConfig::getTCCClob |
( |
| ) |
const |
|
inline |
◆ getTCCConfigurationFile()
std::string ODTCCConfig::getTCCConfigurationFile |
( |
| ) |
const |
|
inline |
◆ getTestPatternFileUrl()
std::string ODTCCConfig::getTestPatternFileUrl |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODTCCConfig::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 72 of file ODTCCConfig.cc.
80 "INSERT INTO ECAL_TCC_CONFIGURATION (tcc_configuration_id, tcc_tag, "
81 "Configuration_file, LUT_CONFIGURATION_FILE, SLB_CONFIGURATION_FILE, "
82 "TESTPATTERNFILE_URL , N_TESTPATTERNS_TO_LOAD, "
83 "tcc_configuration, lut_configuration, slb_configuration ) "
84 "VALUES (:1, :2, :3, :4, :5, :6, :7, :8 , :9, :10)");
93 oracle::occi::Clob clob1(
m_conn);
97 oracle::occi::Clob clob2(
m_conn);
101 oracle::occi::Clob clob3(
m_conn);
109 std::cout <<
"TCC 3 empty Clobs inserted into CONFIGURATION with id=" << next_id << std::endl;
114 "SELECT tcc_configuration, lut_configuration, slb_configuration FROM ECAL_TCC_CONFIGURATION WHERE"
115 " tcc_configuration_id=:1 FOR UPDATE");
117 std::cout <<
"updating the clobs 0" << std::endl;
120 throw(std::runtime_error(
std::string(
"ODTCCConfig::prepareWrite(): ") +
e.getMessage()));
123 std::cout <<
"updating the clob 1 " << std::endl;
References gather_cfg::cout, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ setId()
void ODTCCConfig::setId |
( |
int |
id | ) |
|
|
inline |
◆ setLUTClob()
void ODTCCConfig::setLUTClob |
( |
unsigned char * |
x | ) |
|
|
inline |
◆ setLUTConfigurationFile()
void ODTCCConfig::setLUTConfigurationFile |
( |
std::string |
x | ) |
|
|
inline |
◆ setNTestPatternsToLoad()
void ODTCCConfig::setNTestPatternsToLoad |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
void ODTCCConfig::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 52 of file ODTCCConfig.cc.
56 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
57 if (ci->first ==
"TCC_CONFIGURATION_ID")
59 if (ci->first ==
"N_TESTPATTERNS_TO_LOAD")
61 if (ci->first ==
"LUT_CONFIGURATION_FILE")
63 if (ci->first ==
"CONFIGURATION_FILE")
65 if (ci->first ==
"SLB_CONFIGURATION_FILE")
67 if (ci->first ==
"TESTPATTERNFILE_URL")
◆ setSLBClob()
void ODTCCConfig::setSLBClob |
( |
unsigned char * |
x | ) |
|
|
inline |
◆ setSLBConfigurationFile()
void ODTCCConfig::setSLBConfigurationFile |
( |
std::string |
x | ) |
|
|
inline |
◆ setTCCClob()
void ODTCCConfig::setTCCClob |
( |
unsigned char * |
x | ) |
|
|
inline |
◆ setTCCConfigurationFile()
void ODTCCConfig::setTCCConfigurationFile |
( |
std::string |
x | ) |
|
|
inline |
◆ setTestPatternFileUrl()
void ODTCCConfig::setTestPatternFileUrl |
( |
std::string |
x | ) |
|
|
inline |
◆ writeDB()
void ODTCCConfig::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ m_ID
◆ m_lut_clob
unsigned char* ODTCCConfig::m_lut_clob |
|
private |
◆ m_lut_file
std::string ODTCCConfig::m_lut_file |
|
private |
◆ m_ntest
◆ m_size
unsigned int ODTCCConfig::m_size |
|
private |
◆ m_slb_clob
unsigned char* ODTCCConfig::m_slb_clob |
|
private |
◆ m_slb_file
std::string ODTCCConfig::m_slb_file |
|
private |
◆ m_tcc_clob
unsigned char* ODTCCConfig::m_tcc_clob |
|
private |
◆ m_tcc_file
std::string ODTCCConfig::m_tcc_file |
|
private |
◆ m_test_url
std::string ODTCCConfig::m_test_url |
|
private |