|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
AVX signal processor: Fixes the estimated pedestal after a configured amount of time. More...
#include <AVXFixedPedestalSubtractProcessor.hpp>
Public Member Functions | |
| __m256i | process (const __m256i &signal) override |
| Estimates the pedestal for some time and subtracts. | |
| void | configure (const nlohmann::json &config, const int16_t *plane_numbers) override |
| Configure the number of startup samples to use before fixing. | |
Public Member Functions inherited from tpglibs::AVXFrugalPedestalSubtractProcessor | |
| AVXFrugalPedestalSubtractProcessor ()=default | |
| ~AVXFrugalPedestalSubtractProcessor () noexcept=default | |
| __m256i | process (const __m256i &signal) override |
| Estimate the pedestal using the given signal and subtract. | |
| void | configure (const nlohmann::json &config, const int16_t *plane_numbers) override |
| Configure the accumulation limit according to plane number. | |
Public Member Functions inherited from tpglibs::AVXProcessor | |
Public Member Functions inherited from tpglibs::AbstractProcessor< __m256i > | |
| virtual | ~AbstractProcessor ()=default |
| ProcessorInternalStateBufferManager< __m256i > * | _get_internal_state_buffer_manager () |
| ProcessorInternalStateNameRegistry< __m256i > * | _get_internal_state_name_registry () |
| virtual void | configure_internal_state_collection (const nlohmann::json &config) |
| Configure common internal state collection parameters. | |
| void | set_next_processor (std::shared_ptr< AbstractProcessor< __m256i > > next_processor) |
| Setter for next processor. | |
| std::shared_ptr< AbstractProcessor< __m256i > > | get_next_processor () |
| Getter for next processor. | |
| virtual std::vector< std::string > | get_requested_internal_state_names () const |
| Get the names of requested internal states (delegates to registry). | |
| virtual ProcessorMetricArray< std::array< int16_t, 16 > > | read_internal_states_as_integer_array () |
Protected Attributes | |
| uint16_t | m_start_period {1000} |
| Configured number of samples to use before fixing. | |
| uint16_t | m_num_time_steps {0} |
| Counted number of samples. | |
Protected Attributes inherited from tpglibs::AVXFrugalPedestalSubtractProcessor | |
| __m256i | m_pedestal = _mm256_set1_epi16(0x4000) |
| Vector of estimated pedestals for each channel. | |
| __m256i | m_accum = _mm256_setzero_si256() |
| Vector of counts that a channel's signal was above or below m_pedestal. | |
| int16_t | m_accum_limit {10} |
| Count limit before committing to a pedestal shift. | |
Protected Attributes inherited from tpglibs::AbstractProcessor< __m256i > | |
| ProcessorInternalStateBufferManager< __m256i > | m_internal_state_buffer_manager |
| ProcessorInternalStateNameRegistry< __m256i > | m_internal_state_name_registry |
| std::atomic< uint64_t > | m_samples |
| bool | m_collect_internal_state_flag |
| uint64_t | m_sample_period |
Additional Inherited Members | |
Public Types inherited from tpglibs::AbstractProcessor< __m256i > | |
| using | signal_type_t |
| Signal type to process on. General __m256i. | |
AVX signal processor: Fixes the estimated pedestal after a configured amount of time.
Look to AVXFrugalPedestalSubtractProcessor for details on how the pedestal is estimated.
Definition at line 21 of file AVXFixedPedestalSubtractProcessor.hpp.
|
overridevirtual |
Configure the number of startup samples to use before fixing.
| config | JSON config for start period per plane. |
| plane_numbers | Array of plane numbers. Gives the channels to apply the start period. |
Implements tpglibs::AbstractProcessor< __m256i >.
Definition at line 15 of file AVXFixedPedestalSubtractProcessor.cpp.
|
overridevirtual |
Estimates the pedestal for some time and subtracts.
Reimplemented from tpglibs::AVXProcessor.
Definition at line 20 of file AVXFixedPedestalSubtractProcessor.cpp.
|
protected |
Counted number of samples.
Definition at line 27 of file AVXFixedPedestalSubtractProcessor.hpp.
|
protected |
Configured number of samples to use before fixing.
Definition at line 24 of file AVXFixedPedestalSubtractProcessor.hpp.