CMS 3D CMS Logo

DTKeyedConfigDBInit.cc
Go to the documentation of this file.
1 /*
2  * See header file for a description of this class.
3  *
4  * $Date: 2010/06/01 10:34:12 $
5  * $Revision: 1.3 $
6  * \author Paolo Ronchese INFN Padova
7  *
8  */
9 
10 //-----------------------
11 // This Class' Header --
12 //-----------------------
14 
15 //-------------------------------
16 // Collaborating Class Headers --
17 //-------------------------------
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 #include <iostream>
28 
29 //-------------------
30 // Initializations --
31 //-------------------
32 
33 
34 //----------------
35 // Constructors --
36 //----------------
38  container( ps.getParameter<std::string> ( "container" ) ),
39  iov( ps.getParameter<std::string> ( "iov" ) ) {
40 }
41 
42 //--------------
43 // Destructor --
44 //--------------
46 }
47 
48 //--------------
49 // Operations --
50 //--------------
52  return;
53 }
54 
55 
57  const edm::EventSetup& c ) {
58  return;
59 }
60 
61 
63 
66  bk->setId( 999999999 );
67  bk->add( "dummy" );
68  cond::KeyedElement k( bk, 999999999 );
69  outdb->writeOne( k.m_obj, k.m_key, container );
70 
71  std::vector<cond::Time_t> * kl = new std::vector<cond::Time_t>;
72  kl->push_back( 999999999 );
73  outdb->writeOne(kl,1,iov);
74 
75  return;
76 
77 }
78 
79 
81 
DTKeyedConfigDBInit(const edm::ParameterSet &ps)
void add(const std::string &data)
void beginJob() override
BaseKeyed * m_obj
Definition: KeyedElement.h:35
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
int k[5][pyjets_maxn]
void setId(int id)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
cond::Time_t m_key
Definition: KeyedElement.h:37