test
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::UnpackerFactory Class Reference

#include <Unpacker.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 21 of file Unpacker.h.

Constructor & Destructor Documentation

l1t::UnpackerFactory::UnpackerFactory ( )
inlineprivate

Definition at line 26 of file Unpacker.h.

26 {};

Member Function Documentation

static const UnpackerFactory* l1t::UnpackerFactory::get ( )
inlinestatic
std::shared_ptr< Unpacker > l1t::UnpackerFactory::make ( const std::string &  name) const

Definition at line 21 of file Unpacker.cc.

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

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

22  {
23  auto unpacker = std::shared_ptr<Unpacker>(UnpackerFactoryT::get()->create("l1t::" + name));
24 
25  if (unpacker.get() == 0) {
26  throw edm::Exception(edm::errors::Configuration, "NoSourceModule")
27  << "Cannot find an unpacker named " << name;
28  }
29 
30  return unpacker;
31  }
T get(const Candidate &c)
Definition: component.h:55

Member Data Documentation

const UnpackerFactory l1t::UnpackerFactory::instance_
staticprivate

Definition at line 26 of file Unpacker.h.

Referenced by get().