20 template <
class EVENT, u
int16_t NX, u
int16_t NY>
23 using queue_type = std::deque<EVENT>;
36 return x < NX && y < NY;
43 queue_type &
get( uint16_t x, uint16_t y ) noexcept {
44 if( x >= NX || y >= NY )
49 const std::vector<queue_type> &getAllQueues() const noexcept {
53 std::vector<queue_type> &getAllQueues() noexcept {
57 std::vector<queue_type> data{NX*NY};
Super simple 2D array for pixel detector event history.
Definition: Tagger.hpp:21
void clear() noexcept
Clears the whole tagger for all stored events.
Definition: Tagger.hpp:28
queue_type & get(uint16_t x, uint16_t y) noexcept
Returns queue of events in the given pixel.
Definition: Tagger.hpp:43
bool isValidPixel(uint16_t x, uint16_t y) const noexcept
Checks if the given x,y pixel is valid.
Definition: Tagger.hpp:35
Definition: mainpage.dox:6