CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
JetCorrectorProducer< T > Class Template Reference

#include "JetCorrectorProducer.h"

Inheritance diagram for JetCorrectorProducer< T >:
edm::stream::EDProducer<>

Public Member Functions

 JetCorrectorProducer (edm::ParameterSet const &iPSet)
 
void produce (edm::Event &iEvent, edm::EventSetup const &iSetup) override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &iDescriptions)
 

Private Member Functions

 JetCorrectorProducer (const JetCorrectorProducer &)=delete
 
const JetCorrectorProduceroperator= (const JetCorrectorProducer &)=delete
 

Private Attributes

T::Maker maker_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

template<typename T>
class JetCorrectorProducer< T >

Description: [one line class summary]

Usage: <usage>

Definition at line 34 of file JetCorrectorProducer.h.

Constructor & Destructor Documentation

template<typename T >
JetCorrectorProducer< T >::JetCorrectorProducer ( edm::ParameterSet const &  iPSet)
inline

Definition at line 36 of file JetCorrectorProducer.h.

Referenced by JetCorrectorProducer< T >::fillDescriptions().

36  : maker_{iPSet, consumesCollector()} {
37  produces<reco::JetCorrector>();
38  }
template<typename T >
JetCorrectorProducer< T >::JetCorrectorProducer ( const JetCorrectorProducer< T > &  )
privatedelete

Member Function Documentation

template<typename T >
static void JetCorrectorProducer< T >::fillDescriptions ( edm::ConfigurationDescriptions iDescriptions)
inlinestatic

Definition at line 47 of file JetCorrectorProducer.h.

References fillDescriptions(), JetCorrectorProducer< T >::JetCorrectorProducer(), and JetCorrectorProducer< T >::operator=().

47  {
48  T::Maker::fillDescriptions(iDescriptions);
49  }
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
template<typename T >
const JetCorrectorProducer& JetCorrectorProducer< T >::operator= ( const JetCorrectorProducer< T > &  )
privatedelete
template<typename T >
void JetCorrectorProducer< T >::produce ( edm::Event iEvent,
edm::EventSetup const &  iSetup 
)
inlineoverride

Definition at line 41 of file JetCorrectorProducer.h.

References mitigatedMETSequence_cff::corrector, JetCorrectorProducer< T >::maker_, eostools::move(), and edm::Event::put().

41  {
42  auto impl = maker_.make(iEvent, iSetup);
43  std::unique_ptr<reco::JetCorrector> corrector{new reco::JetCorrector{std::move(impl)}};
44  iEvent.put(std::move(corrector));
45  }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:131
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

template<typename T >
T::Maker JetCorrectorProducer< T >::maker_
private

Definition at line 57 of file JetCorrectorProducer.h.

Referenced by JetCorrectorProducer< T >::produce().