|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <TAMakerSWIFTAlgorithm.hpp>
Public Member Functions | |
| void | process (const TriggerPrimitive &input_tp, std::vector< TriggerActivity > &output_tas) override |
| TP processing function that creates & fills TAs. | |
| void | configure (const nlohmann::json &config) |
| void | set_ta_attributes () |
| void | flush (timestamp_t until, std::vector< TriggerActivity > &output_tas) override |
| bool | preprocess (const TriggerPrimitive &input_tp) |
| TP pre-processing/filtering. | |
| Public Member Functions inherited from triggeralgs::TriggerActivityMaker | |
| virtual | ~TriggerActivityMaker ()=default |
| void | operator() (const TriggerPrimitive &input_tp, std::vector< TriggerActivity > &output_ta) |
| virtual void | postprocess (std::vector< TriggerActivity > &output_ta) |
| Post-processing/filtering of the TAs, e.g. prescale. | |
Private Types | |
| enum class | WindowDecision { kReject , kInspect , kAccept } |
Private Member Functions | |
| void | close_window (std::vector< TriggerActivity > &output_tas) |
| void | reset_window_state (uint64_t new_window_start) |
| uint64_t | extract_dominant_cluster_energy (const std::vector< TriggerPrimitive > &tps, float eps, int min_samples) |
Private Attributes | |
| TriggerActivity | m_current_ta |
| uint64_t | m_window_length |
| uint64_t | m_inspect_energy_threshold_sadc |
| uint64_t | m_accept_energy_threshold_sadc |
| uint16_t | m_min_adc_peak |
| uint16_t | m_min_samples_over_threshold |
| float | m_cm_per_tick |
| float | m_wire_pitch |
| int | m_db_min_samples |
| float | m_db_eps |
| uint64_t | m_cluster_energy_cut_sadc |
| bool | m_initialised = false |
| uint64_t | m_window_start = 0 |
| uint64_t | m_window_energy_sadc = 0 |
| uint16_t | m_tp_count = 0 |
Additional Inherited Members | |
| Public Attributes inherited from triggeralgs::TriggerActivityMaker | |
| 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_ta_count = 0 |
| TA made count for prescaling. | |
| uint32_t | m_max_samples_over_threshold = std::numeric_limits<uint32_t>::max() |
| Time-over-threshold TP filtering. | |
Definition at line 17 of file TAMakerSWIFTAlgorithm.hpp.
|
strongprivate |
| Enumerator | |
|---|---|
| kReject | |
| kInspect | |
| kAccept | |
Definition at line 58 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 95 of file TAMakerSWIFTAlgorithm.cpp.
|
virtual |
Reimplemented from triggeralgs::TriggerActivityMaker.
Definition at line 13 of file TAMakerSWIFTAlgorithm.cpp.
|
private |
Definition at line 121 of file TAMakerSWIFTAlgorithm.cpp.
|
overridevirtual |
Reimplemented from triggeralgs::TriggerActivityMaker.
Definition at line 238 of file TAMakerSWIFTAlgorithm.cpp.
|
virtual |
TP pre-processing/filtering.
Takes a TP and returns true or false depending whether we want to process that TP into a TA algorithm.
: Implement tp-filtering, e.g. SOT, plane, channel and whatnot
: Implement something smarter & more efficient if no filtering: vector of functions, or c-o-c
| [in] | intput_tp | input TP reference for filtering |
Reimplemented from triggeralgs::TriggerActivityMaker.
Definition at line 36 of file TAMakerSWIFTAlgorithm.cpp.
|
overridevirtual |
TP processing function that creates & fills TAs.
| input_tp[in] | Input TP for the triggering algorithm |
| output_ta[out] | Output vector of TAs to fill by the algorithm |
Implements triggeralgs::TriggerActivityMaker.
Definition at line 54 of file TAMakerSWIFTAlgorithm.cpp.
|
private |
Definition at line 44 of file TAMakerSWIFTAlgorithm.cpp.
| void triggeralgs::TriggerActivityMakerSWIFT::set_ta_attributes | ( | ) |
Definition at line 203 of file TAMakerSWIFTAlgorithm.cpp.
|
private |
Definition at line 35 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 46 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 42 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 27 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 45 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 44 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 52 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 34 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 38 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 39 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 55 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 54 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 33 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 53 of file TAMakerSWIFTAlgorithm.hpp.
|
private |
Definition at line 43 of file TAMakerSWIFTAlgorithm.hpp.