DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TriggerCandidateFactory.hpp
Go to the documentation of this file.
1/* @file: TriggerCandidateFactory.hpp
2 *
3 * This is part of the DUNE DAQ Application Framework, copyright 2023.
4 * Licensing/copyright details are in the COPYING file that you should have
5 * received with this code.
6 */
7
8#ifndef TRIGGERALGS_TRIGGER_CANDIDATE_FACTORY_HPP_
9#define TRIGGERALGS_TRIGGER_CANDIDATE_FACTORY_HPP_
10
13
14#define REGISTER_TRIGGER_CANDIDATE_MAKER(tcm_name, tcm_class) \
15 static struct tcm_class##Registrar { \
16 tcm_class##Registrar() { \
17 TriggerCandidateFactory::register_creator(tcm_name, []() -> std::unique_ptr<TriggerCandidateMaker> {return std::make_unique<tcm_class>();}); \
18 } \
19 } tcm_class##_registrar;
20
21namespace triggeralgs {
22
23class TriggerCandidateFactory : public AbstractFactory<TriggerCandidateMaker> {};
24
25} /* namespace triggeralgs */
26
27#endif // TRIGGERALGS_TRIGGER_CANDIDATE_FACTORY_HPP_