StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
daq_dta_structs.h
1 #ifndef _DAQ_DTA_STRUCTS_H_
2 #define _DAQ_DTA_STRUCTS_H_
3 
4 #include <sys/types.h>
5 
6 // Trigger basics
7 struct daq_trg_word {
8  short t ; // token
9  unsigned char daq ; // daq command
10  unsigned char trg ; // trigger command
11 
12  unsigned int rhic ; // rhic clock timestamp
13  int rhic_delta ; // delta from previous
14 
15  unsigned int reserved[5] ;
16 } ;
17 
18 
19 // I.e. raw TPC/TPX data
20 struct daq_adc_tb {
21  unsigned short adc ;
22  unsigned short tb ;
23 } ;
24 
25 
27  unsigned short adc ;
28  unsigned short tb ;
29 
30  // embeding info:
31  unsigned short track_id ;
32  short reserved ;
33 } ;
34 
35 
36 // TPX/TPC clusters
37 struct daq_cld {
38  float tb ;
39  float pad ;
40 
41  unsigned short charge ;
42  unsigned short flags ;
43 
44  unsigned short t1, t2 ;
45  unsigned short p1, p2 ;
46 } ;
47 
48 
49 struct daq_sim_cld {
50  // same as from file
51  struct daq_cld cld ;
52 
53  // embedding info
54  unsigned short track_id ;
55  short quality ;
56 } ;
57 
58 struct daq_sim_cld_x {
59  // same as from file
60  struct daq_cld cld ;
61 
62  // embedding info
63  unsigned short track_id ;
64  short quality ;
65 
66  // other data
67  unsigned short pixels ;
68  unsigned short max_adc ;
69 
70  unsigned int reserved[4] ;
71 } ;
72 
73 
74 struct daq_det_gain {
75  float gain ;
76  float t0 ;
77 } ;
78 
80  float rms ;
81  u_short ped ;
82 } ;
83 
84 //size_t daq_dta_dict(const char *det, const char *bank) ;
85 
86 #endif
87