CMS 3D CMS Logo

PackingSetupFactory.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1TRawToDigi_PackingSetupFactory_h
2 #define EventFilter_L1TRawToDigi_PackingSetupFactory_h
3 
5 
7 
8 namespace l1t {
9  typedef PackingSetup*(prov_fct)();
11 
13  public:
14  static const PackingSetupFactory* get() { return &instance_; };
15  std::unique_ptr<PackingSetup> make(const std::string&) const;
17 
18  private:
21  };
22 } // namespace l1t
23 
24 #define DEFINE_L1T_PACKING_SETUP(type) DEFINE_EDM_PLUGIN(l1t::PackingSetupFactoryT, type, #type)
25 
26 #endif
static const PackingSetupFactory instance_
PackingSetup *() prov_fct()
delete x;
Definition: CaloConfig.h:22
std::unique_ptr< PackingSetup > make(const std::string &) const
edmplugin::PluginFactory< prov_fct > PackingSetupFactoryT
void fillDescription(edm::ParameterSetDescription &) const