DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
triggeralgs
include
triggeralgs
ChannelDistance
TAMakerChannelDistanceAlgorithm.hpp
Go to the documentation of this file.
1
9
#ifndef TRIGGERALGS_CHANNELDISTANCE_TRIGGERACTIVITYMAKERCHANNELDISTANCE_HPP_
10
#define TRIGGERALGS_CHANNELDISTANCE_TRIGGERACTIVITYMAKERCHANNELDISTANCE_HPP_
11
12
#include "
triggeralgs/TriggerActivityFactory.hpp
"
13
#include <algorithm>
14
15
namespace
triggeralgs
{
16
17
class
TAMakerChannelDistanceAlgorithm
:
public
TriggerActivityMaker
{
18
public
:
19
void
process
(
const
TriggerPrimitive
& input_tp, std::vector<TriggerActivity>& output_tas);
20
void
configure
(
const
nlohmann::json& config);
21
void
set_ta_attributes
();
22
23
private
:
24
void
set_new_ta
(
const
TriggerPrimitive
& input_tp);
25
TriggerActivity
m_current_ta
;
26
uint32_t
m_max_channel_distance
= 50;
27
uint64_t
m_window_length
= 8000;
28
uint16_t
m_min_tps
= 20;
// AEO: Type is arbitrary. Surprised even asking for 2^8 TPs.
29
uint32_t
m_current_lower_bound
;
30
uint32_t
m_current_upper_bound
;
31
};
32
33
}
// namespace triggeralgs
34
35
#endif
// TRIGGERALGS_CHANNELDISTANCE_TRIGGERACTIVITYMAKERCHANNELDISTANCE_HPP_
TriggerActivityFactory.hpp
triggeralgs::TAMakerChannelDistanceAlgorithm
Definition
TAMakerChannelDistanceAlgorithm.hpp:17
triggeralgs::TAMakerChannelDistanceAlgorithm::process
void process(const TriggerPrimitive &input_tp, std::vector< TriggerActivity > &output_tas)
TP processing function that creates & fills TAs.
Definition
TAMakerChannelDistanceAlgorithm.cpp:27
triggeralgs::TAMakerChannelDistanceAlgorithm::m_current_upper_bound
uint32_t m_current_upper_bound
Definition
TAMakerChannelDistanceAlgorithm.hpp:30
triggeralgs::TAMakerChannelDistanceAlgorithm::m_current_ta
TriggerActivity m_current_ta
Definition
TAMakerChannelDistanceAlgorithm.hpp:25
triggeralgs::TAMakerChannelDistanceAlgorithm::set_ta_attributes
void set_ta_attributes()
Definition
TAMakerChannelDistanceAlgorithm.cpp:73
triggeralgs::TAMakerChannelDistanceAlgorithm::m_current_lower_bound
uint32_t m_current_lower_bound
Definition
TAMakerChannelDistanceAlgorithm.hpp:29
triggeralgs::TAMakerChannelDistanceAlgorithm::m_window_length
uint64_t m_window_length
Definition
TAMakerChannelDistanceAlgorithm.hpp:27
triggeralgs::TAMakerChannelDistanceAlgorithm::configure
void configure(const nlohmann::json &config)
Definition
TAMakerChannelDistanceAlgorithm.cpp:58
triggeralgs::TAMakerChannelDistanceAlgorithm::m_max_channel_distance
uint32_t m_max_channel_distance
Definition
TAMakerChannelDistanceAlgorithm.hpp:26
triggeralgs::TAMakerChannelDistanceAlgorithm::m_min_tps
uint16_t m_min_tps
Definition
TAMakerChannelDistanceAlgorithm.hpp:28
triggeralgs::TAMakerChannelDistanceAlgorithm::set_new_ta
void set_new_ta(const TriggerPrimitive &input_tp)
Definition
TAMakerChannelDistanceAlgorithm.cpp:17
triggeralgs::TriggerActivityMaker
Definition
TriggerActivityMaker.hpp:29
triggeralgs
Definition
AbstractFactory.hpp:18
dunedaq::trgdataformats::TriggerPrimitive
A single energy deposition on a TPC or PDS channel.
Definition
TriggerPrimitive.hpp:27
triggeralgs::TriggerActivity
Definition
TriggerActivity.hpp:20
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0