DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
triggeralgs
include
triggeralgs
HorizontalMuon
TCMakerHorizontalMuonAlgorithm.hpp
Go to the documentation of this file.
1
8
9
#ifndef TRIGGERALGS_HORIZONTALMUON_TRIGGERCANDIDATEMAKERHORIZONTALMUON_HPP_
10
#define TRIGGERALGS_HORIZONTALMUON_TRIGGERCANDIDATEMAKERHORIZONTALMUON_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
TCMakerHorizontalMuonAlgorithm
:
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
bool
check_adjacency
()
const
;
31
32
TAWindow
m_current_window
;
33
uint64_t
m_activity_count
= 0;
// NOLINT(build/unsigned)
34
35
// Configurable parameters.
36
bool
m_trigger_on_adc
=
false
;
37
bool
m_trigger_on_n_channels
=
false
;
38
uint32_t
m_adc_threshold
= 1200000;
39
uint16_t
m_n_channels_threshold
= 600;
// 80ish for frames, O(200 - 600) for tpslink
40
timestamp_t
m_window_length
= 80000;
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_
TAWindow.hpp
TriggerCandidateFactory.hpp
triggeralgs::TAWindow
Definition
TAWindow.hpp:20
triggeralgs::TCMakerHorizontalMuonAlgorithm
Definition
TCMakerHorizontalMuonAlgorithm.hpp:20
triggeralgs::TCMakerHorizontalMuonAlgorithm::m_current_window
TAWindow m_current_window
Definition
TCMakerHorizontalMuonAlgorithm.hpp:32
triggeralgs::TCMakerHorizontalMuonAlgorithm::tc_number
int tc_number
Definition
TCMakerHorizontalMuonAlgorithm.hpp:41
triggeralgs::TCMakerHorizontalMuonAlgorithm::dump_window_record
void dump_window_record()
Definition
TCMakerHorizontalMuonAlgorithm.cpp:173
triggeralgs::TCMakerHorizontalMuonAlgorithm::m_trigger_on_adc
bool m_trigger_on_adc
Definition
TCMakerHorizontalMuonAlgorithm.hpp:36
triggeralgs::TCMakerHorizontalMuonAlgorithm::m_trigger_on_n_channels
bool m_trigger_on_n_channels
Definition
TCMakerHorizontalMuonAlgorithm.hpp:37
triggeralgs::TCMakerHorizontalMuonAlgorithm::m_window_record
std::vector< TAWindow > m_window_record
Definition
TCMakerHorizontalMuonAlgorithm.hpp:46
triggeralgs::TCMakerHorizontalMuonAlgorithm::construct_tc
TriggerCandidate construct_tc() const
Definition
TCMakerHorizontalMuonAlgorithm.cpp:132
triggeralgs::TCMakerHorizontalMuonAlgorithm::m_n_channels_threshold
uint16_t m_n_channels_threshold
Definition
TCMakerHorizontalMuonAlgorithm.hpp:39
triggeralgs::TCMakerHorizontalMuonAlgorithm::m_adc_threshold
uint32_t m_adc_threshold
Definition
TCMakerHorizontalMuonAlgorithm.hpp:38
triggeralgs::TCMakerHorizontalMuonAlgorithm::add_window_to_record
void add_window_to_record(TAWindow window)
Definition
TCMakerHorizontalMuonAlgorithm.cpp:166
triggeralgs::TCMakerHorizontalMuonAlgorithm::m_activity_count
uint64_t m_activity_count
Definition
TCMakerHorizontalMuonAlgorithm.hpp:33
triggeralgs::TCMakerHorizontalMuonAlgorithm::check_adjacency
bool check_adjacency() const
Definition
TCMakerHorizontalMuonAlgorithm.cpp:158
triggeralgs::TCMakerHorizontalMuonAlgorithm::m_window_length
timestamp_t m_window_length
Definition
TCMakerHorizontalMuonAlgorithm.hpp:40
triggeralgs::TCMakerHorizontalMuonAlgorithm::configure
void configure(const nlohmann::json &config)
Definition
TCMakerHorizontalMuonAlgorithm.cpp:103
triggeralgs::TCMakerHorizontalMuonAlgorithm::process
void process(const TriggerActivity &, std::vector< TriggerCandidate > &)
TA processing function that creates & fills TCs.
Definition
TCMakerHorizontalMuonAlgorithm.cpp:24
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