otsdaq  v2_05_02_indev
MakeDataProcessor.cc
1 #include "otsdaq/PluginMakers/MakeDataProcessor.h"
2 #include "otsdaq/DataManager/DataProcessor.h"
3 #include "otsdaq/MessageFacility/MessageFacility.h"
4 
5 #include <cetlib/BasicPluginFactory.h>
6 
7 ots::DataProcessor* ots::makeDataProcessor(std::string const& processorPluginName,
8  std::string const& supervisorApplicationUID,
9  std::string const& bufferUID,
10  std::string const& processorUID,
11  ots::ConfigurationTree const& configurationTree,
12  std::string const& pathToInterfaceConfiguration)
13 {
14  static cet::BasicPluginFactory basicPluginInterfaceFactory("processor", "make");
15 
16  return basicPluginInterfaceFactory
17  .makePlugin<ots::DataProcessor*, std::string const&, std::string const&, std::string const&, ots::ConfigurationTree const&, std::string const&>(
18  processorPluginName, supervisorApplicationUID, bufferUID, processorUID, configurationTree, pathToInterfaceConfiguration);
19 }