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