JetMETCorrections
Modules
plugins
QGLikelihoodSystematicsESProducer.cc
Go to the documentation of this file.
1
/*
2
Description: ESProducer to get the quark-gluon likelihood object "QGLikelihoodSystematicsObject"
3
from record "QGLikelihoodRcd".
4
5
Implementation:
6
Completely trivial, simply returns the QGLikelihoodSystematicsObject to the user. There is only
7
one QGLikelihoodSystematicsObject object in each record.
8
*/
9
// Original Author: Salvatore Rappoccio
10
// Created: Thu, 13 Mar 2014 15:02:39 GMT
11
12
// system include files
13
#include <memory>
14
15
// user include files
16
#include "
FWCore/Framework/interface/ModuleFactory.h
"
17
#include "
FWCore/Framework/interface/EventSetupRecordIntervalFinder.h
"
18
#include "
FWCore/Framework/interface/ESProducer.h
"
19
#include "
FWCore/Framework/interface/ModuleFactory.h
"
20
#include "
FWCore/Utilities/interface/do_nothing_deleter.h
"
21
22
#include "
CondFormats/JetMETObjects/interface/QGLikelihoodObject.h
"
23
#include "
CondFormats/DataRecord/interface/QGLikelihoodSystematicsRcd.h
"
24
25
class
QGLikelihoodSystematicsESProducer
:
public
edm::ESProducer
{
26
public
:
27
QGLikelihoodSystematicsESProducer
(
const
edm::ParameterSet
&);
28
~QGLikelihoodSystematicsESProducer
()
override
{};
29
30
std::shared_ptr<const QGLikelihoodSystematicsObject>
produce
(
const
QGLikelihoodSystematicsRcd
&);
31
32
private
:
33
const
edm::ESGetToken<QGLikelihoodSystematicsObject, QGLikelihoodSystematicsRcd>
token_
;
34
};
35
36
QGLikelihoodSystematicsESProducer::QGLikelihoodSystematicsESProducer
(
const
edm::ParameterSet
& iConfig)
37
: token_(setWhatProduced(this, iConfig.getParameter<
std
::
string
>(
"@module_label"
))
38
.consumes(
edm
::
ESInputTag
{
""
, iConfig.
getParameter
<
std::string
>(
"algo"
)})) {}
39
40
// Produce the data
41
std::shared_ptr<const QGLikelihoodSystematicsObject>
QGLikelihoodSystematicsESProducer::produce
(
42
const
QGLikelihoodSystematicsRcd
& iRecord) {
43
return
std::shared_ptr<const QGLikelihoodSystematicsObject>(&iRecord.
get
(
token_
),
edm::do_nothing_deleter
());
44
}
45
46
DEFINE_FWK_EVENTSETUP_MODULE
(
QGLikelihoodSystematicsESProducer
);
QGLikelihoodSystematicsRcd
Definition:
QGLikelihoodSystematicsRcd.h:23
ESInputTag
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::do_nothing_deleter
Definition:
do_nothing_deleter.h:34
ESProducer.h
QGLikelihoodSystematicsRcd.h
QGLikelihoodSystematicsESProducer::QGLikelihoodSystematicsESProducer
QGLikelihoodSystematicsESProducer(const edm::ParameterSet &)
Definition:
QGLikelihoodSystematicsESProducer.cc:36
QGLikelihoodSystematicsESProducer
Definition:
QGLikelihoodSystematicsESProducer.cc:25
EventSetupRecordIntervalFinder.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
QGLikelihoodSystematicsESProducer::token_
const edm::ESGetToken< QGLikelihoodSystematicsObject, QGLikelihoodSystematicsRcd > token_
Definition:
QGLikelihoodSystematicsESProducer.cc:33
edm::ParameterSet
Definition:
ParameterSet.h:47
QGLikelihoodSystematicsESProducer::produce
std::shared_ptr< const QGLikelihoodSystematicsObject > produce(const QGLikelihoodSystematicsRcd &)
Definition:
QGLikelihoodSystematicsESProducer.cc:41
QGLikelihoodObject.h
edm::ESGetToken< QGLikelihoodSystematicsObject, QGLikelihoodSystematicsRcd >
ModuleFactory.h
std
Definition:
JetResolutionObject.h:76
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
edm::ESProducer
Definition:
ESProducer.h:104
edm::eventsetup::EventSetupRecordImplementation::get
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
Definition:
EventSetupRecordImplementation.h:74
do_nothing_deleter.h
QGLikelihoodSystematicsESProducer::~QGLikelihoodSystematicsESProducer
~QGLikelihoodSystematicsESProducer() override
Definition:
QGLikelihoodSystematicsESProducer.cc:28
Generated for CMSSW Reference Manual by
1.8.16