00001 #include "artdaq/Application/makeCommandableFragmentGenerator.hh"
00002
00003 #include "artdaq/Application/GeneratorMacros.hh"
00004 #include "fhiclcpp/ParameterSet.h"
00005 #include "cetlib/BasicPluginFactory.h"
00006
00007 std::unique_ptr<artdaq::CommandableFragmentGenerator>
00008 artdaq::makeCommandableFragmentGenerator(std::string const& generator_plugin_spec,
00009 fhicl::ParameterSet const& ps)
00010 {
00011 static cet::BasicPluginFactory bpf("generator", "make");
00012
00013 return bpf.makePlugin<std::unique_ptr<artdaq::CommandableFragmentGenerator>,
00014 fhicl::ParameterSet const &>(generator_plugin_spec, ps);
00015 }