artdaq_core  v3_09_06
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 {
7 class ParameterSet;
8 }
9 
10 #include "artdaq-core/Plugins/FragmentGenerator.hh"
11 
12 #include <memory>
13 #include <string>
14 
15 namespace artdaq {
16 
23 std::unique_ptr<FragmentGenerator>
24 makeFragmentGenerator(std::string const& generator_plugin_spec,
25  fhicl::ParameterSet const& ps);
26 } // namespace artdaq
27 #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.