CondTools
DT
plugins
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
//-----------------------
13
#include "
CondTools/DT/plugins/DTKeyedConfigDBInit.h
"
14
15
//-------------------------------
16
// Collaborating Class Headers --
17
//-------------------------------
18
#include "
CondFormats/DTObjects/interface/DTKeyedConfig.h
"
19
#include "
FWCore/Framework/interface/MakerMacros.h
"
20
#include "
FWCore/ServiceRegistry/interface/Service.h
"
21
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
22
#include "
CondCore/DBOutputService/interface/KeyedElement.h
"
23
24
//---------------
25
// C++ Headers --
26
//---------------
27
#include <iostream>
28
29
//-------------------
30
// Initializations --
31
//-------------------
32
33
//----------------
34
// Constructors --
35
//----------------
36
DTKeyedConfigDBInit::DTKeyedConfigDBInit
(
const
edm::ParameterSet
& ps)
37
: container(ps.getParameter<
std
::
string
>(
"container"
)), iov(ps.getParameter<
std
::
string
>(
"iov"
)) {}
38
39
//--------------
40
// Destructor --
41
//--------------
42
DTKeyedConfigDBInit::~DTKeyedConfigDBInit
() {}
43
44
//--------------
45
// Operations --
46
//--------------
47
void
DTKeyedConfigDBInit::beginJob
() {
return
; }
48
49
void
DTKeyedConfigDBInit::analyze
(
const
edm::Event
&
e
,
const
edm::EventSetup
&
c
) {
return
; }
50
51
void
DTKeyedConfigDBInit::endJob
() {
52
edm::Service<cond::service::PoolDBOutputService>
outdb;
53
DTKeyedConfig
*
bk
=
new
DTKeyedConfig
();
54
bk
->setId(999999999);
55
bk
->add(
"dummy"
);
56
cond::KeyedElement
k
(
bk
, 999999999);
57
outdb->
writeOne
(
k
.m_obj,
k
.m_key,
container
);
58
59
std::vector<cond::Time_t>* kl =
new
std::vector<cond::Time_t>;
60
kl->push_back(999999999);
61
outdb->
writeOne
(kl, 1,
iov
);
62
63
return
;
64
}
65
66
DEFINE_FWK_MODULE
(
DTKeyedConfigDBInit
);
DTKeyedConfigDBInit::container
std::string container
Definition:
DTKeyedConfigDBInit.h:53
DTKeyedConfigDBInit::iov
std::string iov
Definition:
DTKeyedConfigDBInit.h:54
bk
Definition:
Breakpoints.cc:13
DTKeyedConfigDBInit::DTKeyedConfigDBInit
DTKeyedConfigDBInit(const edm::ParameterSet &ps)
Definition:
DTKeyedConfigDBInit.cc:36
MakerMacros.h
PoolDBOutputService.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
Service.h
dqmdumpme.k
k
Definition:
dqmdumpme.py:60
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
DTKeyedConfigDBInit
Definition:
DTKeyedConfigDBInit.h:35
DTKeyedConfig.h
DTKeyedConfigDBInit::beginJob
void beginJob() override
Definition:
DTKeyedConfigDBInit.cc:47
cond::KeyedElement
Definition:
KeyedElement.h:10
edm::Service< cond::service::PoolDBOutputService >
DTKeyedConfig
Definition:
DTKeyedConfig.h:35
DTKeyedConfigDBInit::endJob
void endJob() override
Definition:
DTKeyedConfigDBInit.cc:51
edm::EventSetup
Definition:
EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
DTKeyedConfigDBInit::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition:
DTKeyedConfigDBInit.cc:49
std
Definition:
JetResolutionObject.h:76
KeyedElement.h
cond::service::PoolDBOutputService::writeOne
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
Definition:
PoolDBOutputService.h:57
DTKeyedConfigDBInit.h
edm::Event
Definition:
Event.h:73
DTKeyedConfigDBInit::~DTKeyedConfigDBInit
~DTKeyedConfigDBInit() override
Definition:
DTKeyedConfigDBInit.cc:42
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16