#include <TPWindow.hpp>
Definition at line 20 of file TPWindow.hpp.
◆ add()
Definition at line 20 of file TPWindow.cpp.
21{
22
23
26 inputs.push_back(input_tp);
27}
std::unordered_map< channel_t, uint16_t > channel_states
std::vector< TriggerPrimitive > inputs
◆ clear()
void triggeralgs::TPWindow::clear |
( |
| ) |
|
◆ is_empty()
bool triggeralgs::TPWindow::is_empty |
( |
| ) |
const |
◆ move()
Definition at line 45 of file TPWindow.cpp.
46{
47
48
49
50
51
52 uint32_t n_tps_to_erase = 0;
54 if (!(input_tp.time_start - tp.time_start < window_length)) {
55 n_tps_to_erase++;
58
59
60
63 } else
64 break;
65 }
66
68
69
73 } else {
75 }
76}
void reset(TriggerPrimitive const &input_tp)
void add(TriggerPrimitive const &input_tp)
◆ n_channels_hit()
uint16_t triggeralgs::TPWindow::n_channels_hit |
( |
| ) |
|
◆ reset()
Definition at line 79 of file TPWindow.cpp.
80{
81
82
85
87
89
91
92 inputs.push_back(input_tp);
93
94}
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const TPWindow & | window ) |
|
friend |
Definition at line 96 of file TPWindow.cpp.
98{
99 if (window.is_empty()) {
100 os << "Window is empty!\n";
101 } else {
102 os << "Window start: " << window.time_start << ", end: " << window.inputs.back().time_start;
103 os << ". Total of: " << window.adc_integral << " ADC counts with " << window.inputs.size() << " TPs.\n";
104 os << window.channel_states.size() << " independent channels have hits.\n";
105 }
106 return os;
107}
◆ adc_integral
uint32_t triggeralgs::TPWindow::adc_integral = 0 |
◆ channel_states
std::unordered_map<channel_t, uint16_t> triggeralgs::TPWindow::channel_states |
◆ inputs
◆ time_start
The documentation for this class was generated from the following files:
- /github/workspace/dunedaq/sourcecode/triggeralgs/include/triggeralgs/TPWindow.hpp
- /github/workspace/dunedaq/sourcecode/triggeralgs/src/TPWindow.cpp