Skip to content

pysbio

Name Description
PyDataSource
PyExecution A minimal trampoline class for allowing Python Execution policy subclassing.
AlgWrapper
BrokerGroupWrapper
Name Description
StorageRole
StorageHint
ExecutionPolicy
FTraits
IOPolicy

enum StorageRole
Value Description
UNKNOWN
Metadata
Data
Index
Group
Table

enum StorageHint
Value Description
NONE
Shareable
DeviceBound
DoubleBuffered

enum ExecutionPolicy
Value Description
Serial
Threaded
MPI
MPIThreaded

enum FTraits
Value Description
XTC1
XTC2

enum IOPolicy
Value Description
SyncPOSIX
Return Name Description
py::object wrap_xtc_detector
std::map< std::string, std::vector< std::string > > alg_fields Process the metadata from various StreamBrokers for a detector of the given name.

py::object wrap_xtc_detector(py::module & m, BrokerGroupV detv)

std::map< std::string, std::vector< std::string > > alg_fields(BrokerPtrV brokersv, const char * detector_name, std::size_t num_brokers, std::string & serial_number_out)

Process the metadata from various StreamBrokers for a detector of the given name.

This utility traverse the internal metadata structures and recomposes them into a more friendly STL mapping for algorithms and data access fields. It will also determine and format the serial number for the detector (if applicable).

A map of algorithm names to all the data fields under them. I.e. a lookup of the form: : [, ].

Parameter Type Description
brokersv BrokerPtrV The set of StreamBrokers managing the detector.
detector_name const char * The name of the detector to find metadata for.
num_brokers std::size_t The total number of StreamBrokers managing the detector.
serial_number_out std::string & Where to write the formatted serial number.