artdaq_core  v1_07_08
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
makeFragmentGenerator.hh
1 #ifndef artdaq_core_Generators_makeFragmentGenerator_hh
2 #define artdaq_core_Generators_makeFragmentGenerator_hh
3 // Using LibraryManager, find the correct library and return an instance
4 // of the specified generator.
5 
6 #include "fhiclcpp/fwd.h"
7 
8 #include <memory>
9 #include <string>
10 
11 namespace artdaq
12 {
13  class FragmentGenerator;
14 
21  std::unique_ptr<FragmentGenerator>
22  makeFragmentGenerator(std::string const& generator_plugin_spec,
23  fhicl::ParameterSet const& ps);
24 }
25 #endif /* artdaq_core_Generators_makeFragmentGenerator_hh */
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.