CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
14 
16  //the following line is needed to tell the framework what
17  // data is being produced
18  std::string label(iConfig.getParameter<std::string>("@module_label"));
19  mAlgo = iConfig.getParameter<std::string>("algo");
20  setWhatProduced(this, label);
21 }
22 
23 
24 // The same PDF's is valid for any time
27 }
28 
29 // Produce the data
30 std::shared_ptr<QGLikelihoodSystematicsObject> QGLikelihoodSystematicsESProducer::produce(const QGLikelihoodSystematicsRcd& iRecord){
32  iRecord.get(mAlgo, qglObj);
33 
34  return std::make_shared<QGLikelihoodSystematicsObject>(*qglObj);
35 }
T getParameter(std::string const &) const
std::shared_ptr< QGLikelihoodSystematicsObject > produce(const QGLikelihoodSystematicsRcd &)
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
static const IOVSyncValue & beginOfTime()
QGLikelihoodSystematicsESProducer(const edm::ParameterSet &)
void get(HolderT &iHolder) const
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)