DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Utils.hpp File Reference
#include <algorithm>
#include <cassert>
#include <format>
#include <limits>
#include <stdexcept>
Include dependency graph for Utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dunedaq
 Including Qt Headers.
namespace  dunedaq::fddetdataformats

Functions

template<typename WordType, int NWords, int BitsPerADC, int ADCSPerChannel, int NChannels>
WordType dunedaq::fddetdataformats::get_adc_2d_as_1d (const int i_adc, const int i_channel, const WordType(&adc_matrix)[NWords])
template<typename WordType, int NWords, int BitsPerADC, int ADCSPerChannel, int NChannels>
void dunedaq::fddetdataformats::set_adc_2d_as_1d (const int i_adc, const int i_channel, const WordType adc_val, WordType(&adc_matrix)[NWords])
template<typename WordType, int NWords, int BitsPerADC>
WordType dunedaq::fddetdataformats::get_adc_1d (const int i_adc, const WordType(&adc_array)[NWords])
template<typename WordType, int Rows, int Columns, int BitsPerADC>
WordType dunedaq::fddetdataformats::get_adc_2d (const int i_sample, const int i_adc, const WordType(&adc_matrix)[Rows][Columns])
template<typename WordType, int NWords, int BitsPerADC>
void dunedaq::fddetdataformats::set_adc_1d (const int i_adc, WordType adc_val, WordType(&adc_array)[NWords])
template<typename WordType, int Rows, int Columns, int BitsPerADC>
void dunedaq::fddetdataformats::set_adc_2d (const int i_sample, const int i_adc, WordType adc_val, WordType(&adc_matrix)[Rows][Columns])

Detailed Description

As the name would suggest, this header contains utility functions applicable across the fddetdataformats package

This is part of the DUNE DAQ Application Framework, copyright 2020. Licensing/copyright details are in the COPYING file that you should have received with this code.

Definition in file Utils.hpp.