Skip to content

DetectorSpec

#include <sbio/formats/random/randfmt.hh>
struct DetectorSpec

Defined in src/lib/sbio/formats/random/randfmt.hh:314

A simplified description of a detector to allow specifying how to write payloads.

Return Name Description
char name Name of the detector.
char type Type of the detector.
hd_std::uint16_t rank Rank (dims) of the payload.
hd_std::uint32_t shape Shape of the payload.
ncarray::DType dtype Underlying payload data type.

char name[MaxNameSize]

Defined in src/lib/sbio/formats/random/randfmt.hh:315

Name of the detector.


char type[MaxNameSize]

Defined in src/lib/sbio/formats/random/randfmt.hh:316

Type of the detector.


hd_std::uint16_t rank { 2 }

Defined in src/lib/sbio/formats/random/randfmt.hh:317

Rank (dims) of the payload.


hd_std::uint32_t shape[MaxRank]

Defined in src/lib/sbio/formats/random/randfmt.hh:318

Shape of the payload.


ncarray::DType dtype { ncarray::DType::uint16 }

Defined in src/lib/sbio/formats/random/randfmt.hh:319

Underlying payload data type.