#include <DTKeyedConfigDBInit.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &e, const edm::EventSetup &c) |
virtual void | beginJob () |
DTKeyedConfigDBInit (const edm::ParameterSet &ps) | |
virtual void | endJob () |
virtual | ~DTKeyedConfigDBInit () |
Private Attributes | |
std::string | container |
std::string | iov |
DTKeyedConfigDBInit::DTKeyedConfigDBInit | ( | const edm::ParameterSet & | ps | ) | [explicit] |
Constructor
Definition at line 37 of file DTKeyedConfigDBInit.cc.
: container( ps.getParameter<std::string> ( "container" ) ), iov( ps.getParameter<std::string> ( "iov" ) ) { }
DTKeyedConfigDBInit::~DTKeyedConfigDBInit | ( | ) | [virtual] |
void DTKeyedConfigDBInit::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [virtual] |
void DTKeyedConfigDBInit::beginJob | ( | void | ) | [virtual] |
Operations
Reimplemented from edm::EDAnalyzer.
Definition at line 51 of file DTKeyedConfigDBInit.cc.
{
return;
}
void DTKeyedConfigDBInit::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 62 of file DTKeyedConfigDBInit.cc.
References DTKeyedConfig::add(), container, iov, gen::k, cond::KeyedElement::m_key, cond::KeyedElement::m_obj, and DTKeyedConfig::setId().
{ edm::Service<cond::service::PoolDBOutputService> outdb; DTKeyedConfig* bk = new DTKeyedConfig(); bk->setId( 999999999 ); bk->add( "dummy" ); cond::KeyedElement k( bk, 999999999 ); outdb->writeOne( k.m_obj, k.m_key, container ); std::vector<cond::Time_t> * kl = new std::vector<cond::Time_t>; kl->push_back( 999999999 ); outdb->writeOne(kl,1,iov); return; }
std::string DTKeyedConfigDBInit::container [private] |
Definition at line 56 of file DTKeyedConfigDBInit.h.
Referenced by endJob().
std::string DTKeyedConfigDBInit::iov [private] |
Definition at line 57 of file DTKeyedConfigDBInit.h.
Referenced by endJob().