1 #include "artdaq-core/Generators/makeFragmentGenerator.hh"
3 #include "artdaq-core/Generators/GeneratorMacros.hh"
4 #include "cetlib/BasicPluginFactory.h"
5 #include "fhiclcpp/ParameterSet.h"
7 std::unique_ptr<artdaq::FragmentGenerator>
9 fhicl::ParameterSet
const& ps)
11 static cet::BasicPluginFactory bpf(
"generator",
"make");
13 return bpf.makePlugin<std::unique_ptr<artdaq::FragmentGenerator>,
14 fhicl::ParameterSet
const&>(generator_plugin_spec, ps);
std::unique_ptr< FragmentGenerator > makeFragmentGenerator(std::string const &generator_plugin_spec, fhicl::ParameterSet const &ps)
Instantiates the FragmentGenerator plugin with the given name, using the given ParameterSet.