gondola_core/tof/
analysis.rs

1//! A high level analysis which interplays with 
2//! the tof cuts and can histogram TOF relevant 
3//! quantities 
4// This file is part of gaps-online-software and published 
5// under the GPLv3 license
6
7use crate::prelude::*;
8use crate::tof::cuts::TofCuts;
9
10/// A container to hold a cut selection and allows 
11/// to walk over files and fills a number of histograms 
12///
13/// FIXME - typically these monolithic structures are 
14///         not a good idea
15///
16pub struct TofAnalysis {
17  pub skip_mangled  : bool,
18  pub skip_timeout  : bool,
19  pub beta_analysis : bool,
20  pub nbins         : u64,
21  pub cuts          : TofCuts,
22  pub use_offsets   : bool,
23  pub pid_inner     : Option<u8>,
24  pub pid_outer     : Option<u8>,
25  pub active        : bool,
26  pub nhit          : u64, 
27  pub no_hitmiss    : u64, 
28  pub one_hitmiss   : u64, 
29  pub two_hitmiss   : u64, 
30  pub extra_hits    : u64, 
31  pub occupancy     : HashMap<u8,u64>,
32  pub occupancy_t   : HashMap<u8,u64>
33}
34
35impl TofAnalysis {
36}