Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
CondTools
Ecal
plugins
EcalMustacheSCParametersMaker.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: RecoEcal/EcalMustacheSCParametersMaker
4
// Class: EcalMustacheSCParametersMaker
5
//
13
//
14
// Original Author: Thomas Reis
15
// Created: Thu, 05 Nov 2020 09:18:19 GMT
16
//
17
//
18
19
// system include files
20
#include <memory>
21
22
// user include files
23
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
24
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
25
26
#include "
FWCore/Framework/interface/Event.h
"
27
#include "
FWCore/Framework/interface/EventSetup.h
"
28
#include "
FWCore/Framework/interface/MakerMacros.h
"
29
#include "
FWCore/Utilities/interface/Exception.h
"
30
31
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
32
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
33
#include "
FWCore/ServiceRegistry/interface/Service.h
"
34
#include "
CondFormats/EcalObjects/interface/EcalMustacheSCParameters.h
"
35
#include "
CondFormats/DataRecord/interface/EcalMustacheSCParametersRcd.h
"
36
37
class
EcalMustacheSCParametersMaker
:
public
edm::one::EDAnalyzer
<> {
38
public
:
39
explicit
EcalMustacheSCParametersMaker
(
const
edm::ParameterSet
&);
40
41
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
42
43
private
:
44
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
45
46
edm::ESGetToken<EcalMustacheSCParameters, EcalMustacheSCParametersRcd>
parametersToken_
;
47
};
48
49
EcalMustacheSCParametersMaker::EcalMustacheSCParametersMaker
(
const
edm::ParameterSet
& iConfig)
50
: parametersToken_(esConsumes<
EcalMustacheSCParameters
,
EcalMustacheSCParametersRcd
>()) {}
51
52
void
EcalMustacheSCParametersMaker::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup) {
53
edm::ESHandle<EcalMustacheSCParameters>
esParamsHandle_ = iSetup.
getHandle
(
parametersToken_
);
54
55
edm::Service<cond::service::PoolDBOutputService>
poolDbService;
56
if
(poolDbService.
isAvailable
()) {
57
poolDbService->
writeOne
(esParamsHandle_.
product
(), poolDbService->
currentTime
(),
"EcalMustacheSCParametersRcd"
);
58
}
else
{
59
throw
cms::Exception
(
"PoolDBService"
) <<
"No PoolDBService available."
;
60
}
61
}
62
63
void
EcalMustacheSCParametersMaker::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
64
edm::ParameterSetDescription
desc
;
65
descriptions.
addDefault
(
desc
);
66
}
67
68
DEFINE_FWK_MODULE
(
EcalMustacheSCParametersMaker
);
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
EDAnalyzer.h
EcalMustacheSCParametersMaker::EcalMustacheSCParametersMaker
EcalMustacheSCParametersMaker(const edm::ParameterSet &)
Definition:
EcalMustacheSCParametersMaker.cc:49
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
EcalMustacheSCParameters
Definition:
EcalMustacheSCParameters.h:13
edm::Service::isAvailable
bool isAvailable() const
Definition:
Service.h:40
EcalMustacheSCParametersRcd.h
MakerMacros.h
PoolDBOutputService.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
Service.h
edm::ESHandle
Definition:
DTSurvey.h:22
EcalMustacheSCParametersMaker::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
EcalMustacheSCParametersMaker.cc:52
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
EcalMustacheSCParametersRcd
Definition:
EcalMustacheSCParametersRcd.h:23
EcalMustacheSCParametersMaker::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
EcalMustacheSCParametersMaker.cc:63
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
EcalMustacheSCParameters.h
edm::Service< cond::service::PoolDBOutputService >
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition:
EventSetup.h:148
edm::EventSetup
Definition:
EventSetup.h:57
edm::ESGetToken< EcalMustacheSCParameters, EcalMustacheSCParametersRcd >
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
EcalMustacheSCParametersMaker
Definition:
EcalMustacheSCParametersMaker.cc:37
Frameworkfwd.h
Exception
Definition:
hltDiff.cc:246
cond::service::PoolDBOutputService::writeOne
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
Definition:
PoolDBOutputService.h:63
EventSetup.h
Exception.h
ParameterSet.h
EcalMustacheSCParametersMaker::parametersToken_
edm::ESGetToken< EcalMustacheSCParameters, EcalMustacheSCParametersRcd > parametersToken_
Definition:
EcalMustacheSCParametersMaker.cc:46
edm::Event
Definition:
Event.h:73
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:99
cond::service::PoolDBOutputService::currentTime
cond::Time_t currentTime() const
Definition:
PoolDBOutputService.cc:217
Generated for CMSSW Reference Manual by
1.8.16