#include <JetCorrectionESProducer.h>
Public Member Functions | |
JetCorrectionESProducer (edm::ParameterSet const &fConfig) | |
boost::shared_ptr< JetCorrector > | produce (JetCorrectionsRecord const &iRecord) |
~JetCorrectionESProducer () | |
Private Attributes | |
std::string | mAlgo |
std::string | mLevel |
edm::ParameterSet | mParameterSet |
Definition at line 27 of file JetCorrectionESProducer.h.
JetCorrectionESProducer< Corrector >::JetCorrectionESProducer | ( | edm::ParameterSet const & | fConfig | ) | [inline] |
Definition at line 35 of file JetCorrectionESProducer.h.
References edm::ParameterSet::getParameter(), label, JetCorrectionESProducer< Corrector >::mAlgo, JetCorrectionESProducer< Corrector >::mLevel, and edm::ESProducer::setWhatProduced().
: mParameterSet(fConfig) { std::string label = fConfig.getParameter<std::string>("@module_label"); mLevel = fConfig.getParameter<std::string>("level"); mAlgo = fConfig.getParameter<std::string>("algorithm"); setWhatProduced(this, label); }
JetCorrectionESProducer< Corrector >::~JetCorrectionESProducer | ( | ) | [inline] |
Definition at line 44 of file JetCorrectionESProducer.h.
{}
boost::shared_ptr<JetCorrector> JetCorrectionESProducer< Corrector >::produce | ( | JetCorrectionsRecord const & | iRecord | ) | [inline] |
Definition at line 46 of file JetCorrectionESProducer.h.
References edm::eventsetup::EventSetupRecord::get(), JetCorrectionESProducer< Corrector >::mAlgo, JetCorrectionESProducer< Corrector >::mLevel, and JetCorrectionESProducer< Corrector >::mParameterSet.
{ edm::ESHandle<JetCorrectorParametersCollection> JetCorParColl; iRecord.get(mAlgo,JetCorParColl); JetCorrectorParameters const& JetCorPar = (*JetCorParColl)[mLevel]; boost::shared_ptr<JetCorrector> mCorrector(new Corrector(JetCorPar, mParameterSet)); return mCorrector; }
std::string JetCorrectionESProducer< Corrector >::mAlgo [private] |
Definition at line 32 of file JetCorrectionESProducer.h.
Referenced by JetCorrectionESProducer< Corrector >::JetCorrectionESProducer(), and JetCorrectionESProducer< Corrector >::produce().
std::string JetCorrectionESProducer< Corrector >::mLevel [private] |
Definition at line 31 of file JetCorrectionESProducer.h.
Referenced by JetCorrectionESProducer< Corrector >::JetCorrectionESProducer(), and JetCorrectionESProducer< Corrector >::produce().
edm::ParameterSet JetCorrectionESProducer< Corrector >::mParameterSet [private] |
Definition at line 30 of file JetCorrectionESProducer.h.
Referenced by JetCorrectionESProducer< Corrector >::produce().