CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PackingSetup.cc
Go to the documentation of this file.
3 
5 
7 
8 namespace l1t {
9  const PackingSetupFactory PackingSetupFactory::instance_;
10 
11  std::auto_ptr<PackingSetup>
13  {
14  auto helper = std::auto_ptr<PackingSetup>(PackingSetupFactoryT::get()->create("l1t::" + type));
15 
16  if (helper.get() == 0)
17  throw edm::Exception(edm::errors::Configuration, "NoSourceModule") << "cannot find packing setup " << type;
18 
19  return helper;
20  }
21 }
type
Definition: HCALResponse.h:21
static const PackingSetupFactory instance_
Definition: PackingSetup.h:49
std::auto_ptr< PackingSetup > make(const std::string &) const
Definition: PackingSetup.cc:12
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:90
T get(const Candidate &c)
Definition: component.h:55