CMS 3D CMS Logo

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 &)=delete
 
DefaultFFTJetObjectFactoryoperator= (const DefaultFFTJetObjectFactory &)=delete
 

Detailed Description

template<class Base>
struct DefaultFFTJetObjectFactory< Base >

Definition at line 26 of file FFTJetObjectFactory.h.

Member Typedef Documentation

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

Definition at line 27 of file FFTJetObjectFactory.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file FFTJetObjectFactory.h.

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

Definition at line 31 of file FFTJetObjectFactory.h.

31  {
32  for (typename std::map<std::string, AbsFFTJetObjectFactory<Base>*>::iterator it = this->begin(); it != this->end();
33  ++it)
34  delete it->second;
35  }
#define end
Definition: vmac.h:39
#define begin
Definition: vmac.h:32
template<class Base>
DefaultFFTJetObjectFactory< Base >::DefaultFFTJetObjectFactory ( const DefaultFFTJetObjectFactory< Base > &  )
privatedelete

Member Function Documentation

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

Definition at line 37 of file FFTJetObjectFactory.h.

37  {
38  typename std::map<std::string, AbsFFTJetObjectFactory<Base>*>::const_iterator it = this->find(derivedType);
39  if (it == this->end())
40  throw cms::Exception("KeyNotFound")
41  << "Derived type \"" << derivedType << "\" is not registered with the factory\n";
42  return it->second->create(ps);
43  }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
#define end
Definition: vmac.h:39
template<class Base>
DefaultFFTJetObjectFactory& DefaultFFTJetObjectFactory< Base >::operator= ( const DefaultFFTJetObjectFactory< Base > &  )
privatedelete