1 #include "artdaq/Generators/makeCommandableFragmentGenerator.hh"
3 #include "artdaq/Generators/GeneratorMacros.hh"
4 #include "fhiclcpp/ParameterSet.h"
5 #include "cetlib/BasicPluginFactory.h"
7 std::unique_ptr<artdaq::CommandableFragmentGenerator>
9 fhicl::ParameterSet
const& ps)
11 static cet::BasicPluginFactory bpf(
"generator",
"make");
13 return bpf.makePlugin<std::unique_ptr<artdaq::CommandableFragmentGenerator>,
14 fhicl::ParameterSet
const &>(generator_plugin_spec, ps);
std::unique_ptr< CommandableFragmentGenerator > makeCommandableFragmentGenerator(std::string const &generator_plugin_spec, fhicl::ParameterSet const &ps)
Load a CommandableFragmentGenerator plugin.