test
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 
22  void
24  {
25  for (const auto& info: PackingSetupFactoryT::get()->available()) {
26  PackingSetupFactoryT::get()->create(info.name_)->fillDescription(desc);
27  }
28  }
29 }
type
Definition: HCALResponse.h:21
static const TGPicture * info(bool iBackgroundIsBlack)
static const PackingSetupFactory instance_
Definition: PackingSetup.h:56
std::auto_ptr< PackingSetup > make(const std::string &) const
Definition: PackingSetup.cc:12
void fillDescription(edm::ParameterSetDescription &) const
Definition: PackingSetup.cc:23
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:90
T get(const Candidate &c)
Definition: component.h:55