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::PackerFactory Class Reference

#include <Packer.h>

Public Member Functions

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

Static Public Member Functions

static const PackerFactoryget ()
 

Private Member Functions

 PackerFactory ()
 

Static Private Attributes

static const PackerFactory instance_
 

Detailed Description

Definition at line 26 of file Packer.h.

Constructor & Destructor Documentation

l1t::PackerFactory::PackerFactory ( )
inlineprivate

Definition at line 31 of file Packer.h.

31 {};

Member Function Documentation

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

Definition at line 12 of file Packer.cc.

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

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

13  {
14  auto unpacker = std::shared_ptr<Packer>(PackerFactoryT::get()->create("l1t::" + name));
15 
16  if (unpacker.get() == 0) {
17  throw edm::Exception(edm::errors::Configuration, "NoSourceModule")
18  << "Cannot find a packer named " << name;
19  }
20 
21  return unpacker;
22  }
T get(const Candidate &c)
Definition: component.h:55

Member Data Documentation

const PackerFactory l1t::PackerFactory::instance_
staticprivate

Definition at line 31 of file Packer.h.

Referenced by get().