artdaq_utilities  v1_04_10
makeMetricPlugin.hh
1 #ifndef artdaq_Plugins_makeMetricPlugin_hh
2 #define artdaq_Plugins_makeMetricPlugin_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 
14 namespace artdaq
15 {
16  class MetricPlugin;
17 
25  std::unique_ptr<MetricPlugin>
26  makeMetricPlugin(std::string const& generator_plugin_spec,
27  fhicl::ParameterSet const& ps, std::string const& app_name);
28 }
29 #endif /* artdaq_Plugins_makeMetricPlugin_hh */
std::unique_ptr< MetricPlugin > makeMetricPlugin(std::string const &generator_plugin_spec, fhicl::ParameterSet const &ps, std::string const &app_name)
Load a given MetricPlugin and return a pointer to it.