8#include <unordered_set>
26 inputs.push_back(input_tp);
52 uint32_t n_tps_to_erase = 0;
54 if (!(input_tp.
time_start - tp.time_start < window_length)) {
92 inputs.push_back(input_tp);
100 os <<
"Window is empty!\n";
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";
void reset(TriggerPrimitive const &input_tp)
std::unordered_map< channel_t, uint16_t > channel_states
void add(TriggerPrimitive const &input_tp)
std::vector< TriggerPrimitive > inputs
void move(TriggerPrimitive const &input_tp, timestamp_t const &window_length)
uint16_t n_channels_hit()
dunedaq::trgdataformats::timestamp_t timestamp_t
std::ostream & operator<<(std::ostream &os, const TAWindow &window)