Pottu
Public Types | Public Member Functions | Public Attributes | List of all members
pottu::Tagger< EVENT, NX, NY > Class Template Reference

Super simple 2D array for pixel detector event history. More...

#include <Tagger.hpp>

Public Types

using queue_type = std::deque< EVENT >
 

Public Member Functions

void clear () noexcept
 Clears the whole tagger for all stored events.
 
bool isValidPixel (uint16_t x, uint16_t y) const noexcept
 Checks if the given x,y pixel is valid.
 
queue_type & get (uint16_t x, uint16_t y) noexcept
 Returns queue of events in the given pixel. More...
 
const std::vector< queue_type > & getAllQueues () const noexcept
 
std::vector< queue_type > & getAllQueues () noexcept
 

Public Attributes

std::vector< queue_type > data {NX*NY}
 

Detailed Description

template<class EVENT, uint16_t NX, uint16_t NY>
class pottu::Tagger< EVENT, NX, NY >

Super simple 2D array for pixel detector event history.

Member Function Documentation

◆ get()

template<class EVENT , uint16_t NX, uint16_t NY>
queue_type& pottu::Tagger< EVENT, NX, NY >::get ( uint16_t  x,
uint16_t  y 
)
inlinenoexcept

Returns queue of events in the given pixel.

Will exit with code 1 if x or y are out of range!


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