5#include <vitrio/detector_event_position_view.hpp>
6#include <vitrio/export.hpp>
76 std::uint64_t timestamp,
94 void reserve(std::
size_t group_count, std::
size_t event_count);
154 std::vector<std::uint64_t> m_timestamps;
155 std::vector<std::
size_t> m_group_offsets;
156 std::vector<std::uint32_t> m_coordinates;
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
The events a detector counted over a stretch of time.
Definition detector_event_timeline.hpp:39
void add_group(std::uint64_t timestamp, detector_event_position_view positions)
Append the events of one timestamp.
detector_event_position_view get_positions() const noexcept
Get the positions of every event held.
std::size_t get_rank() const noexcept
Get the number of coordinates each event carries.
void clear() noexcept
Drop the events held, keeping the rank and the capacity.
void reserve(std::size_t group_count, std::size_t event_count)
Make room for a number of groups and events without allocating later.
std::size_t get_group_count() const noexcept
Get how many groups are held.
detector_event_timeline(std::size_t rank)
Construct an empty timeline of a given rank.
std::size_t get_event_count() const noexcept
Get how many events are held, in every group.
std::uint64_t get_timestamp(std::size_t group) const noexcept
Get the timestamp of one group.