Class Reference for E1039 Core & Analysis Software
UtilTdc.h
Go to the documentation of this file.
1 #ifndef _UTIL_TDC__H_
2 #define _UTIL_TDC__H_
3 class SRawEvent;
4 
6 namespace UtilTdc {
7  static const int N_DET = 54;
8 
9  void FindTaiwanTdcBinning(int& n_bin, double& time_lo, double& time_hi);
10 
11  void GetOccupancy(SRawEvent* raw, const bool in_time, int occ_det[N_DET+1]);
12  void GetOccupancy(SRawEvent* raw, const bool in_time, int& occ_D0, int& occ_D1, int& occ_D2, int& occ_D3);
13 }; // namespace UtilTdc
14 
15 #endif /* _UTIL_TDC__H_ */
A set of utility functions about the TDC data.
Definition: UtilTdc.h:6
void FindTaiwanTdcBinning(int &n_bin, double &time_lo, double &time_hi)
Find a proper set of "n_bin", "time_lo" and "time_hi".
Definition: UtilTdc.cc:10
static const int N_DET
Definition: UtilTdc.h:7
void GetOccupancy(SRawEvent *raw, const bool in_time, int occ_det[N_DET+1])
Get the occupancy of each detector (plane).
Definition: UtilTdc.cc:34