otsdaq  v2_05_02_indev
MakeSlowControls.cc
1 #include "otsdaq/PluginMakers/MakeSlowControls.h"
2 #include <cetlib/BasicPluginFactory.h>
3 
4 #include "otsdaq/SlowControlsCore/SlowControlsVInterface.h"
5 
6 ots::SlowControlsVInterface* ots::makeSlowControls(const std::string& slowControlsPluginName,
7  const std::string& slowControlsUID, // Key value for (eventual) SlowControlsDashboard
8  // Table in Configuration
9  const ots::ConfigurationTree& configurationTree, // Pass the big tree
10  const std::string& pathToControlsConfiguration) // Path to SlowControlsDashboard Table
11 {
12  static cet::BasicPluginFactory basicPluginInterfaceFactory("slowcontrols", "make");
13 
14  return basicPluginInterfaceFactory
15  .makePlugin<ots::SlowControlsVInterface*, const std::string&, const std::string&, const ots::ConfigurationTree&, const std::string&>(
16  slowControlsPluginName, slowControlsPluginName, slowControlsUID, configurationTree, pathToControlsConfiguration);
17 }