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 // Constructors --
35 //----------------
37  : container(ps.getParameter<std::string>("container")), iov(ps.getParameter<std::string>("iov")) {}
38 
39 //--------------
40 // Destructor --
41 //--------------
43 
44 //--------------
45 // Operations --
46 //--------------
48 
49 void DTKeyedConfigDBInit::analyze(const edm::Event& e, const edm::EventSetup& c) { return; }
50 
54  bk.setId(999999999);
55  bk.add("dummy");
56  cond::KeyedElement k(&bk, 999999999);
57  outdb->writeOneIOV(*(k.m_obj), k.m_key, container);
58 
59  std::vector<cond::Time_t> kl;
60  kl.push_back(999999999);
61  outdb->writeOneIOV(kl, 1, iov);
62 
63  return;
64 }
65 
DTKeyedConfigDBInit(const edm::ParameterSet &ps)
void beginJob() override
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void analyze(const edm::Event &e, const edm::EventSetup &c) override