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  //the following line is needed to tell the framework what
38  // data is being produced
39  std::string label(iConfig.getParameter<std::string>("@module_label"));
40  auto algo = iConfig.getParameter<std::string>("algo");
41  setWhatProduced(this, label).setConsumes(token_, edm::ESInputTag{"", algo});
42 }
43 
44 // Produce the data
45 std::shared_ptr<const QGLikelihoodSystematicsObject> QGLikelihoodSystematicsESProducer::produce(
46  const QGLikelihoodSystematicsRcd& iRecord) {
47  return std::shared_ptr<const QGLikelihoodSystematicsObject>(&iRecord.get(token_), edm::do_nothing_deleter());
48 }
49 
QGLikelihoodSystematicsRcd
Definition: QGLikelihoodSystematicsRcd.h:23
edm::ESInputTag
Definition: ESInputTag.h:87
edm::do_nothing_deleter
Definition: do_nothing_deleter.h:34
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
ESProducer.h
QGLikelihoodSystematicsRcd.h
QGLikelihoodSystematicsESProducer::QGLikelihoodSystematicsESProducer
QGLikelihoodSystematicsESProducer(const edm::ParameterSet &)
Definition: QGLikelihoodSystematicsESProducer.cc:36
cmsdt::algo
algo
Definition: constants.h:164
QGLikelihoodSystematicsESProducer
Definition: QGLikelihoodSystematicsESProducer.cc:25
EventSetupRecordIntervalFinder.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
QGLikelihoodSystematicsESProducer::produce
std::shared_ptr< const QGLikelihoodSystematicsObject > produce(const QGLikelihoodSystematicsRcd &)
Definition: QGLikelihoodSystematicsESProducer.cc:45
QGLikelihoodObject.h
edm::ESGetToken< QGLikelihoodSystematicsObject, QGLikelihoodSystematicsRcd >
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
QGLikelihoodSystematicsESProducer::token_
edm::ESGetToken< QGLikelihoodSystematicsObject, QGLikelihoodSystematicsRcd > token_
Definition: QGLikelihoodSystematicsESProducer.cc:33
edm::ESProducer
Definition: ESProducer.h:101
edm::eventsetup::EventSetupRecordImplementation::get
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
Definition: EventSetupRecordImplementation.h:74
label
const char * label
Definition: PFTauDecayModeTools.cc:11
do_nothing_deleter.h
QGLikelihoodSystematicsESProducer::~QGLikelihoodSystematicsESProducer
~QGLikelihoodSystematicsESProducer() override
Definition: QGLikelihoodSystematicsESProducer.cc:28