test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QGLikelihoodESProducer.cc
Go to the documentation of this file.
1 /*
2  Description: ESProducer to get the quark-gluon likelihood object "QGLikelihoodObject"
3  from record "QGLikelihoodRcd".
4 
5  Implementation:
6  Completely trivial, simply returns the QGLikelihoodObject to the user. There is only
7  one QGLikelihoodObject object in each record.
8 */
9 // Original Author: Salvatore Rappoccio
10 // Created: Thu, 13 Mar 2014 15:02:39 GMT
11 
13 
15  //the following line is needed to tell the framework what
16  // data is being produced
17  std::string label = iConfig.getParameter<std::string>("@module_label");
18  mAlgo = iConfig.getParameter<std::string>("algo");
19  setWhatProduced(this, label);
20 }
21 
22 // The same PDF's are valid for any time
25 }
26 
27 // Produce the data
28 std::shared_ptr<QGLikelihoodObject> QGLikelihoodESProducer::produce(const QGLikelihoodRcd& iRecord){
30  iRecord.get(mAlgo, qglObj);
31 
32  return std::make_shared<QGLikelihoodObject>(*qglObj);
33 }
T getParameter(std::string const &) const
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
static const IOVSyncValue & beginOfTime()
void get(HolderT &iHolder) const
std::shared_ptr< QGLikelihoodObject > produce(const QGLikelihoodRcd &)
QGLikelihoodESProducer(const edm::ParameterSet &)