9#ifndef TRIGGERALGS_SRC_TRIGGERALGS_SUPERNOVA_TRIGGERCANDIDATEMAKERSUPERNOVA_HPP_
10#define TRIGGERALGS_SRC_TRIGGERALGS_SUPERNOVA_TRIGGERCANDIDATEMAKERSUPERNOVA_HPP_
31 std::vector<TriggerActivity::TriggerActivityData>
m_activity;
43 auto end = std::remove_if(
44 m_activity.begin(),
m_activity.end(), [how_far,
this](
auto& c) ->
bool { return (static_cast<dunedaq::trgdataformats::timestamp_diff_t>(c.time_start) < how_far); });
std::vector< TriggerActivity::TriggerActivityData > m_activity
void FlushOldActivity(timestamp_t time_now)
this function gets rid of the old activities
std::atomic< uint16_t > m_threshold
Minimum number of activities in the time window to issue a trigger.
void process(const TriggerActivity &, std::vector< TriggerCandidate > &)
The function that gets call when there is a new activity.
std::atomic< uint16_t > m_hit_threshold
Minimum number of primities in an activity.
std::atomic< int64_t > m_time_window
Slinding time window to count activities.
dunedaq::trgdataformats::timestamp_t timestamp_t
dunedaq::trgdataformats::timestamp_diff_t timestamp_diff_t