CMS 3D CMS Logo

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
21 
24 
26 public:
29 
30  std::shared_ptr<const QGLikelihoodSystematicsObject> produce(const QGLikelihoodSystematicsRcd&);
31 
32 private:
34 };
35 
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 
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
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
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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