DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
triggeralgs
include
triggeralgs
ChannelDistance
TCMakerChannelDistanceAlgorithm.hpp
Go to the documentation of this file.
1
9
#ifndef TRIGGERALGS_CHANNELDISTANCE_TRIGGERCANDIDATEMAKERCHANNELDISTANCE_HPP_
10
#define TRIGGERALGS_CHANNELDISTANCE_TRIGGERCANDIDATEMAKERCHANNELDISTANCE_HPP_
11
12
#include "
triggeralgs/TriggerCandidateFactory.hpp
"
13
#include <algorithm>
14
15
namespace
triggeralgs
{
16
17
class
TCMakerChannelDistanceAlgorithm
:
public
TriggerCandidateMaker
{
18
public
:
19
void
process
(
const
TriggerActivity
& input_ta, std::vector<TriggerCandidate>& output_tcs);
20
void
configure
(
const
nlohmann::json& config);
21
void
set_tc_attributes
();
22
23
private
:
24
void
set_new_tc
(
const
TriggerActivity
& input_ta);
25
TriggerCandidate
m_current_tc
;
26
uint16_t
m_current_tp_count
;
27
uint16_t
m_max_tp_count
= 1000;
// Produce a TC when this count is exceeded. AEO: Arbitrary choice of 1000.
28
};
29
30
}
// namespace triggeralgs
31
32
#endif
// TRIGGERALGS_CHANNELDISTANCE_TRIGGERCANDIDATEMAKERCHANNELDISTANCE_HPP_
TriggerCandidateFactory.hpp
triggeralgs::TCMakerChannelDistanceAlgorithm
Definition
TCMakerChannelDistanceAlgorithm.hpp:17
triggeralgs::TCMakerChannelDistanceAlgorithm::set_tc_attributes
void set_tc_attributes()
Definition
TCMakerChannelDistanceAlgorithm.cpp:36
triggeralgs::TCMakerChannelDistanceAlgorithm::m_max_tp_count
uint16_t m_max_tp_count
Definition
TCMakerChannelDistanceAlgorithm.hpp:27
triggeralgs::TCMakerChannelDistanceAlgorithm::set_new_tc
void set_new_tc(const TriggerActivity &input_ta)
Definition
TCMakerChannelDistanceAlgorithm.cpp:17
triggeralgs::TCMakerChannelDistanceAlgorithm::m_current_tp_count
uint16_t m_current_tp_count
Definition
TCMakerChannelDistanceAlgorithm.hpp:26
triggeralgs::TCMakerChannelDistanceAlgorithm::process
void process(const TriggerActivity &input_ta, std::vector< TriggerCandidate > &output_tcs)
TA processing function that creates & fills TCs.
Definition
TCMakerChannelDistanceAlgorithm.cpp:52
triggeralgs::TCMakerChannelDistanceAlgorithm::configure
void configure(const nlohmann::json &config)
Definition
TCMakerChannelDistanceAlgorithm.cpp:26
triggeralgs::TCMakerChannelDistanceAlgorithm::m_current_tc
TriggerCandidate m_current_tc
Definition
TCMakerChannelDistanceAlgorithm.hpp:25
triggeralgs::TriggerCandidateMaker
Definition
TriggerCandidateMaker.hpp:29
triggeralgs
Definition
AbstractFactory.hpp:18
triggeralgs::TriggerActivity
Definition
TriggerActivity.hpp:20
triggeralgs::TriggerCandidate
Definition
TriggerCandidate.hpp:20
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0