CMS 3D CMS Logo

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

◆ base_type

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

Definition at line 27 of file FFTJetObjectFactory.h.

Constructor & Destructor Documentation

◆ DefaultFFTJetObjectFactory() [1/2]

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

Definition at line 29 of file FFTJetObjectFactory.h.

29 : std::map<std::string, AbsFFTJetObjectFactory<Base>*>() {}

◆ ~DefaultFFTJetObjectFactory()

template<class Base>
virtual DefaultFFTJetObjectFactory< Base >::~DefaultFFTJetObjectFactory ( )
inlinevirtual

◆ DefaultFFTJetObjectFactory() [2/2]

template<class Base>
DefaultFFTJetObjectFactory< Base >::DefaultFFTJetObjectFactory ( const DefaultFFTJetObjectFactory< Base > &  )
delete

Member Function Documentation

◆ create()

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

◆ operator=()

template<class Base>
DefaultFFTJetObjectFactory& DefaultFFTJetObjectFactory< Base >::operator= ( const DefaultFFTJetObjectFactory< Base > &  )
delete