gondola_core/
tof.rs

1// This file is part of gaps-online-software and published 
2// under the GPLv3 license
3
4pub mod rb_paddle_id;
5pub mod algorithms;
6pub mod detector_status;
7pub use rb_paddle_id::RBPaddleID;
8pub use detector_status::TofDetectorStatus;
9pub mod config;
10pub use config::*;
11pub mod commands;
12pub use commands::*;
13pub mod settings;
14pub use settings::*;
15#[cfg(feature="database")]
16pub mod analysis_engine;
17#[cfg(feature="database")]
18pub use analysis_engine::*;
19pub mod cuts;
20pub use cuts::*;
21pub mod alerts;
22pub use alerts::*;
23pub mod tof_response;
24pub use tof_response::*;
25#[cfg(feature="tof-liftof")]
26pub mod thread_control;
27#[cfg(feature="tof-liftof")]
28pub use thread_control::ThreadControl;
29#[cfg(feature="tof-liftof")]
30pub mod master_trigger;
31pub use master_trigger::*;
32#[cfg(feature="tof-liftof")]
33pub use master_trigger::control::*;
34#[cfg(feature="tof-liftof")]
35pub use master_trigger::registers::*;
36#[cfg(feature="tof-liftof")]
37pub mod signal_handler;
38#[cfg(feature="tof-liftof")]
39pub use signal_handler::*;
40pub mod analysis;
41pub use analysis::*;
42
43#[cfg(feature="pybindings")]
44use pyo3::pyfunction;
45/// Convert an int value to the board ID string.
46#[cfg_attr(feature="pybindings", pyfunction)]
47pub fn to_board_id_string(rb_id: u32) -> String {
48  format!("RB{:02}", rb_id)
49}
50
51