Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:53

0001 #include "PackingSetupFactory.h"
0002 
0003 EDM_REGISTER_PLUGINFACTORY(l1t::PackingSetupFactoryT, "PackingSetupFactory");
0004 
0005 namespace l1t {
0006   const PackingSetupFactory PackingSetupFactory::instance_;
0007 
0008   std::unique_ptr<PackingSetup> PackingSetupFactory::make(const std::string& type) const {
0009     return PackingSetupFactoryT::get()->create("l1t::" + type);
0010   }
0011 
0012   void PackingSetupFactory::fillDescription(edm::ParameterSetDescription& desc) const {
0013     for (const auto& info : PackingSetupFactoryT::get()->available()) {
0014       PackingSetupFactoryT::get()->create(info.name_)->fillDescription(desc);
0015     }
0016   }
0017 }  // namespace l1t