#include <TAMakerADCSimpleWindowAlgorithm.hpp>
◆ add()
| void triggeralgs::TAMakerADCSimpleWindowAlgorithm::Window::add |
( |
TriggerPrimitive const & | input_tp | ) |
|
◆ clear()
| void triggeralgs::TAMakerADCSimpleWindowAlgorithm::Window::clear |
( |
| ) |
|
|
inline |
◆ is_empty()
| bool triggeralgs::TAMakerADCSimpleWindowAlgorithm::Window::is_empty |
( |
| ) |
const |
|
inline |
◆ move()
| void triggeralgs::TAMakerADCSimpleWindowAlgorithm::Window::move |
( |
TriggerPrimitive const & | input_tp, |
|
|
timestamp_t const & | window_length ) |
Definition at line 36 of file TAMakerADCSimpleWindowAlgorithm.cpp.
36 {
37
38
39
40
41 uint32_t n_tps_to_erase = 0;
43 if(input_tp.time_start-tp.time_start >= window_length){
44 n_tps_to_erase++;
46 } else {
47 break;
48 }
49 }
50
52
53
54
58 } else {
60 }
61}
void reset(TriggerPrimitive const &input_tp)
void add(TriggerPrimitive const &input_tp)
◆ reset()
| void triggeralgs::TAMakerADCSimpleWindowAlgorithm::Window::reset |
( |
TriggerPrimitive const & | input_tp | ) |
|
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Window & | window ) |
|
friend |
Definition at line 79 of file TAMakerADCSimpleWindowAlgorithm.cpp.
81{
82 if (window.is_empty()) {
83 os << "Window is empty!\n";
84 } else {
85 os << "Window start: " << window.time_start
86 << ", end: " << window.tp_list.back().time_start
87 << ". Total of: " << window.adc_integral
88 << " ADC counts with " << window.tp_list.size()
89 << " TPs.\n";
90 }
91 return os;
92}
◆ adc_integral
| uint32_t triggeralgs::TAMakerADCSimpleWindowAlgorithm::Window::adc_integral |
◆ time_start
| timestamp_t triggeralgs::TAMakerADCSimpleWindowAlgorithm::Window::time_start |
◆ tp_list
| std::deque<TriggerPrimitive> triggeralgs::TAMakerADCSimpleWindowAlgorithm::Window::tp_list |
The documentation for this class was generated from the following files: