Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
9
public
:
10
StringResolutionProviderESProducer
() { }
11
StringResolutionProviderESProducer
(
const
edm::ParameterSet
&iConfig) ;
12
13
std::auto_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::auto_ptr<KinematicResolutionProvider>
26
StringResolutionProviderESProducer::produce
(
const
KinematicResolutionRcd
&rcd) {
27
return
std::auto_ptr<KinematicResolutionProvider>(
new
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
StringResolutionProvider.h
KinematicResolutionRcd.h
StringResolutionProvider
Class to provide resolution factors for PAT candidates.
Definition:
StringResolutionProvider.h:43
MakerMacros.h
StringResolutionProviderESProducer::StringResolutionProviderESProducer
StringResolutionProviderESProducer()
Definition:
StringResolutionProviderESProducer.cc:10
StringResolutionProviderESProducer::cfg_
edm::ParameterSet cfg_
Definition:
StringResolutionProviderESProducer.cc:16
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
edm::ESProducer
Definition:
ESProducer.h:97
ParameterSet.h
KinematicResolutionRcd
Definition:
KinematicResolutionRcd.h:27
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:56
StringResolutionProviderESProducer::produce
std::auto_ptr< KinematicResolutionProvider > produce(const KinematicResolutionRcd &rcd)
Definition:
StringResolutionProviderESProducer.cc:26
ESProducer.h
StringResolutionProviderESProducer
Definition:
StringResolutionProviderESProducer.cc:7
edm::ParameterSet
Definition:
ParameterSet.h:35
ModuleFactory.h
ModuleDef.h
Generated for CMSSW Reference Manual by
1.8.5