Definition at line 24 of file HLTConfDummy2DB.cc.
◆ HLTConfDummy2DB()
lumi::HLTConfDummy2DB::HLTConfDummy2DB |
( |
const std::string & |
dest | ) |
|
|
explicit |
◆ ~HLTConfDummy2DB()
lumi::HLTConfDummy2DB::~HLTConfDummy2DB |
( |
| ) |
|
|
override |
◆ dataType()
const std::string lumi::HLTConfDummy2DB::dataType |
( |
| ) |
const |
|
overridevirtual |
◆ retrieveData()
unsigned long long lumi::HLTConfDummy2DB::retrieveData |
( |
unsigned int |
runnumber | ) |
|
|
overridevirtual |
Implements lumi::DataPipe.
Definition at line 36 of file HLTConfDummy2DB.cc.
References HltBtagPostValidation_cff::c, gather_cfg::cout, Exception, mps_fire::i, egamma_custom_cff::l1seed, lumi::DataPipe::m_authpath, lumi::DataPipe::m_dest, lumi::DBConfig::setAuthentication(), AlCaHLTBitMon_QueryRunRegistry::string, and lumi::LumiNames::trghltMapTableName().
42 coral::ConnectionService* svc =
new coral::ConnectionService;
47 coral::ISessionProxy* session = svc->connect(
m_dest, coral::Update);
49 unsigned int totalhltpath = 126;
50 session->transaction().start(
false);
51 coral::ISchema& schema = session->nominalSchema();
53 coral::AttributeList hltconfData;
57 coral::IBulkOperation* hltconfInserter = hltconftable.dataEditor().bulkInsert(hltconfData, 200);
61 hltconfData[
"HLTKEY"].data<
std::string>() = fakehltkey;
64 for (
unsigned int i = 1;
i <= totalhltpath; ++
i) {
66 ::sprintf(
c,
"-%d",
i);
69 hltconfInserter->processNextIteration();
71 hltconfInserter->flush();
72 delete hltconfInserter;
73 session->transaction().commit();
75 std::cout <<
"database problem " << er.what() << std::endl;
76 session->transaction().rollback();
static const std::string trghltMapTableName()
◆ sourceType()
const std::string lumi::HLTConfDummy2DB::sourceType |
( |
| ) |
const |
|
overridevirtual |