CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PackerFactory.cc
Go to the documentation of this file.
1 #include "PackerFactory.h"
2 
4 
6 
7 namespace l1t {
8  const PackerFactory PackerFactory::instance_;
9 
10  std::shared_ptr<Packer>
12  {
13  auto unpacker = std::shared_ptr<Packer>(PackerFactoryT::get()->create("l1t::" + name));
14 
15  if (unpacker.get() == 0) {
16  throw edm::Exception(edm::errors::Configuration, "NoSourceModule")
17  << "Cannot find a packer named " << name;
18  }
19 
20  return unpacker;
21  }
22 }
std::shared_ptr< Packer > make(const std::string &) const
static const PackerFactory instance_
Definition: PackerFactory.h:17
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:90
T get(const Candidate &c)
Definition: component.h:55