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 
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::unique_ptr<QGLikelihoodSystematicsObject> QGLikelihoodSystematicsESProducer::produce(const QGLikelihoodSystematicsRcd& iRecord){
32  iRecord.get(mAlgo, qglObj);
33 
34  return std::make_unique<QGLikelihoodSystematicsObject>(*qglObj);
35 }
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
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
std::unique_ptr< QGLikelihoodSystematicsObject > produce(const QGLikelihoodSystematicsRcd &)
char const * label
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
QGLikelihoodSystematicsESProducer(const edm::ParameterSet &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)