DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TCMakerHorizontalMuonAlgorithm.hpp
Go to the documentation of this file.
1
9#ifndef TRIGGERALGS_HORIZONTALMUON_TRIGGERCANDIDATEMAKERHORIZONTALMUON_HPP_
10#define TRIGGERALGS_HORIZONTALMUON_TRIGGERCANDIDATEMAKERHORIZONTALMUON_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 bool check_adjacency() const;
31
33 uint64_t m_activity_count = 0; // NOLINT(build/unsigned)
34
35 // Configurable parameters.
36 bool m_trigger_on_adc = false;
38 uint32_t m_adc_threshold = 1200000;
39 uint16_t m_n_channels_threshold = 600; // 80ish for frames, O(200 - 600) for tpslink
41 int tc_number = 0;
42
43 // For debugging purposes.
44 void add_window_to_record(TAWindow window);
45 void dump_window_record();
46 std::vector<TAWindow> m_window_record;
47};
48} // namespace triggeralgs
49#endif // TRIGGERALGS_HORIZONTALMUON_TRIGGERCANDIDATEMAKERHORIZONTALMUON_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