artdaq  v2_03_02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
makeCommandableFragmentGenerator.cc
1 #include "artdaq/Application/makeCommandableFragmentGenerator.hh"
2 
3 #include "artdaq/Application/GeneratorMacros.hh"
4 #include "fhiclcpp/ParameterSet.h"
5 #include "cetlib/BasicPluginFactory.h"
6 
7 std::unique_ptr<artdaq::CommandableFragmentGenerator>
8 artdaq::makeCommandableFragmentGenerator(std::string const& generator_plugin_spec,
9  fhicl::ParameterSet const& ps)
10 {
11  static cet::BasicPluginFactory bpf("generator", "make");
12 
13  return bpf.makePlugin<std::unique_ptr<artdaq::CommandableFragmentGenerator>,
14  fhicl::ParameterSet const &>(generator_plugin_spec, ps);
15 }
std::unique_ptr< CommandableFragmentGenerator > makeCommandableFragmentGenerator(std::string const &generator_plugin_spec, fhicl::ParameterSet const &ps)
Load a CommandableFragmentGenerator plugin.