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
DefaultFFTJetObjectFactory< Base > Struct Template Reference

#include <FFTJetObjectFactory.h>

Inheritance diagram for DefaultFFTJetObjectFactory< Base >:

Public Types

typedef Base base_type
 

Public Member Functions

Base * create (const std::string &derivedType, const edm::ParameterSet &ps) const
 
 DefaultFFTJetObjectFactory ()
 
virtual ~DefaultFFTJetObjectFactory ()
 

Private Member Functions

 DefaultFFTJetObjectFactory (const DefaultFFTJetObjectFactory &)
 
DefaultFFTJetObjectFactoryoperator= (const DefaultFFTJetObjectFactory &)
 

Detailed Description

template<class Base>
struct DefaultFFTJetObjectFactory< Base >

Definition at line 29 of file FFTJetObjectFactory.h.

Member Typedef Documentation

template<class Base>
typedef Base DefaultFFTJetObjectFactory< Base >::base_type

Definition at line 32 of file FFTJetObjectFactory.h.

Constructor & Destructor Documentation

template<class Base>
DefaultFFTJetObjectFactory< Base >::DefaultFFTJetObjectFactory ( )
inline

Definition at line 34 of file FFTJetObjectFactory.h.

35  : std::map<std::string, AbsFFTJetObjectFactory<Base>*>() {}
template<class Base>
virtual DefaultFFTJetObjectFactory< Base >::~DefaultFFTJetObjectFactory ( )
inlinevirtual

Definition at line 37 of file FFTJetObjectFactory.h.

38  {
40  iterator it = this->begin(); it != this->end(); ++it)
41  delete it->second;
42  }
dictionary map
Definition: Association.py:205
#define end
Definition: vmac.h:38
#define begin
Definition: vmac.h:31
template<class Base>
DefaultFFTJetObjectFactory< Base >::DefaultFFTJetObjectFactory ( const DefaultFFTJetObjectFactory< Base > &  )
private

Member Function Documentation

template<class Base>
Base* DefaultFFTJetObjectFactory< Base >::create ( const std::string &  derivedType,
const edm::ParameterSet ps 
) const
inline

Definition at line 44 of file FFTJetObjectFactory.h.

46  {
47  typename std::map<std::string, AbsFFTJetObjectFactory<Base>*>::
48  const_iterator it = this->find(derivedType);
49  if (it == this->end())
50  throw cms::Exception("KeyNotFound")
51  << "Derived type \"" << derivedType
52  << "\" is not registered with the factory\n";
53  return it->second->create(ps);
54  }
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:38
template<class Base>
DefaultFFTJetObjectFactory& DefaultFFTJetObjectFactory< Base >::operator= ( const DefaultFFTJetObjectFactory< Base > &  )
private