CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTKeyedConfigDBInit Class Reference

#include <DTKeyedConfigDBInit.h>

Inheritance diagram for DTKeyedConfigDBInit:
edm::EDAnalyzer

List of all members.

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

Detailed Description

Description:

Date:
2010/05/14 11:43:08
Revision:
1.2
Author:
Paolo Ronchese INFN Padova

Definition at line 35 of file DTKeyedConfigDBInit.h.


Constructor & Destructor Documentation

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]

Destructor

Definition at line 45 of file DTKeyedConfigDBInit.cc.

                                          {
}

Member Function Documentation

void DTKeyedConfigDBInit::analyze ( const edm::Event e,
const edm::EventSetup c 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 56 of file DTKeyedConfigDBInit.cc.

                                                            {
  return;
}
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, 0, k.m_key, container );

  std::vector<cond::Time_t> * kl = new std::vector<cond::Time_t>;
  kl->push_back( 999999999 );
  outdb->writeOne(kl,0,1,iov);

  return;

}

Member Data Documentation

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().