5#include <vitrio/export.hpp>
6#include <vitrio/span.hpp>
55 std::uint64_t time_extent,
120 friend
bool operator==(
126 lhs.m_time_extent == rhs.m_time_extent &&
127 lhs.m_time_quantum == rhs.m_time_quantum &&
128 lhs.m_extents == rhs.m_extents &&
129 lhs.m_subdivisions == rhs.m_subdivisions;
132 friend bool operator!=(
137 return !(lhs == rhs);
141 std::vector<std::size_t> m_extents;
142 std::vector<std::size_t> m_subdivisions;
143 std::uint64_t m_time_extent;
144 double m_time_quantum;
What is fixed for one acquisition of a detector that counts events: the grid its events are placed on...
Definition detector_event_timeline_descriptor.hpp:32
span< const std::size_t > get_extents() const noexcept
Get the extents of the grid of positions.
span< const std::size_t > get_subdivisions() const noexcept
Get how many position quanta a pixel of the detector spans.
double get_time_quantum() const noexcept
Get the length of one time quantum.
std::size_t get_rank() const noexcept
Get the number of axes events are placed along.
std::uint64_t get_time_extent() const noexcept
Get how many time quanta the acquisition spans.
detector_event_timeline_descriptor(span< const std::size_t > extents, span< const std::size_t > subdivisions, std::uint64_t time_extent, double time_quantum)
Construct a descriptor from its components.
A view of a contiguous sequence of elements.
Definition span.hpp:29