C++ API Reference¶
Detector API¶
-
class control¶
Detector specific¶
}
-
void initialize()¶
Initialize the detector head.
-
bool high_voltage() const¶
Returns the current HV on/off state.
Acquisition¶
-
void prepare_acq(acq_params_t const &acq_params)¶
Prepare acquisition.
-
void start_acq()¶
Start acquisition.
-
void soft_trigger()¶
Software trigger if the camera supports it.
-
void stop_acq()¶
Stop acquisition.
-
void close_acq()¶
Called when all receivers acquisition has ended.
General Info¶
-
std::string version() const¶
Returns the version of the camera plugin.
-
det_info_t det_info() const¶
Returns the detector information.
-
det_capabilities_t det_capabilities() const¶
Returns hardware capabilities.
-
det_status_t det_status() const¶
Returns the status of the detector.
Public Functions¶
-
control(init_params_t const &init_params)¶
Construct the control and broadcast the camera init parameters.
-
void initialize()¶
-
class acquisition¶
The acquisition class is the high level interface for data acquisition.
MPI¶
-
int world_rank() const¶
Return the rank of the acquisition in the world communicator.
-
int recv_rank() const¶
Return the rank of the acquisition in the acquisition communicator.
Acquisition¶
-
acq_info_t prepare_acq(acq_params_t const &acq_params)¶
Prepare acquisition and returns information for the processing.
-
void start_acq()¶
Start acquisition.
-
void stop_acq()¶
Stop acquisition.
-
void close_acq()¶
Called when all receivers acquisition has ended.
-
void reset_acq()¶
Reset acquisition.
-
int world_rank() const¶
Allocators¶
-
class numa_resource : public std::pmr::memory_resource¶
A resource that uses
numa_alloc_onnode
to allocate memory on a specific numa node.
-
class cuda_resource : public std::pmr::memory_resource¶
A resource that uses
cudaMallocHost
to allocate memory on host.
-
class um_resource : public std::pmr::memory_resource¶
A resource that uses
AC922_allocate_with_mmap_mbind
to allocate memory on Unified Model memory architecture (for Power9)
IO¶
HDF5¶
-
class file : private boost::base_from_member<shared_file_hid_t>, public lima::io::h5::detail::attrs_base<file>, public lima::io::h5::detail::dset_base<file>¶
Represents an HDF5 file.
Subclassed by lima::io::h5::nx::file
Public Functions¶
-
inline bool is_open() const¶
Returns true if the file is open (aka the hid is valid)
-
inline bool is_open() const¶
-
class group : private boost::base_from_member<shared_group_hid_t>, public lima::io::h5::detail::attrs_base<group>, public lima::io::h5::detail::dset_base<group>¶
Represents an HDF5 group.
Subclassed by lima::io::h5::nx::group
Public Functions¶
-
inline bool is_open() const¶
Returns true if the group is open (aka the hid is valid)
-
inline bool is_open() const¶
-
class dataset : private boost::base_from_member<shared_dataset_hid_t>, public lima::io::h5::detail::attrs_base<dataset>¶
Represents an HDF5 dataset.
Public Functions¶
-
inline bool is_open() const¶
Returns true if the dataset is open (aka the hid is valid)
-
inline dataspace space() const¶
Returns a copy of the dataspace of the dataset.
-
inline predef_datatype datatype() const¶
Returns the datatype of the dataset.
-
inline void write(const void *buffer, predef_datatype dtype, hid_t mem_dspace = H5S_ALL, hid_t file_dspace = H5S_ALL, hid_t dtpl_id = H5P_DEFAULT)¶
Writes data to the dataset.
-
inline void write_chunk(const void *buffer, uint32_t filter_mask, hsize_t offset[], size_t data_size, hid_t dtpl_id = H5P_DEFAULT)¶
Writes chunk to the dataset.
-
inline void read(void *buffer, predef_datatype dtype, hid_t mem_dspace = H5S_ALL, hid_t file_dspace = H5S_ALL, hid_t dtpl_id = H5P_DEFAULT)¶
Reads from the dataset.
-
inline bool is_open() const¶