Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
itypes.h
Go to the documentation of this file.
1 /*
2  * itypes.h - unpacked data - types (after the unpacker)
3 */
4 
5 #ifndef ITYPES_INCLUDED
6 #define ITYPES_INCLUDED
7 
8 static const char sccsid_itypesH[] = "@(#)itypes.h\t5.2\tCreated 7/27/97 18:59:14, \tcompiled "__DATE__;
9 
10 #include <ntypes.h> /* for int32, etc... definitions */
11 
12 
13 typedef struct
14 {
17 } adc_value_t;
18 
19 typedef struct
20 {
22  int32 le; /* leading edge */
23  int32 te; /* trailing edge */
24 } tdc_value_t;
25 
26 typedef struct
27 {
29  adc_value_t adc[1];
30 } adc_values_t;
31 
32 typedef struct
33 {
35  tdc_value_t tdc[1];
36 } tdc_values_t;
37 
38 typedef struct
39 {
41  uint32 scaler[1];
43 
44 typedef struct
45 {
47  uint32 latch[1];
49 
50 typedef struct
51 {
54 } oldAdc_hit_t;
55 
56 typedef struct
57 {
61 } adc_hit_t;
62 
63 typedef struct
64 {
66  adc_hit_t hit[1];
67 } adc_hits_t;
68 
69 
70 /*
71  These records go into the groups created by PWC, and drift chamber unpacking code
72 */
73 
74 typedef struct
75 {
76  int32 plane; /* plane id, same as in the 'space' printout (i.e. counting from one) */
77  int32 first; /* index of the hit in the hits group */
78  int32 nhits; /* number of hits on this plane */
79 } mps_plane_t;
80 
81 typedef struct
82 {
84  mps_plane_t plane[1];
85 } mps_planes_t;
86 
87 typedef struct
88 {
89  int32 first; /* first wire in cluster */
90  int32 last; /* last wire in the cluster -
91  for one-cluster hits first and last will be equal */
93 
94 typedef struct
95 {
97  pwc_cluster_t cluster[1];
98 } pwc_hits_t;
99 
102 
103 typedef struct
104 {
105  int32 nwire; /* struck wire in scintillator */
106  int32 tdc_count; /* count on the corresponding tdc */
107 } scint_hit_t;
108 
109 typedef struct
110 {
112  scint_hit_t hit[1];
113 } scint_hits_t;
114 
117 
118 /*
119  These records constitute groups created by MPS Drift Chambers
120  unpacking code
121 
122  GROUP_MPSDC_HITS is made of one mpsdc_hits_t structure and
123  many mpsdc_hit_t structures - one for every hit on every plane.
124 
125  GROUP_MPSDC_PLANES is made of one mpsdc_planes_t record and many
126  mpsdc_plane_t record - one for every MPS DC plane
127 
128 */
129 
130 typedef struct
131 {
132  int32 wire; /* wire number (as given by the MPS DC readout system */
133  int32 drift; /* drift time (in MPS DC ticks) */
134 } mpsdc_hit_t;
135 
136 
137 typedef struct
138 {
140  mpsdc_hit_t hit[1];
141 } mpsdc_hits_t;
142 
143 
146 
147 
148 typedef struct{
153 
154 typedef struct{
157 } mpsdc_comp_t;
158 
159 
160 /* CsI data structures */
161 
162 typedef struct {
165 } csi_hit_t;
166 
167 typedef struct {
170  uint32 DiscLatch[7];
171  csi_hit_t hits[1];
172 } csi_hits_t;
173 
174 
175 typedef struct
176 {
178  uint32 tags[1];
179 
180 } csi_tags_t;
181 
182 /*
183  * Veto counters bit maps
184 */
185 
186 typedef struct
187 {
188  int32 length; /* size of the structure, including the length word */
196 
198 
199 /*
200  * For LGD trigger processor readout
201 */
202 
203 typedef struct{
215  int32 input[1];
216 } mam_indiv_t;
217 
218 typedef struct{
220  int32 data[1];
221 } lgd_tp_list_t;
222 
225 
226 typedef union{
229 }lgd_mam_t;
230 
231 #endif
232 /* end file */
int32 nlatches
Definition: itypes.h:46
unsigned char uint8
Definition: ntypes.h:59
int32 macPy
Definition: itypes.h:207
int32 max
Definition: itypes.h:210
int int32
Definition: ntypes.h:49
mps_plane_t mpsdc_plane_t
Definition: itypes.h:144
int32 macPhi
Definition: itypes.h:206
int32 nclusters
Definition: itypes.h:96
unsigned short uint16
Definition: ntypes.h:57
int32 nhits
Definition: itypes.h:155
int32 nhits
Definition: itypes.h:177
int32 drift
Definition: itypes.h:133
float32 fvalue
Definition: itypes.h:53
int32 block
Definition: itypes.h:163
mam_indiv_t indiv
Definition: itypes.h:227
int32 nwords
Definition: itypes.h:204
uint32 cpvc
Definition: itypes.h:192
int32 etot
Definition: itypes.h:212
uint32 dea
Definition: itypes.h:193
int32 last
Definition: itypes.h:90
int32 tdc_count
Definition: itypes.h:106
int32 nhits
Definition: itypes.h:78
int32 nwords
Definition: itypes.h:219
int32 nscalers
Definition: itypes.h:40
int32 mult
Definition: itypes.h:211
mps_plane_t scint_plane_t
Definition: itypes.h:115
int32 plane
Definition: itypes.h:76
int32 ntdc
Definition: itypes.h:34
mps_plane_t pwc_plane_t
Definition: itypes.h:100
int32 nhits
Definition: itypes.h:111
int32 cnt
Definition: itypes.h:209
uint32 channel
Definition: itypes.h:21
mps_planes_t scint_planes_t
Definition: itypes.h:116
int32 nwire
Definition: itypes.h:105
float float32
Definition: ntypes.h:61
int32 le
Definition: itypes.h:22
float32 fvalue
Definition: itypes.h:60
int32 first
Definition: itypes.h:89
int32 nplanes
Definition: itypes.h:83
uint32 channel
Definition: itypes.h:15
mps_planes_t pwc_planes_t
Definition: itypes.h:101
int32 massSqrd
Definition: itypes.h:213
int32 adc
Definition: itypes.h:59
uint32 ev
Definition: itypes.h:194
int32 first
Definition: itypes.h:77
int32 channel
Definition: itypes.h:52
uint32 bv
Definition: itypes.h:195
int32 wire
Definition: itypes.h:132
mam_list_t list
Definition: itypes.h:228
uint32 value
Definition: itypes.h:16
int32 t
Definition: itypes.h:214
uint16 wire
Definition: itypes.h:151
int32 HaloLatch
Definition: itypes.h:169
lgd_tp_list_t mam_list_t
Definition: itypes.h:224
mps_planes_t mpsdc_planes_t
Definition: itypes.h:145
int32 nhits
Definition: itypes.h:168
static const char sccsid_itypesH[]
Definition: itypes.h:8
lgd_tp_list_t lgd_roc_t
Definition: itypes.h:223
uint32 cpvb
Definition: itypes.h:191
int32 nhits
Definition: itypes.h:139
int32 te
Definition: itypes.h:23
uint32 cpva
Definition: itypes.h:190
int32 macPx
Definition: itypes.h:208
float32 energy
Definition: itypes.h:164
int32 nhits
Definition: itypes.h:65
int32 flags
Definition: itypes.h:189
int32 nadc
Definition: itypes.h:28
int32 macE
Definition: itypes.h:205
int32 channel
Definition: itypes.h:58
int32 length
Definition: itypes.h:188
unsigned int uint32
Definition: ntypes.h:50