CMS 3D CMS Logo

Public Member Functions | Private Attributes

JetCorrectionESProducer< Corrector > Class Template Reference

#include <JetCorrectionESProducer.h>

Inheritance diagram for JetCorrectionESProducer< Corrector >:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 JetCorrectionESProducer (edm::ParameterSet const &fConfig)
boost::shared_ptr< JetCorrectorproduce (JetCorrectionsRecord const &iRecord)
 ~JetCorrectionESProducer ()

Private Attributes

std::string mAlgo
std::string mLevel
edm::ParameterSet mParameterSet

Detailed Description

template<class Corrector>
class JetCorrectionESProducer< Corrector >

Definition at line 27 of file JetCorrectionESProducer.h.


Constructor & Destructor Documentation

template<class Corrector >
JetCorrectionESProducer< Corrector >::JetCorrectionESProducer ( edm::ParameterSet const &  fConfig) [inline]
template<class Corrector >
JetCorrectionESProducer< Corrector >::~JetCorrectionESProducer ( ) [inline]

Definition at line 44 of file JetCorrectionESProducer.h.

{}

Member Function Documentation

template<class Corrector >
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;
  }

Member Data Documentation

template<class Corrector >
std::string JetCorrectionESProducer< Corrector >::mAlgo [private]
template<class Corrector >
std::string JetCorrectionESProducer< Corrector >::mLevel [private]
template<class Corrector >
edm::ParameterSet JetCorrectionESProducer< Corrector >::mParameterSet [private]