artdaq  v3_12_02
makeCommandableFragmentGenerator.cc
1 #include "artdaq/Generators/makeCommandableFragmentGenerator.hh"
2 
3 #include "cetlib/BasicPluginFactory.h"
4 
5 std::unique_ptr<artdaq::CommandableFragmentGenerator>
6 artdaq::makeCommandableFragmentGenerator(std::string const& generator_plugin_spec,
7  fhicl::ParameterSet const& ps)
8 {
9  static cet::BasicPluginFactory bpf("generator", "make");
10 
11  return bpf.makePlugin<std::unique_ptr<artdaq::CommandableFragmentGenerator>,
12  fhicl::ParameterSet const&>(generator_plugin_spec, ps);
13 }
std::unique_ptr< CommandableFragmentGenerator > makeCommandableFragmentGenerator(std::string const &generator_plugin_spec, fhicl::ParameterSet const &ps)
Load a CommandableFragmentGenerator plugin.