CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
l1t::PackingSetupFactory Class Reference

#include <PackingSetup.h>

Public Member Functions

void fillDescription (edm::ParameterSetDescription &) const
 
std::auto_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 50 of file PackingSetup.h.

Constructor & Destructor Documentation

l1t::PackingSetupFactory::PackingSetupFactory ( )
inlineprivate

Definition at line 56 of file PackingSetup.h.

56 {};

Member Function Documentation

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

Definition at line 23 of file PackingSetup.cc.

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

Referenced by l1t::L1TDigiToRaw::fillDescriptions().

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

Definition at line 12 of file PackingSetup.cc.

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

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

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  }
type
Definition: HCALResponse.h:21
T get(const Candidate &c)
Definition: component.h:55

Member Data Documentation

const PackingSetupFactory l1t::PackingSetupFactory::instance_
staticprivate

Definition at line 56 of file PackingSetup.h.

Referenced by get().