Crate gondola_core

Crate gondola_core 

Source
Expand description

Dataclasses provides structures to facilitate the work with data drom the GAPS experiment. Most noticeably, there are

  • events - TOF/Tracker data, TOF events on disk, MergedEvents send over telemetry

  • packets - containers to serialize/deserialize the described structures so that these can be stored on disk or send over the network

  • calibration - TOF/Tracker related calibration routines and containers to hold results

  • io - read/write packets to/from disk or receive them over the network

  • random - random numbers for software tests

  • tof - Very specific TOF related code which does not fall under a different category

  • tracker - Very specific TRK related code which does not fall under any other category

§features:

  • random - allow random number generated data classes for testing

  • database - access a data base for advanced paddle mapping, readoutboard and ltb information etc. This will introduce a dependency on sqlite and diesel

  • tof-control - allows to control LTB & Powerboard from the RBs over i2c. Since the i2c protocoll is not supported on Mac, code with this feature enable won’t build on Apple systems.

  • advanced-algorithms - allows to use a different algorithm for pulse extraction

  • pybindings - build the python library “gondola”. Most of the entitities within “gondola-core” have pybindings, e.g. events, hits.

  • tof-liftof - build the code which is required to build liftof, the flight code utiilizing this library

Modules§

calibration
The following file is part of gaps-online-software and published under the GPLv3 license
constants
The following file is part of gaps-online-software and published under the GPLv3 license Global constants for TOF operations
database
Database access & entities for gaps-online-software
errors
events
io
gaps-online-software i/o system
monitoring
packets
prelude
random
The following file is part of gaps-online-software and published under the GPLv3 license
stats
Statistics tools
tof
tracker
version
The following file is part of gaps-online-software and published under the GPLv3 license

Macros§

expand_and_test_enum
A simple helper macro adding an as_str function as well as the Display method to any enum.
moniseries
Implements the moniseries trait for a MoniData type of class
pythonize_error
reader
Implement the Reader trait and necessary getters/setters to make a struct an actual reader

Constants§

VERSION

Functions§

color_log
Make sure that the loglevel is in color, even though not using pretty_env logger
init_env_logger
Set up the environmental (env) logger with our format