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 |
|
overridevirtual |
unsigned long long lumi::CMSRunSummaryDummy2DB::retrieveData |
( |
unsigned int |
runnum | ) |
|
|
overridevirtual |
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, fileCollector::now, python.IdGenerator::schema, python.CommonUtils::session, lumi::DBConfig::setAuthentication(), AlCaHLTBitMon_QueryRunRegistry::string, and python.CommonUtils::svc.
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";
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 |
|
overridevirtual |