#include <TAMakerSupernovaAlgorithm.hpp>
◆ flush()
◆ is_channel_consistent()
bool triggeralgs::TAMakerSupernovaAlgorithm::is_channel_consistent |
( |
const TriggerPrimitive & | input_tp | ) |
const |
|
inlineprivate |
Definition at line 38 of file TAMakerSupernovaAlgorithm.hpp.
39 {
40
43
45
46 return is_in_between_edge || is_close_to_edge;
47 }
channel_diff_t m_channel_end
channel_diff_t m_channel_start
channel_t m_channel_tolerance
Maximum tolerated time difference between two primitives to form an activity (in 50 MHz clock ticks)
dunedaq::trgdataformats::channel_diff_t channel_diff_t
◆ is_time_consistent()
bool triggeralgs::TAMakerSupernovaAlgorithm::is_time_consistent |
( |
const TriggerPrimitive & | input_tp | ) |
const |
|
inlineprivate |
This activity maker makes an activity with all the trigger primitives.
Definition at line 23 of file TAMakerSupernovaAlgorithm.hpp.
24 {
25 timestamp_t tend = input_tp.time_start + input_tp.samples_over_threshold * 32;
26
31
34
35 return is_in_between_edge || is_close_to_edge;
36 }
timestamp_diff_t m_time_tolerance
dunedaq::trgdataformats::timestamp_t timestamp_t
dunedaq::trgdataformats::timestamp_diff_t timestamp_diff_t
◆ MakeTriggerActivity()
TriggerActivity triggeralgs::TAMakerSupernovaAlgorithm::MakeTriggerActivity |
( |
| ) |
const |
|
inlineprivate |
Maximum tolerated channel number difference between two primitives to form an activity.
Definition at line 61 of file TAMakerSupernovaAlgorithm.hpp.
62 {
69
75
79 return ta;
80 }
std::vector< TriggerPrimitive > m_tp_list
timestamp_t m_time_activity
TriggerActivity::Algorithm m_algorithm
TriggerActivity::Type m_type
channel_diff_t m_channel_peak
◆ process()
TP processing function that creates & fills TAs.
- Parameters
-
input_tp[in] | Input TP for the triggering algorithm |
output_ta[out] | Output vector of TAs to fill by the algorithm |
Implements triggeralgs::TriggerActivityMaker.
Definition at line 21 of file TAMakerSupernovaAlgorithm.cpp.
22{
23
24
25
26
28
41 return;
42 }
43
46
47 if (!time_ok && !channel_ok) {
60 return;
61 }
62
65
68
73 }
74
77
80
84}
bool is_channel_consistent(const TriggerPrimitive &input_tp) const
bool is_time_consistent(const TriggerPrimitive &input_tp) const
This activity maker makes an activity with all the trigger primitives.
◆ m_adc_integral
uint64_t triggeralgs::TAMakerSupernovaAlgorithm::m_adc_integral = 0 |
|
private |
◆ m_adc_peak
uint16_t triggeralgs::TAMakerSupernovaAlgorithm::m_adc_peak = 0 |
|
private |
◆ m_algorithm
◆ m_channel_end
channel_diff_t triggeralgs::TAMakerSupernovaAlgorithm::m_channel_end = 0 |
|
private |
◆ m_channel_peak
channel_diff_t triggeralgs::TAMakerSupernovaAlgorithm::m_channel_peak = 0 |
|
private |
◆ m_channel_start
channel_diff_t triggeralgs::TAMakerSupernovaAlgorithm::m_channel_start = 0 |
|
private |
◆ m_channel_tolerance
channel_t triggeralgs::TAMakerSupernovaAlgorithm::m_channel_tolerance |
|
protected |
Initial value:
Maximum tolerated time difference between two primitives to form an activity (in 50 MHz clock ticks)
Definition at line 57 of file TAMakerSupernovaAlgorithm.hpp.
◆ m_detid
detid_t triggeralgs::TAMakerSupernovaAlgorithm::m_detid = 0 |
|
private |
◆ m_time_activity
timestamp_t triggeralgs::TAMakerSupernovaAlgorithm::m_time_activity = 0 |
|
private |
◆ m_time_end
timestamp_t triggeralgs::TAMakerSupernovaAlgorithm::m_time_end = 0 |
|
private |
◆ m_time_peak
timestamp_t triggeralgs::TAMakerSupernovaAlgorithm::m_time_peak = 0 |
|
private |
◆ m_time_start
timestamp_t triggeralgs::TAMakerSupernovaAlgorithm::m_time_start = 0 |
|
private |
◆ m_time_tolerance
◆ m_tp_list
◆ m_type
The documentation for this class was generated from the following files: