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