Definition at line 21 of file CMSRunSummaryDummy2DB.cc.
lumi::CMSRunSummaryDummy2DB::CMSRunSummaryDummy2DB |
( |
const std::string & |
dest | ) |
|
lumi::CMSRunSummaryDummy2DB::~CMSRunSummaryDummy2DB |
( |
| ) |
|
|
virtual |
const std::string lumi::CMSRunSummaryDummy2DB::dataType |
( |
| ) |
const |
|
virtual |
void lumi::CMSRunSummaryDummy2DB::retrieveData |
( |
unsigned int |
runnum | ) |
|
|
virtual |
Implements lumi::DataPipe.
Definition at line 33 of file CMSRunSummaryDummy2DB.cc.
References lumi::LumiNames::cmsrunsummaryTableName(), gather_cfg::cout, edm::hlt::Exception, lumi::DataPipe::m_authpath, lumi::DataPipe::m_dest, cmsPerfSuiteHarvest::now, python.IdGenerator::schema, python.CommonUtils::session, lumi::DBConfig::setAuthentication(), and python.CommonUtils::svc.
37 std::string fakehltkey(
"/cdaq/Cosmic/V12");
38 coral::ConnectionService*
svc=
new coral::ConnectionService;
43 coral::ISessionProxy*
session=svc->connect(
m_dest,coral::Update);
44 coral::ITypeConverter& tpc=session->typeConverter();
45 tpc.setCppTypeForSqlType(
"unsigned int",
"NUMBER(10)");
47 session->transaction().start(
false);
48 coral::ISchema&
schema=session->nominalSchema();
50 coral::AttributeList runData;
51 runtable.dataEditor().rowBuffer(runData);
52 runData[
"RUNNUM"].data<
unsigned int>()=
runnum;
53 runData[
"FILLNUM"].data<
unsigned int>()=8973344;
54 runData[
"SEQUENCE"].data<std::string>()=
"run sequence key";
55 runData[
"HLTKEY"].data<std::string>()=fakehltkey;
59 runtable.dataEditor().insertRow(runData);
61 std::cout<<
"database problem "<<er.what()<<std::endl;
62 session->transaction().rollback();
67 session->transaction().commit();
static const std::string cmsrunsummaryTableName()
const std::string lumi::CMSRunSummaryDummy2DB::sourceType |
( |
| ) |
const |
|
virtual |