CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

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
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &iDescriptions)
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

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, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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 37 of file JetCorrectorProducer.h.

References edm::EDConsumerBase::consumesCollector().

37  :
38  maker_{iPSet,consumesCollector()}
39  {
40  produces<reco::JetCorrector>();
41  }
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
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 50 of file JetCorrectorProducer.h.

50  {
51  T::Maker::fillDescriptions(iDescriptions);
52  }
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 
)
inlineoverridevirtual

Implements edm::stream::EDProducerBase.

Definition at line 44 of file JetCorrectorProducer.h.

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

44  {
45  auto impl =maker_.make(iEvent,iSetup);
46  std::auto_ptr<reco::JetCorrector> corrector{ new reco::JetCorrector{std::move(impl) } };
47  iEvent.put(corrector);
48  }
tuple corrector
Definition: mvaPFMET_cff.py:88
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:113
def move
Definition: eostools.py:508

Member Data Documentation

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

Definition at line 60 of file JetCorrectorProducer.h.

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