Main Page
Namespaces
Classes
Package Documentation
src
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
//----------------
35
// Constructors --
36
//----------------
37
DTKeyedConfigDBInit::DTKeyedConfigDBInit
(
const
edm::ParameterSet
& ps ):
38
container( ps.getParameter<
std
::
string
> (
"container"
) ),
39
iov( ps.getParameter<
std
::
string
> (
"iov"
) ) {
40
}
41
42
//--------------
43
// Destructor --
44
//--------------
45
DTKeyedConfigDBInit::~DTKeyedConfigDBInit
() {
46
}
47
48
//--------------
49
// Operations --
50
//--------------
51
void
DTKeyedConfigDBInit::beginJob
() {
52
return
;
53
}
54
55
56
void
DTKeyedConfigDBInit::analyze
(
const
edm::Event
&
e
,
57
const
edm::EventSetup
&
c
) {
58
return
;
59
}
60
61
62
void
DTKeyedConfigDBInit::endJob
() {
63
64
edm::Service<cond::service::PoolDBOutputService>
outdb;
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
80
DEFINE_FWK_MODULE
(
DTKeyedConfigDBInit
);
81
DTKeyedConfigDBInit::DTKeyedConfigDBInit
DTKeyedConfigDBInit(const edm::ParameterSet &ps)
Definition:
DTKeyedConfigDBInit.cc:37
cond::KeyedElement
Definition:
KeyedElement.h:10
edm::Service< cond::service::PoolDBOutputService >
DTKeyedConfig::add
void add(const std::string &data)
Definition:
DTKeyedConfig.cc:68
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
DTKeyedConfigDBInit::iov
std::string iov
Definition:
DTKeyedConfigDBInit.h:57
MakerMacros.h
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
KeyedElement.h
std
Definition:
JetResolutionObject.h:80
DTKeyedConfigDBInit::~DTKeyedConfigDBInit
~DTKeyedConfigDBInit() override
Definition:
DTKeyedConfigDBInit.cc:45
DTKeyedConfigDBInit
Definition:
DTKeyedConfigDBInit.h:35
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
DTKeyedConfigDBInit::beginJob
void beginJob() override
Definition:
DTKeyedConfigDBInit.cc:51
DTKeyedConfig.h
DTKeyedConfig
Definition:
DTKeyedConfig.h:37
DTKeyedConfigDBInit::container
std::string container
Definition:
DTKeyedConfigDBInit.h:56
DTKeyedConfigDBInit::endJob
void endJob() override
Definition:
DTKeyedConfigDBInit.cc:62
cond::KeyedElement::m_obj
BaseKeyed * m_obj
Definition:
KeyedElement.h:35
PoolDBOutputService.h
DTKeyedConfigDBInit.h
Service.h
cond::service::PoolDBOutputService::writeOne
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
Definition:
PoolDBOutputService.h:54
edm::EventSetup
Definition:
EventSetup.h:44
gen::k
int k[5][pyjets_maxn]
Definition:
Cascade2Hadronizer.cc:79
DTKeyedConfig::setId
void setId(int id)
Definition:
DTKeyedConfig.cc:63
bk
Definition:
Breakpoints.cc:13
edm::ParameterSet
Definition:
ParameterSet.h:36
DTKeyedConfigDBInit::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition:
DTKeyedConfigDBInit.cc:56
edm::Event
Definition:
Event.h:69
cond::KeyedElement::m_key
cond::Time_t m_key
Definition:
KeyedElement.h:37
Generated for CMSSW Reference Manual by
1.8.11