1 #include "artdaq-core/Plugins/makeFragmentGenerator.hh"
3 #include "artdaq-core/Plugins/FragmentGenerator.hh"
4 #include "cetlib/BasicPluginFactory.h"
6 std::unique_ptr<artdaq::FragmentGenerator>
8 fhicl::ParameterSet
const& ps)
10 static cet::BasicPluginFactory bpf(
"generator",
"make");
12 return bpf.makePlugin<std::unique_ptr<artdaq::FragmentGenerator>,
13 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.