DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
triggeralgs
include
triggeralgs
ChannelAdjacency
TCMakerChannelAdjacencyAlgorithm.hpp
Go to the documentation of this file.
1
8
9
#ifndef TRIGGERALGS_CHANNELADJACENCY_TRIGGERCANDIDATEMAKERCHANNELADJACENCY_HPP_
10
#define TRIGGERALGS_CHANNELADJACENCY_TRIGGERCANDIDATEMAKERCHANNELADJACENCY_HPP_
11
12
#include "
triggeralgs/TriggerCandidateFactory.hpp
"
13
#include "
triggeralgs/TAWindow.hpp
"
14
15
#include <fstream>
16
#include <vector>
17
18
namespace
triggeralgs
{
19
class
TCMakerChannelAdjacencyAlgorithm
:
public
TriggerCandidateMaker
20
{
21
22
public
:
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
27
private
:
28
29
TriggerCandidate
construct_tc
()
const
;
30
31
TAWindow
m_current_window
;
32
uint64_t
m_activity_count
= 0;
// NOLINT(build/unsigned)
33
34
// Configurable parameters.
35
bool
m_trigger_on_adc
=
false
;
36
bool
m_trigger_on_n_channels
=
false
;
37
uint32_t
m_adc_threshold
= 1200000;
38
uint16_t
m_n_channels_threshold
= 600;
// 80ish for frames, O(200 - 600) for tpslink
39
timestamp_t
m_window_length
= 80000;
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_
TAWindow.hpp
TriggerCandidateFactory.hpp
triggeralgs::TAWindow
Definition
TAWindow.hpp:20
triggeralgs::TCMakerChannelAdjacencyAlgorithm
Definition
TCMakerChannelAdjacencyAlgorithm.hpp:20
triggeralgs::TCMakerChannelAdjacencyAlgorithm::m_trigger_on_adc
bool m_trigger_on_adc
Definition
TCMakerChannelAdjacencyAlgorithm.hpp:35
triggeralgs::TCMakerChannelAdjacencyAlgorithm::m_window_record
std::vector< TAWindow > m_window_record
Definition
TCMakerChannelAdjacencyAlgorithm.hpp:43
triggeralgs::TCMakerChannelAdjacencyAlgorithm::m_activity_count
uint64_t m_activity_count
Definition
TCMakerChannelAdjacencyAlgorithm.hpp:32
triggeralgs::TCMakerChannelAdjacencyAlgorithm::m_current_window
TAWindow m_current_window
Definition
TCMakerChannelAdjacencyAlgorithm.hpp:31
triggeralgs::TCMakerChannelAdjacencyAlgorithm::add_window_to_record
void add_window_to_record(TAWindow window)
Definition
TCMakerChannelAdjacencyAlgorithm.cpp:137
triggeralgs::TCMakerChannelAdjacencyAlgorithm::m_n_channels_threshold
uint16_t m_n_channels_threshold
Definition
TCMakerChannelAdjacencyAlgorithm.hpp:38
triggeralgs::TCMakerChannelAdjacencyAlgorithm::m_window_length
timestamp_t m_window_length
Definition
TCMakerChannelAdjacencyAlgorithm.hpp:39
triggeralgs::TCMakerChannelAdjacencyAlgorithm::construct_tc
TriggerCandidate construct_tc() const
Definition
TCMakerChannelAdjacencyAlgorithm.cpp:110
triggeralgs::TCMakerChannelAdjacencyAlgorithm::process
void process(const TriggerActivity &, std::vector< TriggerCandidate > &)
TA processing function that creates & fills TCs.
Definition
TCMakerChannelAdjacencyAlgorithm.cpp:26
triggeralgs::TCMakerChannelAdjacencyAlgorithm::configure
void configure(const nlohmann::json &config)
Definition
TCMakerChannelAdjacencyAlgorithm.cpp:83
triggeralgs::TCMakerChannelAdjacencyAlgorithm::m_trigger_on_n_channels
bool m_trigger_on_n_channels
Definition
TCMakerChannelAdjacencyAlgorithm.hpp:36
triggeralgs::TCMakerChannelAdjacencyAlgorithm::m_adc_threshold
uint32_t m_adc_threshold
Definition
TCMakerChannelAdjacencyAlgorithm.hpp:37
triggeralgs::TriggerCandidateMaker
Definition
TriggerCandidateMaker.hpp:29
triggeralgs
Definition
AbstractFactory.hpp:18
triggeralgs::timestamp_t
dunedaq::trgdataformats::timestamp_t timestamp_t
Definition
Types.hpp:16
triggeralgs::TriggerActivity
Definition
TriggerActivity.hpp:20
triggeralgs::TriggerCandidate
Definition
TriggerCandidate.hpp:20
Generated on
for DUNE-DAQ by
1.17.0