CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
l1t::PackingSetupFactory Class Reference

#include <PackingSetup.h>

Public Member Functions

std::auto_ptr< PackingSetupmake (const std::string &) const
 

Static Public Member Functions

static const PackingSetupFactoryget ()
 

Private Member Functions

 PackingSetupFactory ()
 

Static Private Attributes

static const PackingSetupFactory instance_
 

Detailed Description

Definition at line 44 of file PackingSetup.h.

Constructor & Destructor Documentation

l1t::PackingSetupFactory::PackingSetupFactory ( )
inlineprivate

Definition at line 49 of file PackingSetup.h.

49 {};

Member Function Documentation

static const PackingSetupFactory* l1t::PackingSetupFactory::get ( void  )
inlinestatic
std::auto_ptr< PackingSetup > l1t::PackingSetupFactory::make ( const std::string &  type) const

Definition at line 12 of file PackingSetup.cc.

References edm::errors::Configuration, and reco::get().

Referenced by l1t::L1TDigiToRaw::L1TDigiToRaw(), and l1t::L1TRawToDigi::L1TRawToDigi().

13  {
14  auto helper = std::auto_ptr<PackingSetup>(PackingSetupFactoryT::get()->create("l1t::" + type));
15 
16  if (helper.get() == 0)
17  throw edm::Exception(edm::errors::Configuration, "NoSourceModule") << "cannot find packing setup " << type;
18 
19  return helper;
20  }
type
Definition: HCALResponse.h:21
T get(const Candidate &c)
Definition: component.h:55

Member Data Documentation

const PackingSetupFactory l1t::PackingSetupFactory::instance_
staticprivate

Definition at line 49 of file PackingSetup.h.

Referenced by get().