CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
l1t::UnpackerFactory Class Reference

#include <UnpackerFactory.h>

Public Member Functions

std::shared_ptr< Unpackermake (const std::string &) const
 

Static Public Member Functions

static const UnpackerFactoryget ()
 

Private Member Functions

 UnpackerFactory ()
 

Static Private Attributes

static const UnpackerFactory instance_
 

Detailed Description

Definition at line 12 of file UnpackerFactory.h.

Constructor & Destructor Documentation

◆ UnpackerFactory()

l1t::UnpackerFactory::UnpackerFactory ( )
inlineprivate

Definition at line 18 of file UnpackerFactory.h.

18 {};

Member Function Documentation

◆ get()

static const UnpackerFactory* l1t::UnpackerFactory::get ( )
inlinestatic

◆ make()

std::shared_ptr< Unpacker > l1t::UnpackerFactory::make ( const std::string &  name) const

Definition at line 17 of file UnpackerFactory.cc.

References edm::errors::Configuration, Exception, get, and Skims_PA_cff::name.

Referenced by l1t::stage2::CaloSetup::getUnpackers(), l1t::stage2::CaloLayer1Setup::getUnpackers(), l1t::stage2::EMTFSetup::getUnpackers(), l1t::stage2::GMTSetup::getUnpackers(), l1t::stage1::CaloSetup::getUnpackers(), l1t::stage2::GTSetup::getUnpackers(), and l1t::stage2::BMTFSetup::getUnpackers().

17  {
18  auto unpacker = std::shared_ptr<Unpacker>(UnpackerFactoryT::get()->create("l1t::" + name));
19 
20  if (unpacker.get() == nullptr) {
21  throw edm::Exception(edm::errors::Configuration, "NoSourceModule") << "Cannot find an unpacker named " << name;
22  }
23 
24  return unpacker;
25  }
#define get

Member Data Documentation

◆ instance_

const UnpackerFactory l1t::UnpackerFactory::instance_
staticprivate

Definition at line 18 of file UnpackerFactory.h.

Referenced by get().