DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
tpglibs::NaiveProcessor Class Reference

Naive typed abstract signal processor. More...

#include <NaiveProcessor.hpp>

Inheritance diagram for tpglibs::NaiveProcessor:
[legend]
Collaboration diagram for tpglibs::NaiveProcessor:
[legend]

Public Types

using naive_array_t = std::array<int16_t, 16>
 The naive version uses a standard array instead of __m256i.
 
- Public Types inherited from tpglibs::AbstractProcessor< std::array< int16_t, 16 > >
using signal_type_t
 Signal type to process on. General __m256i.
 

Public Member Functions

virtual naive_array_t process (const naive_array_t &signal) override
 Simple signal pass-through on naive type.
 
- Public Member Functions inherited from tpglibs::AbstractProcessor< std::array< int16_t, 16 > >
virtual ~AbstractProcessor ()=default
 
virtual void configure (const nlohmann::json &config, const int16_t *plane_numbers)=0
 Pure virtual function that will configure the processor using plane numbers.
 
void set_next_processor (std::shared_ptr< AbstractProcessor< std::array< int16_t, 16 > > > next_processor)
 Setter for next processor.
 
virtual void save_metric_to_store_buffer ()
 Save metrics to store buffer; default does nothing.
 
virtual std::vector< std::string > get_metric_items ()
 Returns the string name of metrics recorded (stored and can be read) for this processor.
 
virtual ProcessorMetricArray< signal_type_tread_from_metric_store_buffer ()
 Read metrics from store buffer; default empty.
 
virtual void attach_to_metric_collector (ProcessorMetricCollector< signal_type_t > &collector, size_t pipeline_id)
 Register this processor and next processor with the metric collector.
 

Detailed Description

Naive typed abstract signal processor.

Definition at line 19 of file NaiveProcessor.hpp.

Member Typedef Documentation

◆ naive_array_t

using tpglibs::NaiveProcessor::naive_array_t = std::array<int16_t, 16>

The naive version uses a standard array instead of __m256i.

Definition at line 22 of file NaiveProcessor.hpp.

Member Function Documentation

◆ process()

virtual naive_array_t tpglibs::NaiveProcessor::process ( const naive_array_t & signal)
inlineoverridevirtual

Simple signal pass-through on naive type.

Reimplemented from tpglibs::AbstractProcessor< std::array< int16_t, 16 > >.

Reimplemented in tpglibs::NaiveAbsRunSumProcessor, tpglibs::NaiveFrugalPedestalSubtractProcessor, tpglibs::NaiveRunSumProcessor, and tpglibs::NaiveThresholdProcessor.

Definition at line 25 of file NaiveProcessor.hpp.

25 {
27 }
virtual T process(const T &signal)
Simple signal pass-through.

The documentation for this class was generated from the following file: