8#ifndef TRIGGERALGS_TAWINDOW_HPP_
9#define TRIGGERALGS_TAWINDOW_HPP_
15#include <unordered_map>
void clear()
Clear all inputs.
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...
std::vector< TriggerActivity > inputs
std::unordered_map< channel_t, uint16_t > channel_states
void reset(TriggerActivity const &input_ta)
Reset window content on the input.
uint16_t n_channels_hit()
friend std::ostream & operator<<(std::ostream &os, const TAWindow &window)
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...
dunedaq::trgdataformats::timestamp_t timestamp_t