artdaq_core  v3_09_01
makeFragmentGenerator.hh
1 #ifndef artdaq_core_Plugins_makeFragmentGenerator_hh
2 #define artdaq_core_Plugins_makeFragmentGenerator_hh
3 // Using LibraryManager, find the correct library and return an instance
4 // of the specified generator.
5 
6 namespace fhicl { class ParameterSet; }
7 
8 #include "artdaq-core/Plugins/FragmentGenerator.hh"
9 
10 #include <memory>
11 #include <string>
12 
13 namespace artdaq {
14 
21 std::unique_ptr<FragmentGenerator>
22 makeFragmentGenerator(std::string const& generator_plugin_spec,
23  fhicl::ParameterSet const& ps);
24 } // namespace artdaq
25 #endif /* artdaq_core_Plugins_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.