otsdaq  v1_01_03
 All Classes Namespaces Functions
MakeControls.cc
1 #include "otsdaq-core/PluginMakers/MakeControls.h"
2 #include "otsdaq-core/ControlsCore/ControlsVInterface.h"
3 
4 #include <cetlib/BasicPluginFactory.h>
5 
6 ots::ControlsVInterface* ots::makeControls(
7  const std::string& controlsPluginName,
8  const std::string& controlsUID, //Key value for (eventual) ControlsDashboard Table in Configuration
9  const ots::ConfigurationTree& configuration, //Pass the big tree
10  const std::string& pathToControlsConfiguration) //Path to ControlsDashboard Table
11 {
12  static cet::BasicPluginFactory basicPluginInterfaceFactory("controls", "make");
13 
14  return basicPluginInterfaceFactory.makePlugin<
16  const std::string&,
18  const std::string&
19  >
20  (
21  controlsPluginName,
22  controlsUID,
23  configuration,
24  pathToControlsConfiguration
25  );
26 }
27 
28