AARE
Data analysis library for PSI hybrid detectors
|
Frame class to represent a single frame of data model class should be able to work with streams coming from files or network. More...
Namespaces | |
namespace | File |
namespace | Frame |
namespace | logger |
namespace | network_io |
namespace | NumpyHelpers |
Data Structures | |
class | CircularFifo |
class | ClusterFinder |
class | DType |
class | File |
RAII File class for reading and writing image files in various formats wrapper on a FileInterface to abstract the underlying file format. More... | |
struct | FileConfig |
FileConfig structure to store the configuration of a file dtype: data type of the file rows: number of rows in the file cols: number of columns in the file geometry: geometry of the file. More... | |
class | FileInterface |
FileInterface class to define the interface for file operations. More... | |
class | Frame |
class | NDArray |
class | NDView |
class | NumpyFile |
NumpyFile class to read and write numpy files. More... | |
struct | NumpyHeader |
class | RawFile |
RawFile class to read .raw and .json files. More... | |
struct | RawFileConfig |
struct | sls_detector_header |
class | SubFile |
Class to read a subfile from a RawFile. More... | |
struct | xy |
struct | ZmqFrame |
ZmqFrame structure wrapper class to contain a ZmqHeader and a Frame. More... | |
struct | ZmqHeader |
class | ZmqSocket |
class | ZmqSocketReceiver |
class | ZmqSocketSender |
Typedefs | |
using | dynamic_shape = std::vector< ssize_t > |
using | DataTypeVariants = std::variant< uint16_t, uint32_t > |
template<ssize_t Ndim> | |
using | Shape = std::array< ssize_t, Ndim > |
using | shape_t = std::vector< size_t > |
Enumerations | |
enum class | DetectorType { Jungfrau , Eiger , Mythen3 , Moench , ChipTestBoard } |
enum class | TimingMode { Auto , Trigger } |
enum class | endian { little = __ORDER_LITTLE_ENDIAN__ , big = __ORDER_BIG_ENDIAN__ , native = __BYTE_ORDER__ } |
Functions | |
template<class T > | |
T | StringTo (std::string sv) |
template<class T > | |
std::string | toString (T sv) |
template<> | |
DetectorType | StringTo (std::string) |
template<> | |
std::string | toString (DetectorType type) |
template<> | |
TimingMode | StringTo (std::string) |
template<typename T , ssize_t Ndim> | |
void | save (NDArray< T, Ndim > &img, std::string pathname) |
template<typename T , ssize_t Ndim> | |
NDArray< T, Ndim > | load (const std::string &pathname, std::array< ssize_t, Ndim > shape) |
template<ssize_t Ndim> | |
Shape< Ndim > | make_shape (const std::vector< size_t > &shape) |
template<ssize_t Dim = 0, typename Strides > | |
ssize_t | element_offset (const Strides &) |
template<ssize_t Dim = 0, typename Strides , typename... Ix> | |
ssize_t | element_offset (const Strides &strides, ssize_t i, Ix... index) |
template<ssize_t Ndim> | |
std::array< ssize_t, Ndim > | c_strides (const std::array< ssize_t, Ndim > &shape) |
template<ssize_t Ndim> | |
std::array< ssize_t, Ndim > | make_array (const std::vector< ssize_t > &vec) |
template<> | |
std::string | toString (DetectorType type) |
template<> | |
DetectorType | StringTo (std::string name) |
template<> | |
TimingMode | StringTo (std::string mode) |
Frame class to represent a single frame of data model class should be able to work with streams coming from files or network.
using aare::DataTypeVariants = typedef std::variant<uint16_t, uint32_t> |
using aare::dynamic_shape = typedef std::vector<ssize_t> |
using aare::Shape = typedef std::array<ssize_t, Ndim> |
using aare::shape_t = typedef std::vector<size_t> |
|
strong |
|
strong |
|
strong |
std::array< ssize_t, Ndim > aare::c_strides | ( | const std::array< ssize_t, Ndim > & | shape | ) |
ssize_t aare::element_offset | ( | const Strides & | ) |
ssize_t aare::element_offset | ( | const Strides & | strides, |
ssize_t | i, | ||
Ix... | index | ||
) |
NDArray< T, Ndim > aare::load | ( | const std::string & | pathname, |
std::array< ssize_t, Ndim > | shape | ||
) |
std::array< ssize_t, Ndim > aare::make_array | ( | const std::vector< ssize_t > & | vec | ) |
Shape< Ndim > aare::make_shape | ( | const std::vector< size_t > & | shape | ) |
void aare::save | ( | NDArray< T, Ndim > & | img, |
std::string | pathname | ||
) |
TimingMode aare::StringTo | ( | std::string | mode | ) |
DetectorType aare::StringTo | ( | std::string | name | ) |
T aare::StringTo | ( | std::string | sv | ) |
DetectorType aare::StringTo | ( | std::string | name | ) |
TimingMode aare::StringTo | ( | std::string | name | ) |
std::string aare::toString | ( | DetectorType | type | ) |
std::string aare::toString | ( | DetectorType | type | ) |
std::string aare::toString | ( | T | sv | ) |