src
PhysicsTools
PatAlgos
plugins
StringResolutionProviderESProducer.cc
Go to the documentation of this file.
1
#include <
FWCore/Framework/interface/ESProducer.h
>
2
#include <
FWCore/ParameterSet/interface/ParameterSet.h
>
3
4
#include "
PhysicsTools/PatAlgos/interface/StringResolutionProvider.h
"
5
#include "
PhysicsTools/PatAlgos/interface/KinematicResolutionRcd.h
"
6
7
class
StringResolutionProviderESProducer
:
public
edm::ESProducer
{
8
public
:
9
StringResolutionProviderESProducer
() {}
10
StringResolutionProviderESProducer
(
const
edm::ParameterSet
&iConfig);
11
12
std::unique_ptr<KinematicResolutionProvider>
produce
(
const
KinematicResolutionRcd
&rcd);
13
14
private
:
15
edm::ParameterSet
cfg_
;
16
};
17
18
StringResolutionProviderESProducer::StringResolutionProviderESProducer
(
const
edm::ParameterSet
&iConfig)
19
: cfg_(iConfig) {
20
std::string
myName = iConfig.
getParameter
<
std::string
>(
"@module_label"
);
21
setWhatProduced
(
this
, myName);
22
}
23
24
std::unique_ptr<KinematicResolutionProvider>
StringResolutionProviderESProducer::produce
(
25
const
KinematicResolutionRcd
&rcd) {
26
return
std::make_unique<StringResolutionProvider>(
cfg_
);
27
}
28
29
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
30
#include "
FWCore/Framework/interface/MakerMacros.h
"
31
#include "
FWCore/Framework/interface/ModuleFactory.h
"
32
DEFINE_FWK_EVENTSETUP_MODULE
(
StringResolutionProviderESProducer
);
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:307
StringResolutionProvider.h
KinematicResolutionRcd.h
StringResolutionProviderESProducer::produce
std::unique_ptr< KinematicResolutionProvider > produce(const KinematicResolutionRcd &rcd)
Definition:
StringResolutionProviderESProducer.cc:24
MakerMacros.h
StringResolutionProviderESProducer::StringResolutionProviderESProducer
StringResolutionProviderESProducer()
Definition:
StringResolutionProviderESProducer.cc:9
StringResolutionProviderESProducer::cfg_
edm::ParameterSet cfg_
Definition:
StringResolutionProviderESProducer.cc:15
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESProducer
Definition:
ESProducer.h:104
ParameterSet.h
KinematicResolutionRcd
Definition:
KinematicResolutionRcd.h:24
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
ESProducer.h
StringResolutionProviderESProducer
Definition:
StringResolutionProviderESProducer.cc:7
edm::ParameterSet
Definition:
ParameterSet.h:48
ModuleFactory.h
ModuleDef.h
Generated for CMSSW Reference Manual by
1.8.14