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
;
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
66
DEFINE_FWK_MODULE
(
DTKeyedConfigDBInit
);
DTKeyedConfigDBInit::DTKeyedConfigDBInit
DTKeyedConfigDBInit(const edm::ParameterSet &ps)
Definition:
DTKeyedConfigDBInit.cc:36
cond::KeyedElement
Definition:
KeyedElement.h:10
edm::Service< cond::service::PoolDBOutputService >
DTKeyedConfigDBInit::iov
std::string iov
Definition:
DTKeyedConfigDBInit.h:54
KeyedElement.h
std
Definition:
JetResolutionObject.h:76
DTKeyedConfigDBInit::~DTKeyedConfigDBInit
~DTKeyedConfigDBInit() override
Definition:
DTKeyedConfigDBInit.cc:42
DTKeyedConfigDBInit
Definition:
DTKeyedConfigDBInit.h:35
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
DTKeyedConfigDBInit::beginJob
void beginJob() override
Definition:
DTKeyedConfigDBInit.cc:47
DTKeyedConfig.h
DTKeyedConfig
Definition:
DTKeyedConfig.h:35
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
DTKeyedConfigDBInit::container
std::string container
Definition:
DTKeyedConfigDBInit.h:53
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DTKeyedConfigDBInit::endJob
void endJob() override
Definition:
DTKeyedConfigDBInit.cc:51
PoolDBOutputService.h
DTKeyedConfigDBInit.h
cond::service::PoolDBOutputService::writeOneIOV
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
Definition:
PoolDBOutputService.h:62
Service.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::EventSetup
Definition:
EventSetup.h:56
bk
Definition:
Breakpoints.cc:13
edm::ParameterSet
Definition:
ParameterSet.h:47
DTKeyedConfigDBInit::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition:
DTKeyedConfigDBInit.cc:49
edm::Event
Definition:
Event.h:73
MakerMacros.h
dqmdumpme.k
k
Definition:
dqmdumpme.py:60
Generated for CMSSW Reference Manual by
1.8.14