5#include <vitrio/span.hpp>
72 span<const std::uint32_t>
get(std::
size_t event) const noexcept;
81 std::uint32_t operator()(std::
size_t event, std::
size_t axis)
94 get_events(std::
size_t first, std::
size_t count) const noexcept;
108 struct unchecked_tag {};
122#include "detector_event_position_view.inl"
A view of the positions of a sequence of events, as a matrix of one row per event and one column per ...
Definition detector_event_position_view.hpp:27
std::size_t get_event_count() const noexcept
Get the number of events viewed.
span< const std::uint32_t > get_coordinates() const noexcept
Get every coordinate viewed, row after row.
detector_event_position_view(span< const std::uint32_t > coordinates, std::size_t rank)
Construct a view of coordinates held row after row.
span< const std::uint32_t > get(std::size_t event) const noexcept
Get the position of one event.
detector_event_position_view get_events(std::size_t first, std::size_t count) const noexcept
Get the positions of a run of the events viewed.
bool empty() const noexcept
Check whether no event is viewed.
std::size_t get_rank() const noexcept
Get the number of coordinates each event carries.
A view of a contiguous sequence of elements.
Definition span.hpp:29