Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
c
const edm::EventSetup & c
Definition:
SiStripLAProfileBooker.cc:66
edm::Service< cond::service::PoolDBOutputService >
isotrackApplyRegressor.k
int k
Definition:
isotrackApplyRegressor.py:91
DTKeyedConfig::add
void add(const std::string &data)
Definition:
DTKeyedConfig.cc:57
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
DTKeyedConfigDBInit::iov
std::string iov
Definition:
DTKeyedConfigDBInit.h:54
MakerMacros.h
KeyedElement.h
DTKeyedConfigDBInit::~DTKeyedConfigDBInit
~DTKeyedConfigDBInit() override
Definition:
DTKeyedConfigDBInit.cc:42
DTKeyedConfigDBInit
Definition:
DTKeyedConfigDBInit.h:35
DTKeyedConfigDBInit::beginJob
void beginJob() override
Definition:
DTKeyedConfigDBInit.cc:47
DTKeyedConfig.h
DTKeyedConfig
Definition:
DTKeyedConfig.h:35
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
cond::KeyedElement::m_obj
BaseKeyed * m_obj
Definition:
KeyedElement.h:27
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
edm::EventSetup
Definition:
EventSetup.h:59
DTKeyedConfig::setId
void setId(int id)
Definition:
DTKeyedConfig.cc:55
alignCSCRings.e
list e
Definition:
alignCSCRings.py:91
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
cond::KeyedElement::m_key
cond::Time_t m_key
Definition:
KeyedElement.h:29
Generated for CMSSW Reference Manual by
1.8.5