DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
AlgorithmPlugins.hpp File Reference
#include "triggeralgs/TriggerDecisionMaker.hpp"
#include "triggeralgs/TriggerActivityFactory.hpp"
#include "triggeralgs/TriggerCandidateFactory.hpp"
#include "trigger/Issues.hpp"
#include "cetlib/BasicPluginFactory.h"
#include <memory>
#include <string>
Include dependency graph for AlgorithmPlugins.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dunedaq
 Including Qt Headers.
 
namespace  dunedaq::trigger
 

Macros

#define DEFINE_DUNE_TD_MAKER(klass)
 Declare the function that will be called by the plugin loader.
 

Functions

std::unique_ptr< triggeralgs::TriggerActivityMakerdunedaq::trigger::make_ta_maker (std::string const &plugin_name)
 Load a TriggerActivityMaker plugin and return a unique_ptr to the contained class.
 
std::unique_ptr< triggeralgs::TriggerCandidateMakerdunedaq::trigger::make_tc_maker (std::string const &plugin_name)
 Load a TriggerCandidateMaker plugin and return a unique_ptr to the contained class.
 
std::unique_ptr< triggeralgs::TriggerDecisionMakerdunedaq::trigger::make_td_maker (std::string const &plugin_name)
 Load a TriggerDecisionMaker plugin and return a unique_ptr to the contained class.
 

Detailed Description

This file contains the macro definitions for creating Trigger plugins

This is part of the DUNE DAQ Application Framework, copyright 2020. Licensing/copyright details are in the COPYING file that you should have received with this code.

Definition in file AlgorithmPlugins.hpp.

Macro Definition Documentation

◆ DEFINE_DUNE_TD_MAKER

#define DEFINE_DUNE_TD_MAKER ( klass)
Value:
extern "C" \
{ \
std::unique_ptr<triggeralgs::TriggerDecisionMaker> make() \
{ \
return std::unique_ptr<triggeralgs::TriggerDecisionMaker>(new klass()); \
} \
}

Declare the function that will be called by the plugin loader.

Parameters
klassClass to be defined as a DUNE TDMaker module

Definition at line 69 of file AlgorithmPlugins.hpp.

69#define DEFINE_DUNE_TD_MAKER(klass) \
70 extern "C" \
71 { \
72 std::unique_ptr<triggeralgs::TriggerDecisionMaker> make() \
73 { \
74 return std::unique_ptr<triggeralgs::TriggerDecisionMaker>(new klass()); \
75 } \
76 }