CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Packer.cc
Go to the documentation of this file.
3 
5 
7 
8 namespace l1t {
9  const PackerFactory PackerFactory::instance_;
10 
11  std::shared_ptr<Packer>
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  }
23 }
std::shared_ptr< Packer > make(const std::string &) const
Definition: Packer.cc:12
static const PackerFactory instance_
Definition: Packer.h:31
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:90
T get(const Candidate &c)
Definition: component.h:55