test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
65  DTKeyedConfig* bk = new DTKeyedConfig();
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)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
BaseKeyed * m_obj
Definition: KeyedElement.h:35
tuple iov
Definition: o2o.py:307
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
int k[5][pyjets_maxn]
void setId(int id)
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
cond::Time_t m_key
Definition: KeyedElement.h:37