CMS 3D CMS Logo

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::unique_ptr<QGLikelihoodObject> QGLikelihoodESProducer::produce(const QGLikelihoodRcd& iRecord){
30  iRecord.get(mAlgo, qglObj);
31 
32  return std::make_unique<QGLikelihoodObject>(*qglObj);
33 }
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
char const * label
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
std::unique_ptr< QGLikelihoodObject > produce(const QGLikelihoodRcd &)
QGLikelihoodESProducer(const edm::ParameterSet &)