Main Page
Namespaces
Classes
Package Documentation
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
{
9
public
:
10
StringResolutionProviderESProducer
() { }
11
StringResolutionProviderESProducer
(
const
edm::ParameterSet
&iConfig) ;
12
13
std::unique_ptr<KinematicResolutionProvider>
produce
(
const
KinematicResolutionRcd
&rcd) ;
14
15
private
:
16
edm::ParameterSet
cfg_
;
17
};
18
19
StringResolutionProviderESProducer::StringResolutionProviderESProducer
(
const
edm::ParameterSet
&iConfig) :
20
cfg_
(iConfig) {
21
std::string
myName = iConfig.
getParameter
<
std::string
>(
"@module_label"
);
22
setWhatProduced
(
this
,myName);
23
}
24
25
std::unique_ptr<KinematicResolutionProvider>
26
StringResolutionProviderESProducer::produce
(
const
KinematicResolutionRcd
&rcd) {
27
return
std::make_unique<StringResolutionProvider>(
cfg_
);
28
}
29
30
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
31
#include "
FWCore/Framework/interface/MakerMacros.h
"
32
#include "
FWCore/Framework/interface/ModuleFactory.h
"
33
DEFINE_FWK_EVENTSETUP_MODULE
(
StringResolutionProviderESProducer
);
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:124
StringResolutionProvider.h
KinematicResolutionRcd.h
StringResolutionProviderESProducer::produce
std::unique_ptr< KinematicResolutionProvider > produce(const KinematicResolutionRcd &rcd)
Definition:
StringResolutionProviderESProducer.cc:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MakerMacros.h
StringResolutionProviderESProducer::StringResolutionProviderESProducer
StringResolutionProviderESProducer()
Definition:
StringResolutionProviderESProducer.cc:10
StringResolutionProviderESProducer::cfg_
edm::ParameterSet cfg_
Definition:
StringResolutionProviderESProducer.cc:16
edm::ESProducer
Definition:
ESProducer.h:99
ParameterSet.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
KinematicResolutionRcd
Definition:
KinematicResolutionRcd.h:26
ESProducer.h
StringResolutionProviderESProducer
Definition:
StringResolutionProviderESProducer.cc:7
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
ModuleDef.h
Generated for CMSSW Reference Manual by
1.8.11