|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <TCMakerSupernovaAlgorithm.hpp>
Public Member Functions | |
| void | process (const TriggerActivity &, std::vector< TriggerCandidate > &) |
| The function that gets call when there is a new activity. | |
Public Member Functions inherited from triggeralgs::TriggerCandidateMaker | |
| virtual | ~TriggerCandidateMaker ()=default |
| void | operator() (const TriggerActivity &input_ta, std::vector< TriggerCandidate > &output_tc) |
| virtual bool | preprocess (const TriggerActivity &) |
| TA pre-processing/filtering. | |
| virtual void | postprocess (std::vector< TriggerCandidate > &output_tc) |
| Post-processing/filtering of the TCs, e.g. prescale. | |
| virtual void | flush (timestamp_t, std::vector< TriggerCandidate > &) |
| virtual void | configure (const nlohmann::json &config) |
Protected Member Functions | |
| void | FlushOldActivity (timestamp_t time_now) |
| this function gets rid of the old activities | |
Protected Attributes | |
| std::vector< TriggerActivity::TriggerActivityData > | m_activity |
| std::atomic< int64_t > | m_time_window = { 500'000'000 } |
| Slinding time window to count activities. | |
| std::atomic< uint16_t > | m_threshold = { 3 } |
| Minimum number of activities in the time window to issue a trigger. | |
| std::atomic< uint16_t > | m_hit_threshold = { 2 } |
| Minimum number of primities in an activity. | |
Additional Inherited Members | |
Public Attributes inherited from triggeralgs::TriggerCandidateMaker | |
| std::atomic< uint64_t > | m_data_vs_system_time = 0 |
| std::atomic< uint64_t > | m_initial_offset = 0 |
| uint64_t | m_prescale = 1 |
| Configurable prescale factor. | |
| uint64_t | m_tc_count = 0 |
| TC made count for prescaling. | |
| TriggerCandidate::Type | m_tc_type_out = TriggerCandidate::Type::kUnknown |
| Configurable TC type output. | |
Definition at line 21 of file TCMakerSupernovaAlgorithm.hpp.
|
inlineprotected |
this function gets rid of the old activities
Definition at line 40 of file TCMakerSupernovaAlgorithm.hpp.
|
virtual |
The function that gets call when there is a new activity.
This decision maker just counts the number of activities in the time_window and triggers if the number of activities exceeds that.
Implements triggeralgs::TriggerCandidateMaker.
Definition at line 17 of file TCMakerSupernovaAlgorithm.cpp.
|
protected |
Definition at line 31 of file TCMakerSupernovaAlgorithm.hpp.
|
protected |
Minimum number of primities in an activity.
Definition at line 37 of file TCMakerSupernovaAlgorithm.hpp.
|
protected |
Minimum number of activities in the time window to issue a trigger.
Definition at line 35 of file TCMakerSupernovaAlgorithm.hpp.
|
protected |
Slinding time window to count activities.
Definition at line 33 of file TCMakerSupernovaAlgorithm.hpp.