SeekDAS S100M4X C++ SDK 0.2.0
seekdas.hpp: C++17 interface over the Rust SDK
Loading...
Searching...
No Matches
seekdas::Capture Class Reference

Result of a run. Points per group; a trigger run uses group 0. Move-only. More...

#include <seekdas.hpp>

Public Member Functions

 Capture (seekdas_capture *p)
std::size_t points (int group=0) const noexcept
ChannelMask channels (int group=0) const
View< std::int16_t > channel (Channel input, int group=0) const
 all points of one input (empty if the input is not in the group)
View< std::uint64_t > times (int group=0) const
 per point: time in T/64 (T = sample period), source (0..3 = detector, 4 = generator); empty without time stamps
View< std::uint8_t > sources (int group=0) const
View< std::uint32_t > bad_points (int group=0) const
 indices of invalid points (late or saturated); needs time stamps
std::optional< std::uint64_t > t0 (int group=0) const
RunSummary summary () const
void write_csv (const std::string &path) const
 CSV: group,index,time,source,<inputs...>.
const seekdas_capture * native () const noexcept

Detailed Description

Result of a run. Points per group; a trigger run uses group 0. Move-only.

Definition at line 446 of file seekdas.hpp.

Constructor & Destructor Documentation

◆ Capture()

seekdas::Capture::Capture ( seekdas_capture * p)
inlineexplicit

Definition at line 448 of file seekdas.hpp.

Member Function Documentation

◆ points()

std::size_t seekdas::Capture::points ( int group = 0) const
inlinenoexcept

Definition at line 451 of file seekdas.hpp.

◆ channels()

ChannelMask seekdas::Capture::channels ( int group = 0) const
inline

Definition at line 452 of file seekdas.hpp.

◆ channel()

View< std::int16_t > seekdas::Capture::channel ( Channel input,
int group = 0 ) const
inline

all points of one input (empty if the input is not in the group)

Definition at line 454 of file seekdas.hpp.

◆ times()

View< std::uint64_t > seekdas::Capture::times ( int group = 0) const
inline

per point: time in T/64 (T = sample period), source (0..3 = detector, 4 = generator); empty without time stamps

Definition at line 460 of file seekdas.hpp.

◆ sources()

View< std::uint8_t > seekdas::Capture::sources ( int group = 0) const
inline

Definition at line 461 of file seekdas.hpp.

◆ bad_points()

View< std::uint32_t > seekdas::Capture::bad_points ( int group = 0) const
inline

indices of invalid points (late or saturated); needs time stamps

Definition at line 463 of file seekdas.hpp.

◆ t0()

std::optional< std::uint64_t > seekdas::Capture::t0 ( int group = 0) const
inline

Definition at line 464 of file seekdas.hpp.

◆ summary()

RunSummary seekdas::Capture::summary ( ) const
inline

Definition at line 469 of file seekdas.hpp.

◆ write_csv()

void seekdas::Capture::write_csv ( const std::string & path) const
inline

CSV: group,index,time,source,<inputs...>.

Definition at line 475 of file seekdas.hpp.

◆ native()

const seekdas_capture * seekdas::Capture::native ( ) const
inlinenoexcept

Definition at line 477 of file seekdas.hpp.


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