CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
l1t::PackingSetupFactory Class Reference

#include <PackingSetupFactory.h>

Public Member Functions

void fillDescription (edm::ParameterSetDescription &) const
 
std::unique_ptr< PackingSetupmake (const std::string &) const
 

Static Public Member Functions

static const PackingSetupFactoryget ()
 

Private Member Functions

 PackingSetupFactory ()
 

Static Private Attributes

static const PackingSetupFactory instance_
 

Detailed Description

Definition at line 12 of file PackingSetupFactory.h.

Constructor & Destructor Documentation

l1t::PackingSetupFactory::PackingSetupFactory ( )
inlineprivate

Definition at line 18 of file PackingSetupFactory.h.

References instance_.

18 {};

Member Function Documentation

void l1t::PackingSetupFactory::fillDescription ( edm::ParameterSetDescription desc) const

Definition at line 22 of file PackingSetupFactory.cc.

References reco::get(), and info().

Referenced by l1t::L1TDigiToRaw::fillDescriptions(), and get().

23  {
24  for (const auto& info: PackingSetupFactoryT::get()->available()) {
25  PackingSetupFactoryT::get()->create(info.name_)->fillDescription(desc);
26  }
27  }
static const TGPicture * info(bool iBackgroundIsBlack)
T get(const Candidate &c)
Definition: component.h:55
static const PackingSetupFactory* l1t::PackingSetupFactory::get ( )
inlinestatic
std::unique_ptr< PackingSetup > l1t::PackingSetupFactory::make ( const std::string &  type) const

Definition at line 11 of file PackingSetupFactory.cc.

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

Referenced by get(), l1t::L1TDigiToRaw::L1TDigiToRaw(), and l1t::L1TRawToDigi::L1TRawToDigi().

12  {
13  auto helper = std::unique_ptr<PackingSetup>(PackingSetupFactoryT::get()->create("l1t::" + type));
14 
15  if (helper.get() == 0)
16  throw edm::Exception(edm::errors::Configuration, "NoSourceModule") << "cannot find packing setup " << type;
17 
18  return helper;
19  }
type
Definition: HCALResponse.h:21
Definition: helper.py:1
T get(const Candidate &c)
Definition: component.h:55

Member Data Documentation

const PackingSetupFactory l1t::PackingSetupFactory::instance_
staticprivate

Definition at line 18 of file PackingSetupFactory.h.

Referenced by get(), and PackingSetupFactory().