CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
const edm::ESGetToken< QGLikelihoodSystematicsObject, QGLikelihoodSystematicsRcd > token_
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
QGLikelihoodSystematicsESProducer(const edm::ParameterSet &)
std::shared_ptr< const QGLikelihoodSystematicsObject > produce(const QGLikelihoodSystematicsRcd &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HLT enums.