DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TAMakerChannelAdjacencyAlgorithm.hpp
Go to the documentation of this file.
1
9#ifndef TRIGGERALGS_CHANNELADJACENCY_TRIGGERACTIVITYMAKERCHANNELADJACENCY_HPP_
10#define TRIGGERALGS_CHANNELADJACENCY_TRIGGERACTIVITYMAKERCHANNELADJACENCY_HPP_
11
14#include <fstream>
15#include <vector>
16
17namespace triggeralgs {
19{
20public:
21 void process(const TriggerPrimitive& input_tp, std::vector<TriggerActivity>& output_ta);
22 void configure(const nlohmann::json& config);
23
24private:
26
28
30
31 // Configurable parameters.
32 bool m_print_tp_info = false; // Prints out some information on every TP received
33 uint16_t m_adjacency_threshold = 15; // Default is 15 wire track for testing
34 uint16_t m_adj_tolerance = 3; // Adjacency tolerance - default is 3 from coldbox testing.
35 timestamp_t m_window_length = 8000; // Shouldn't exceed the max drift which is ~9375 62.5 MHz ticks for VDCB
36
37 // For debugging and performance study purposes.
38 void add_window_to_record(TPWindow window);
39 std::vector<TPWindow> m_window_record;
40};
41} // namespace triggeralgs
42#endif // TRIGGERALGS_CHANNELADJACENCY_TRIGGERACTIVITYMAKERCHANNELADJACENCY_HPP_
void process(const TriggerPrimitive &input_tp, std::vector< TriggerActivity > &output_ta)
TP processing function that creates & fills TAs.
dunedaq::trgdataformats::timestamp_t timestamp_t
Definition Types.hpp:16
A single energy deposition on a TPC or PDS channel.