otsdaq  v2_04_01
MakeSlowControls.cc
1 #include "otsdaq-core/PluginMakers/MakeSlowControls.h"
2 #include <cetlib/BasicPluginFactory.h>
3 
4 #include "otsdaq-core/SlowControlsCore/SlowControlsVInterface.h"
5 
6 ots::SlowControlsVInterface* ots::makeSlowControls(
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("controls", "make");
15 
16  return basicPluginInterfaceFactory.makePlugin<ots::SlowControlsVInterface*,
17  const std::string&,
19  const std::string&>(
20  slowControlsPluginName,
21  slowControlsUID,
22  configurationTree,
23  pathToControlsConfiguration);
24 }