DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
triggeralgs
include
triggeralgs
ChannelAdjacency
TAMakerChannelAdjacencyAlgorithm.hpp
Go to the documentation of this file.
1
8
9
#ifndef TRIGGERALGS_CHANNELADJACENCY_TRIGGERACTIVITYMAKERCHANNELADJACENCY_HPP_
10
#define TRIGGERALGS_CHANNELADJACENCY_TRIGGERACTIVITYMAKERCHANNELADJACENCY_HPP_
11
12
#include "
triggeralgs/TPWindow.hpp
"
13
#include "
triggeralgs/TriggerActivityFactory.hpp
"
14
#include <fstream>
15
#include <vector>
16
17
namespace
triggeralgs
{
18
class
TAMakerChannelAdjacencyAlgorithm
:
public
TriggerActivityMaker
19
{
20
public
:
21
void
process
(
const
TriggerPrimitive
& input_tp, std::vector<TriggerActivity>& output_ta);
22
void
configure
(
const
nlohmann::json& config);
23
24
private
:
25
TriggerActivity
construct_ta
(
TPWindow
)
const
;
26
27
TPWindow
check_adjacency
();
28
29
TPWindow
m_current_window
;
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_
TPWindow.hpp
TriggerActivityFactory.hpp
triggeralgs::TAMakerChannelAdjacencyAlgorithm
Definition
TAMakerChannelAdjacencyAlgorithm.hpp:19
triggeralgs::TAMakerChannelAdjacencyAlgorithm::add_window_to_record
void add_window_to_record(TPWindow window)
Definition
TAMakerChannelAdjacencyAlgorithm.cpp:234
triggeralgs::TAMakerChannelAdjacencyAlgorithm::m_window_record
std::vector< TPWindow > m_window_record
Definition
TAMakerChannelAdjacencyAlgorithm.hpp:39
triggeralgs::TAMakerChannelAdjacencyAlgorithm::m_adj_tolerance
uint16_t m_adj_tolerance
Definition
TAMakerChannelAdjacencyAlgorithm.hpp:34
triggeralgs::TAMakerChannelAdjacencyAlgorithm::configure
void configure(const nlohmann::json &config)
Definition
TAMakerChannelAdjacencyAlgorithm.cpp:96
triggeralgs::TAMakerChannelAdjacencyAlgorithm::m_adjacency_threshold
uint16_t m_adjacency_threshold
Definition
TAMakerChannelAdjacencyAlgorithm.hpp:33
triggeralgs::TAMakerChannelAdjacencyAlgorithm::m_print_tp_info
bool m_print_tp_info
Definition
TAMakerChannelAdjacencyAlgorithm.hpp:32
triggeralgs::TAMakerChannelAdjacencyAlgorithm::m_window_length
timestamp_t m_window_length
Definition
TAMakerChannelAdjacencyAlgorithm.hpp:35
triggeralgs::TAMakerChannelAdjacencyAlgorithm::process
void process(const TriggerPrimitive &input_tp, std::vector< TriggerActivity > &output_ta)
TP processing function that creates & fills TAs.
Definition
TAMakerChannelAdjacencyAlgorithm.cpp:21
triggeralgs::TAMakerChannelAdjacencyAlgorithm::m_current_window
TPWindow m_current_window
Definition
TAMakerChannelAdjacencyAlgorithm.hpp:29
triggeralgs::TAMakerChannelAdjacencyAlgorithm::construct_ta
TriggerActivity construct_ta(TPWindow) const
Definition
TAMakerChannelAdjacencyAlgorithm.cpp:112
triggeralgs::TAMakerChannelAdjacencyAlgorithm::check_adjacency
TPWindow check_adjacency()
Definition
TAMakerChannelAdjacencyAlgorithm.cpp:150
triggeralgs::TPWindow
Definition
TPWindow.hpp:21
triggeralgs::TriggerActivityMaker
Definition
TriggerActivityMaker.hpp:29
triggeralgs
Definition
AbstractFactory.hpp:18
triggeralgs::timestamp_t
dunedaq::trgdataformats::timestamp_t timestamp_t
Definition
Types.hpp:16
triggeralgs::TriggerPrimitive
dunedaq::trgdataformats::TriggerPrimitive TriggerPrimitive
Definition
TriggerPrimitive.hpp:22
triggeralgs::TriggerActivity
Definition
TriggerActivity.hpp:20
Generated on
for DUNE-DAQ by
1.17.0