File indexing completed on 2024-09-07 04:36:15
0001 #ifndef EventFilter_L1TRawToDigi_PackerFactory_h
0002 #define EventFilter_L1TRawToDigi_PackerFactory_h
0003
0004 #include "FWCore/PluginManager/interface/PluginFactory.h"
0005
0006 #include "EventFilter/L1TRawToDigi/interface/Packer.h"
0007
0008 namespace l1t {
0009 typedef Packer*(pack_fct)();
0010 typedef edmplugin::PluginFactory<pack_fct> PackerFactoryT;
0011
0012 class PackerFactory {
0013 public:
0014 inline static const PackerFactory* get() { return &instance_; };
0015 std::shared_ptr<Packer> make(const std::string&) const;
0016
0017 private:
0018 PackerFactory() {}
0019 static const PackerFactory instance_;
0020 };
0021 }
0022
0023 #define DEFINE_L1T_PACKER(type) DEFINE_EDM_PLUGIN(l1t::PackerFactoryT, type, #type)
0024
0025 #endif