artdaq_core  v3_05_07
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 class FragmentGenerator;
13 
20 std::unique_ptr<FragmentGenerator>
21 makeFragmentGenerator(std::string const& generator_plugin_spec,
22  fhicl::ParameterSet const& ps);
23 } // namespace artdaq
24 #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.