OpticalTypes.h
Go to the documentation of this file.
1 // OpticalDetectorData/OpticalTypes.h
2 // William Seligman <seligman@nevis.columbia.edu>
3 
4 // Define some common types using by the OpticalDetector classes.
5 
6 #ifndef OpticalDetectorData_OpticalTypes_h
7 #define OpticalDetectorData_OpticalTypes_h
8 
9 #include <stdint.h>
10 #include <vector>
11 
12 namespace optdata {
13 
14  // Assuming that we're using 12-bit ADCs, define a type that's
15  // guaranteed to hold that full range of bits.
16  typedef uint16_t ADC_Count_t;
17 
18  // Other types, in case something changes later on:
19  typedef unsigned int Channel_t;
20  typedef unsigned int TimeSlice_t;
21  typedef unsigned int Frame_t;
22 
23  // Use an enum for categories of ADC channels, triggers, etc.
24  typedef enum _optical_category_t {
38 
39 } // namespace optdata
40 
41 #endif // OpticalDetectorData_OpticalTypes_h
enum optdata::_optical_category_t Optical_Category_t
uint16_t ADC_Count_t
Definition: OpticalTypes.h:16
_optical_category_t
Definition: OpticalTypes.h:24
unsigned int TimeSlice_t
Definition: OpticalTypes.h:20
unsigned int Frame_t
Definition: OpticalTypes.h:21
unsigned int Channel_t
Definition: OpticalTypes.h:19