9#ifndef TRIGGERALGS_ADCSIMPLEWINDOW_TRIGGERACTIVITYMAKERADCSIMPLEWINDOW_HPP_
10#define TRIGGERALGS_ADCSIMPLEWINDOW_TRIGGERACTIVITYMAKERADCSIMPLEWINDOW_HPP_
24 void configure(
const nlohmann::json &config);
46 uint32_t n_tps_to_erase = 0;
48 if(!(input_tp.
time_start-tp.time_start < window_length)){
76 if(window.
is_empty()) os <<
"Window is empty!\n";
78 os <<
"Window start: " << window.
time_start <<
", end: " << window.
tp_list.back().time_start;
79 os <<
". Total of: " << window.
adc_integral <<
" ADC counts with " << window.
tp_list.size() <<
" TPs.\n";
std::vector< TriggerPrimitive > tp_list
void reset(TriggerPrimitive const &input_tp)
void move(TriggerPrimitive const &input_tp, timestamp_t const &window_length)
friend std::ostream & operator<<(std::ostream &os, const Window &window)
void add(TriggerPrimitive const &input_tp)
uint64_t m_primitive_count
void configure(const nlohmann::json &config)
TriggerActivity construct_ta() const
timestamp_t m_window_length
void process(const TriggerPrimitive &input_tp, std::vector< TriggerActivity > &output_ta)
TP processing function that creates & fills TAs.
dunedaq::trgdataformats::timestamp_t timestamp_t