CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
DefaultFFTJetRcdMapper< DataType > Struct Template Reference

#include <FFTJetRcdMapper.h>

Inheritance diagram for DefaultFFTJetRcdMapper< DataType >:

Public Types

typedef DataType data_type
 

Public Member Functions

void acquireToken (const std::string &record, edm::ConsumesCollector iC)
 
void acquireToken (const std::string &record, edm::ConsumesCollector iC, const std::string &label)
 
 DefaultFFTJetRcdMapper ()
 
 DefaultFFTJetRcdMapper (const DefaultFFTJetRcdMapper &)=delete
 
edm::ESHandle< DataType > load (const std::string &record, const edm::EventSetup &iSetup) const
 
DefaultFFTJetRcdMapperoperator= (const DefaultFFTJetRcdMapper &)=delete
 
virtual ~DefaultFFTJetRcdMapper ()
 

Detailed Description

template<class DataType>
struct DefaultFFTJetRcdMapper< DataType >

Definition at line 64 of file FFTJetRcdMapper.h.

Member Typedef Documentation

◆ data_type

template<class DataType>
typedef DataType DefaultFFTJetRcdMapper< DataType >::data_type

Definition at line 65 of file FFTJetRcdMapper.h.

Constructor & Destructor Documentation

◆ DefaultFFTJetRcdMapper() [1/2]

template<class DataType>
DefaultFFTJetRcdMapper< DataType >::DefaultFFTJetRcdMapper ( )
inline

Definition at line 67 of file FFTJetRcdMapper.h.

67 : std::map<std::string, AbsFFTJetRcdMapper<DataType>*>() {}

◆ ~DefaultFFTJetRcdMapper()

template<class DataType>
virtual DefaultFFTJetRcdMapper< DataType >::~DefaultFFTJetRcdMapper ( )
inlinevirtual

◆ DefaultFFTJetRcdMapper() [2/2]

template<class DataType>
DefaultFFTJetRcdMapper< DataType >::DefaultFFTJetRcdMapper ( const DefaultFFTJetRcdMapper< DataType > &  )
delete

Member Function Documentation

◆ acquireToken() [1/2]

template<class DataType>
void DefaultFFTJetRcdMapper< DataType >::acquireToken ( const std::string &  record,
edm::ConsumesCollector  iC 
)
inline

Definition at line 75 of file FFTJetRcdMapper.h.

Referenced by FFTJetCorrectorDBReader::FFTJetCorrectorDBReader(), FFTJetPileupEstimator::FFTJetPileupEstimator(), FFTJetPileupProcessor::FFTJetPileupProcessor(), and FFTJetProducer::FFTJetProducer().

75  {
76  typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::iterator it = this->find(record);
77  if (it == this->end())
78  throw cms::Exception("KeyNotFound") << "Record \"" << record << "\" is not registered\n";
79  it->second->acquireToken(iC);
80  }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19

◆ acquireToken() [2/2]

template<class DataType>
void DefaultFFTJetRcdMapper< DataType >::acquireToken ( const std::string &  record,
edm::ConsumesCollector  iC,
const std::string &  label 
)
inline

Definition at line 82 of file FFTJetRcdMapper.h.

82  {
83  typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::iterator it = this->find(record);
84  if (it == this->end())
85  throw cms::Exception("KeyNotFound") << "Record \"" << record << "\" is not registered\n";
86  it->second->acquireToken(iC, label);
87  }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
char const * label

◆ load()

template<class DataType>
edm::ESHandle<DataType> DefaultFFTJetRcdMapper< DataType >::load ( const std::string &  record,
const edm::EventSetup iSetup 
) const
inline

Definition at line 89 of file FFTJetRcdMapper.h.

Referenced by FFTJetCorrectorDBReader::analyze(), FFTJetPileupEstimator::calibrateFromDB(), FFTJetProducer::determinePileupDensityFromDB(), and FFTJetPileupProcessor::loadFlatteningFactors().

89  {
90  typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::const_iterator it = this->find(record);
91  if (it == this->end())
92  throw cms::Exception("KeyNotFound") << "Record \"" << record << "\" is not registered\n";
93  return it->second->load(iSetup);
94  }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19

◆ operator=()

template<class DataType>
DefaultFFTJetRcdMapper& DefaultFFTJetRcdMapper< DataType >::operator= ( const DefaultFFTJetRcdMapper< DataType > &  )
delete