#include <ODTCCEEConfig.h>
Definition at line 15 of file ODTCCEEConfig.h.
◆ ODTCCEEConfig()
ODTCCEEConfig::ODTCCEEConfig |
( |
| ) |
|
◆ ~ODTCCEEConfig()
ODTCCEEConfig::~ODTCCEEConfig |
( |
| ) |
|
|
override |
◆ clear()
void ODTCCEEConfig::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 167 of file ODTCCEEConfig.cc.
170 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
171 throw(std::runtime_error(
"ODTCCEEConfig::fetchData(): no Id defined for this ODTCCEEConfig "));
177 "FROM ECAL_TCC_EE_CONFIGURATION d "
178 " where (tcc_ee_configuration_id = :1 or tcc_ee_tag=:2 )");
185 result->setId(rset->getInt(1));
186 result->setConfigTag(rset->getString(2));
188 result->setTCCConfigurationFile(rset->getString(3));
189 result->setLUTConfigurationFile(rset->getString(4));
190 result->setSLBConfigurationFile(rset->getString(5));
191 result->setTestPatternFileUrl(rset->getString(6));
192 result->setNTestPatternsToLoad(rset->getInt(7));
193 result->setSLBLatency(rset->getInt(12));
196 Clob clob1 = rset->getClob(8);
197 cout <<
"Opening the clob in Read only mode" << endl;
198 clob1.open(OCCI_LOB_READONLY);
199 int clobLength = clob1.length();
200 cout <<
"Length of the clob1 is: " << clobLength << endl;
203 cout <<
"the clob buffer is:" << endl;
204 for (
int i = 0;
i < clobLength; ++
i)
209 Clob clob2 = rset->getClob(9);
210 cout <<
"Opening the clob in Read only mode" << endl;
211 clob2.open(OCCI_LOB_READONLY);
212 clobLength = clob2.length();
213 cout <<
"Length of the clob2 is: " << clobLength << endl;
214 unsigned char* buffer2 =
readClob(clob2, clobLength);
216 cout <<
"the clob buffer is:" << endl;
217 for (
int i = 0;
i < clobLength; ++
i)
218 cout << (
char)buffer2[
i];
220 result->setLUTClob(buffer2);
222 Clob clob3 = rset->getClob(10);
223 cout <<
"Opening the clob in Read only mode" << endl;
224 clob3.open(OCCI_LOB_READONLY);
225 clobLength = clob3.length();
226 cout <<
"Length of the clob3 is: " << clobLength << endl;
227 unsigned char* buffer3 =
readClob(clob3, clobLength);
229 cout <<
"the clob buffer is:" << endl;
230 for (
int i = 0;
i < clobLength; ++
i)
231 cout << (
char)buffer3[
i];
233 result->setSLBClob(buffer3);
236 throw(std::runtime_error(
std::string(
"ODTCCEEConfig::fetchData(): ") +
e.getMessage()));
References edmScanValgrind::buffer, gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ fetchID()
int ODTCCEEConfig::fetchID |
( |
| ) |
|
|
privatenoexcept |
◆ fetchNextId()
int ODTCCEEConfig::fetchNextId |
( |
| ) |
|
|
privatenoexcept |
◆ getId()
int ODTCCEEConfig::getId |
( |
void |
| ) |
const |
|
inline |
◆ getLUTClob()
unsigned char* ODTCCEEConfig::getLUTClob |
( |
| ) |
const |
|
inline |
◆ getLUTConfigurationFile()
std::string ODTCCEEConfig::getLUTConfigurationFile |
( |
| ) |
const |
|
inline |
◆ getNTestPatternsToLoad()
int ODTCCEEConfig::getNTestPatternsToLoad |
( |
| ) |
const |
|
inline |
◆ getSLBClob()
unsigned char* ODTCCEEConfig::getSLBClob |
( |
| ) |
const |
|
inline |
◆ getSLBConfigurationFile()
std::string ODTCCEEConfig::getSLBConfigurationFile |
( |
| ) |
const |
|
inline |
◆ getSLBLatency()
int ODTCCEEConfig::getSLBLatency |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODTCCEEConfig::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTCCClob()
unsigned char* ODTCCEEConfig::getTCCClob |
( |
| ) |
const |
|
inline |
◆ getTCCConfigurationFile()
std::string ODTCCEEConfig::getTCCConfigurationFile |
( |
| ) |
const |
|
inline |
◆ getTestPatternFileUrl()
std::string ODTCCEEConfig::getTestPatternFileUrl |
( |
| ) |
const |
|
inline |
◆ getTrigPos()
int ODTCCEEConfig::getTrigPos |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODTCCEEConfig::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 81 of file ODTCCEEConfig.cc.
89 "INSERT INTO ECAL_TCC_EE_CONFIGURATION (tcc_ee_configuration_id, tcc_ee_tag, "
90 "Configuration_file, LUT_CONFIGURATION_FILE, SLB_CONFIGURATION_FILE, "
91 "TESTPATTERNFILE_URL , N_TESTPATTERNS_TO_LOAD, TRIGGER_POS, "
92 "tcc_configuration, lut_configuration, slb_configuration, slblatency ) "
93 "VALUES (:1, :2, :3, :4, :5, :6, :7, :8 , :9, :10, :11, :12)");
104 oracle::occi::Clob clob1(
m_conn);
108 oracle::occi::Clob clob2(
m_conn);
112 oracle::occi::Clob clob3(
m_conn);
120 std::cout <<
"TCC 3 empty Clobs inserted into CONFIGURATION with id=" << next_id << std::endl;
125 "SELECT tcc_configuration, lut_configuration, slb_configuration FROM ECAL_TCC_EE_CONFIGURATION WHERE"
126 " tcc_ee_configuration_id=:1 FOR UPDATE");
128 std::cout <<
"updating the clobs 0" << std::endl;
131 throw(std::runtime_error(
std::string(
"ODTCCEEConfig::prepareWrite(): ") +
e.getMessage()));
134 std::cout <<
"updating the clob 1 " << std::endl;
References gather_cfg::cout, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ setId()
void ODTCCEEConfig::setId |
( |
int |
id | ) |
|
|
inline |
◆ setLUTClob()
void ODTCCEEConfig::setLUTClob |
( |
unsigned char * |
x | ) |
|
|
inline |
◆ setLUTConfigurationFile()
void ODTCCEEConfig::setLUTConfigurationFile |
( |
std::string |
x | ) |
|
|
inline |
◆ setNTestPatternsToLoad()
void ODTCCEEConfig::setNTestPatternsToLoad |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
void ODTCCEEConfig::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 53 of file ODTCCEEConfig.cc.
57 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
58 if (ci->first ==
"TCC_EE_CONFIGURATION_ID")
60 if (ci->first ==
"N_TESTPATTERNS_TO_LOAD")
62 if (ci->first ==
"LUT_CONFIGURATION_FILE")
64 if (ci->first ==
"CONFIGURATION_FILE")
66 if (ci->first ==
"SLB_CONFIGURATION_FILE")
68 if (ci->first ==
"TESTPATTERNFILE_URL")
71 if (ci->first ==
"SLB_LATENCY")
73 if (ci->first ==
"SLBLATENCY")
76 if (ci->first ==
"TRIGGER_POS")
◆ setSLBClob()
void ODTCCEEConfig::setSLBClob |
( |
unsigned char * |
x | ) |
|
|
inline |
◆ setSLBConfigurationFile()
void ODTCCEEConfig::setSLBConfigurationFile |
( |
std::string |
x | ) |
|
|
inline |
◆ setSLBLatency()
void ODTCCEEConfig::setSLBLatency |
( |
int |
id | ) |
|
|
inline |
◆ setTCCClob()
void ODTCCEEConfig::setTCCClob |
( |
unsigned char * |
x | ) |
|
|
inline |
◆ setTCCConfigurationFile()
void ODTCCEEConfig::setTCCConfigurationFile |
( |
std::string |
x | ) |
|
|
inline |
◆ setTestPatternFileUrl()
void ODTCCEEConfig::setTestPatternFileUrl |
( |
std::string |
x | ) |
|
|
inline |
◆ setTriggerPos()
void ODTCCEEConfig::setTriggerPos |
( |
int |
id | ) |
|
|
inline |
◆ writeDB()
void ODTCCEEConfig::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ m_ID
◆ m_lut_clob
unsigned char* ODTCCEEConfig::m_lut_clob |
|
private |
◆ m_lut_file
std::string ODTCCEEConfig::m_lut_file |
|
private |
◆ m_ntest
int ODTCCEEConfig::m_ntest |
|
private |
◆ m_size
unsigned int ODTCCEEConfig::m_size |
|
private |
◆ m_slb
◆ m_slb_clob
unsigned char* ODTCCEEConfig::m_slb_clob |
|
private |
◆ m_slb_file
std::string ODTCCEEConfig::m_slb_file |
|
private |
◆ m_tcc_ee_clob
unsigned char* ODTCCEEConfig::m_tcc_ee_clob |
|
private |
◆ m_tcc_ee_file
std::string ODTCCEEConfig::m_tcc_ee_file |
|
private |
◆ m_test_url
std::string ODTCCEEConfig::m_test_url |
|
private |
◆ m_trigpos
int ODTCCEEConfig::m_trigpos |
|
private |