DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TCMakerChannelAdjacencyAlgorithm.hpp
Go to the documentation of this file.
1
9#ifndef TRIGGERALGS_CHANNELADJACENCY_TRIGGERCANDIDATEMAKERCHANNELADJACENCY_HPP_
10#define TRIGGERALGS_CHANNELADJACENCY_TRIGGERCANDIDATEMAKERCHANNELADJACENCY_HPP_
11
14
15#include <fstream>
16#include <vector>
17
18namespace triggeralgs {
20{
21
22public:
23 // The function that gets called when there is a new activity
24 void process(const TriggerActivity&, std::vector<TriggerCandidate>&);
25 void configure(const nlohmann::json& config);
26
27private:
28
30
32 uint64_t m_activity_count = 0; // NOLINT(build/unsigned)
33
34 // Configurable parameters.
35 bool m_trigger_on_adc = false;
37 uint32_t m_adc_threshold = 1200000;
38 uint16_t m_n_channels_threshold = 600; // 80ish for frames, O(200 - 600) for tpslink
40
41 // For debugging purposes.
42 void add_window_to_record(TAWindow window);
43 std::vector<TAWindow> m_window_record;
44};
45} // namespace triggeralgs
46#endif // TRIGGERALGS_CHANNELADJACENCY_TRIGGERCANDIDATEMAKERCHANNELADJACENCY_HPP_
void process(const TriggerActivity &, std::vector< TriggerCandidate > &)
TA processing function that creates & fills TCs.
dunedaq::trgdataformats::timestamp_t timestamp_t
Definition Types.hpp:16