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

◆ JetCorrectorProducer() [1/2]

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

Definition at line 36 of file JetCorrectorProducer.h.

36  : maker_{iPSet, consumesCollector()} {
37  produces<reco::JetCorrector>();
38  }

◆ JetCorrectorProducer() [2/2]

template<typename T >
JetCorrectorProducer< T >::JetCorrectorProducer ( const JetCorrectorProducer< T > &  )
privatedelete

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 47 of file JetCorrectorProducer.h.

47  {
48  T::Maker::fillDescriptions(iDescriptions);
49  }

References fillDescriptions().

◆ operator=()

template<typename T >
const JetCorrectorProducer& JetCorrectorProducer< T >::operator= ( const JetCorrectorProducer< T > &  )
privatedelete

◆ produce()

template<typename T >
void JetCorrectorProducer< T >::produce ( edm::Event iEvent,
edm::EventSetup const &  iSetup 
)
inlineoverride

Definition at line 41 of file JetCorrectorProducer.h.

41  {
42  auto impl = maker_.make(iEvent, iSetup);
43  std::unique_ptr<reco::JetCorrector> corrector{new reco::JetCorrector{std::move(impl)}};
45  }

References pfClustersFromHGC3DClusters_cfi::corrector, iEvent, JetCorrectorProducer< T >::maker_, and eostools::move().

Member Data Documentation

◆ maker_

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

Definition at line 57 of file JetCorrectorProducer.h.

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

JetCorrectorProducer::maker_
T::Maker maker_
Definition: JetCorrectorProducer.h:57
reco::JetCorrector
Definition: JetCorrector.h:35
pfClustersFromHGC3DClusters_cfi.corrector
corrector
Definition: pfClustersFromHGC3DClusters_cfi.py:5
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
iEvent
int iEvent
Definition: GenABIO.cc:224
impl
Definition: trackAlgoPriorityOrder.h:18
eostools.move
def move(src, dest)
Definition: eostools.py:511