CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public 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 ()
 
 DefaultFFTJetObjectFactory (const DefaultFFTJetObjectFactory &)=delete
 
DefaultFFTJetObjectFactoryoperator= (const DefaultFFTJetObjectFactory &)=delete
 
virtual ~DefaultFFTJetObjectFactory ()
 

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  }
string end
Definition: dataset.py:937
template<class Base>
DefaultFFTJetObjectFactory< Base >::DefaultFFTJetObjectFactory ( const DefaultFFTJetObjectFactory< Base > &  )
delete

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
string end
Definition: dataset.py:937
template<class Base>
DefaultFFTJetObjectFactory& DefaultFFTJetObjectFactory< Base >::operator= ( const DefaultFFTJetObjectFactory< Base > &  )
delete