|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <TAWindow.hpp>
Public Member Functions | |
| bool | is_empty () const |
| void | add (const TriggerActivity &input_ta) |
| Add the input TA's contribution to the total ADC, increase the hit count of all of the channels which feature and add it to the TA list keeping the TA list time ordered by time_start. Preserving time order makes moving easier. | |
| void | clear () |
| Clear all inputs. | |
| uint16_t | n_channels_hit () |
| void | move (TriggerActivity const &input_ta, timestamp_t const &window_length) |
| Find all of the TAs in the window that need to be removed if the input_ta is to be added and the size of the window is to be conserved. Subtract those TAs' contribution from the total window ADC and remove their contributions to the hit counts. | |
| void | reset (TriggerActivity const &input_ta) |
| Reset window content on the input. | |
Public Attributes | |
| timestamp_t | time_start = 0 |
| uint64_t | adc_integral = 0 |
| std::unordered_map< channel_t, uint16_t > | channel_states |
| std::vector< TriggerActivity > | inputs |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const TAWindow &window) |
Definition at line 19 of file TAWindow.hpp.
| void triggeralgs::TAWindow::add | ( | const TriggerActivity & | input_ta | ) |
Add the input TA's contribution to the total ADC, increase the hit count of all of the channels which feature and add it to the TA list keeping the TA list time ordered by time_start. Preserving time order makes moving easier.
| input_ta |
Definition at line 16 of file TAWindow.cpp.
| void triggeralgs::TAWindow::clear | ( | ) |
Clear all inputs.
Definition at line 35 of file TAWindow.cpp.
|
inline |
Definition at line 22 of file TAWindow.hpp.
| void triggeralgs::TAWindow::move | ( | TriggerActivity const & | input_ta, |
| timestamp_t const & | window_length ) |
Find all of the TAs in the window that need to be removed if the input_ta is to be added and the size of the window is to be conserved. Subtract those TAs' contribution from the total window ADC and remove their contributions to the hit counts.
| input_ta | |
| window_length |
Definition at line 45 of file TAWindow.cpp.
|
inline |
Definition at line 34 of file TAWindow.hpp.
| void triggeralgs::TAWindow::reset | ( | TriggerActivity const & | input_ta | ) |
Reset window content on the input.
| input_ta |
Definition at line 79 of file TAWindow.cpp.
|
friend |
Definition at line 97 of file TAWindow.cpp.
| uint64_t triggeralgs::TAWindow::adc_integral = 0 |
Definition at line 53 of file TAWindow.hpp.
| std::unordered_map<channel_t, uint16_t> triggeralgs::TAWindow::channel_states |
Definition at line 54 of file TAWindow.hpp.
| std::vector<TriggerActivity> triggeralgs::TAWindow::inputs |
Definition at line 55 of file TAWindow.hpp.
| timestamp_t triggeralgs::TAWindow::time_start = 0 |
Definition at line 52 of file TAWindow.hpp.