DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TriggerDataHandlingModel.hpp
Go to the documentation of this file.
1
9#ifndef TRIGGER_INCLUDE_TRIGGER_TRIGGERDATAHANDLINGMODEL_HPP_
10#define TRIGGER_INCLUDE_TRIGGER_TRIGGERDATAHANDLINGMODEL_HPP_
11
13#include <vector>
14
15namespace dunedaq::trigger {
16
17template<class ReadoutType,
18 class RequestHandlerType,
19 class LatencyBufferType,
20 class RawDataProcessorType,
21 class InputDataType = ReadoutType>
23 : public datahandlinglibs::
24 DataHandlingModel<ReadoutType, RequestHandlerType, LatencyBufferType, RawDataProcessorType, InputDataType>
25{
26public:
27 using Base = datahandlinglibs::
28 DataHandlingModel<ReadoutType, RequestHandlerType, LatencyBufferType, RawDataProcessorType, InputDataType>;
29 using RDT = typename Base::RDT;
30 using RHT = typename Base::RHT;
31 using LBT = typename Base::LBT;
32 using RPT = typename Base::RPT;
33 using IDT = typename Base::IDT;
34
35 explicit TriggerDataHandlingModel(std::atomic<bool>& run_marker);
36
37 // Transform input data type to readout
38 std::vector<ReadoutType> transform_payload(IDT& original) const override;
39};
40
41} // namespace dunedaq::trigger
42
43// Declarations
45
46#endif // TRIGGER_INCLUDE_TRIGGER_TRIGGERDATAHANDLINGMODEL_HPP_
TriggerDataHandlingModel(std::atomic< bool > &run_marker)
std::vector< ReadoutType > transform_payload(IDT &original) const override
datahandlinglibs:: DataHandlingModel< ReadoutType, RequestHandlerType, LatencyBufferType, RawDataProcessorType, InputDataType > Base
std::atomic< bool > run_marker
Global atomic for process lifetime.
ReadoutType
Which type of readout to use for TriggerDecision and DataRequest.
Definition Types.hpp:51