CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions
DefaultFFTJetRcdMapper< DataType > Struct Template Reference

#include <FFTJetRcdMapper.h>

Inheritance diagram for DefaultFFTJetRcdMapper< DataType >:

Public Types

typedef DataType data_type
 

Public Member Functions

 DefaultFFTJetRcdMapper ()
 
void load (const edm::EventSetup &iSetup, const std::string &record, edm::ESHandle< DataType > &handle) const
 
void load (const edm::EventSetup &iSetup, const std::string &record, const std::string &label, edm::ESHandle< DataType > &handle) const
 
virtual ~DefaultFFTJetRcdMapper ()
 

Private Member Functions

 DefaultFFTJetRcdMapper (const DefaultFFTJetRcdMapper &)
 
DefaultFFTJetRcdMapperoperator= (const DefaultFFTJetRcdMapper &)
 

Detailed Description

template<class DataType>
struct DefaultFFTJetRcdMapper< DataType >

Definition at line 49 of file FFTJetRcdMapper.h.

Member Typedef Documentation

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

Definition at line 52 of file FFTJetRcdMapper.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file FFTJetRcdMapper.h.

55  : std::map<std::string, AbsFFTJetRcdMapper<DataType>*>() {}
template<class DataType>
virtual DefaultFFTJetRcdMapper< DataType >::~DefaultFFTJetRcdMapper ( )
inlinevirtual

Definition at line 57 of file FFTJetRcdMapper.h.

58  {
60  iterator it = this->begin(); it != this->end(); ++it)
61  delete it->second;
62  }
#define end
Definition: vmac.h:37
#define begin
Definition: vmac.h:30
template<class DataType>
DefaultFFTJetRcdMapper< DataType >::DefaultFFTJetRcdMapper ( const DefaultFFTJetRcdMapper< DataType > &  )
private

Member Function Documentation

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

Definition at line 64 of file FFTJetRcdMapper.h.

67  {
68  typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::
69  const_iterator it = this->find(record);
70  if (it == this->end())
71  throw cms::Exception("KeyNotFound")
72  << "Record \"" << record << "\" is not registered\n";
73  it->second->load(iSetup, handle);
74  }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
#define end
Definition: vmac.h:37
template<class DataType>
void DefaultFFTJetRcdMapper< DataType >::load ( const edm::EventSetup iSetup,
const std::string &  record,
const std::string &  label,
edm::ESHandle< DataType > &  handle 
) const
inline

Definition at line 76 of file FFTJetRcdMapper.h.

80  {
81  typename std::map<std::string, AbsFFTJetRcdMapper<DataType>*>::
82  const_iterator it = this->find(record);
83  if (it == this->end())
84  throw cms::Exception("KeyNotFound")
85  << "Record \"" << record << "\" is not registered\n";
86  it->second->load(iSetup, label, handle);
87  }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
#define end
Definition: vmac.h:37
template<class DataType>
DefaultFFTJetRcdMapper& DefaultFFTJetRcdMapper< DataType >::operator= ( const DefaultFFTJetRcdMapper< DataType > &  )
private