◆ add()
void triggeralgs::TAMakerMichelElectronAlgorithm::Window::add |
( |
TriggerPrimitive const & | input_tp | ) |
|
|
inline |
◆ clear()
void triggeralgs::TAMakerMichelElectronAlgorithm::Window::clear |
( |
| ) |
|
|
inline |
◆ is_empty()
bool triggeralgs::TAMakerMichelElectronAlgorithm::Window::is_empty |
( |
| ) |
const |
|
inline |
◆ move()
void triggeralgs::TAMakerMichelElectronAlgorithm::Window::move |
( |
TriggerPrimitive const & | input_tp, |
|
|
timestamp_t const & | window_length ) |
|
inline |
Definition at line 39 of file TAMakerMichelElectronAlgorithm.hpp.
40 {
41
42
43
44
45
46 uint32_t n_tps_to_erase = 0;
48 if (!(input_tp.time_start - tp.time_start < window_length)) {
49 n_tps_to_erase++;
52
53
54
57 } else
58 break;
59 }
60
62
63
64 if (!(
inputs.size() == 0)) {
67 } else {
68
70 }
71 };
void add(TriggerPrimitive const &input_tp)
void reset(TriggerPrimitive const &input_tp)
◆ n_channels_hit()
uint16_t triggeralgs::TAMakerMichelElectronAlgorithm::Window::n_channels_hit |
( |
| ) |
|
|
inline |
◆ reset()
void triggeralgs::TAMakerMichelElectronAlgorithm::Window::reset |
( |
TriggerPrimitive const & | input_tp | ) |
|
|
inline |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Window & | window ) |
|
friend |
Definition at line 88 of file TAMakerMichelElectronAlgorithm.hpp.
89 {
90 if (window.is_empty())
91 os << "Window is empty!\n";
92 else {
93 os << "Window start: " << window.time_start << ", end: " << window.inputs.back().time_start;
94 os << ". Total of: " << window.adc_integral << " ADC counts with " << window.inputs.size() << " TPs.\n";
95 os << window.channel_states.size() << " independent channels have hits.\n";
96 }
97 return os;
98 };
◆ adc_integral
uint32_t triggeralgs::TAMakerMichelElectronAlgorithm::Window::adc_integral |
◆ channel_states
std::unordered_map<channel_t, uint16_t> triggeralgs::TAMakerMichelElectronAlgorithm::Window::channel_states |
◆ inputs
std::vector<TriggerPrimitive> triggeralgs::TAMakerMichelElectronAlgorithm::Window::inputs |
◆ time_start
timestamp_t triggeralgs::TAMakerMichelElectronAlgorithm::Window::time_start |
The documentation for this class was generated from the following file: