#ifndef DQXX_H #define DQXX_H #include "event.h" #include "dict.h" extern char dqxx_err[256]; /* bits used in the DQCH title bank. */ #define KDQCH_TABLE 10 /* PMT cable in (0), out or unknown tube type (1) */ #define KDQCH_B_PMT_CABLE 0x1 /* PMTIC channel resistor present (0), not present (1) */ #define KDQCH_B_PMTIC_RESISTOR 0x2 /* Channel sequencer enabled (0), disabled (1) */ #define KDQCH_B_SEQUENCER 0x4 /* 100ns trigger enabled (0), disabled (1) */ #define KDQCH_B_100NS 0x8 /* 20ns trigger enabled (0), disabled (1) */ #define KDQCH_B_20NS 0x10 /* 750 Ohm terminator OK (0), blown (1) */ #define KDQCH_B_750OHM 0x20 /* Qinj OK (0), malfunctioning i.e. Large/Small/Bad (1) */ #define KDQCH_B_QINJ 0x40 /* 100 ns trigger OK (0), dead (1) */ #define KDQCH_B_N100 0x80 /* 20 ns trigger OK (0), dead (1) */ #define KDQCH_B_N20 0x100 /* operational (0), not operational (1) */ #define KDQCH_B_NOT_OP 0x200 /* logical OR of bits 0-9 */ #define KDQCH_B_BAD 0x400 /* Bits 16-24 represent the voltage threshold, and bits 24-32 represent the * voltage threshold zero. */ /* bits used in the DQCR title bank. */ #define KDQCR_TABLE 10 /* Crate present (0), not present (1) */ #define KDQCR_B_CRATE 0x1 /* MB present (0), not present (1) */ #define KDQCR_B_MB 0x2 /* PMTIC present (0), not present (1) */ #define KDQCR_B_PMTIC 0x4 /* DAQ readout (eCPU) online (0), offline (1) */ #define KDQCR_B_DAQ 0x8 /* Daughter cards all present (0), 4 bit mask of present DC. * Channel i associated with DC at bit DC + i/8. */ #define KDQCR_B_DC 0x10 /* OR of bits 0-7, 2-15. * This is deemed to mean 'slot operation', as it is an OR of crate, slot, db, * etc. operational. */ #define KDQCR_B_SLOT_OP 0x100 /* GT mask for crate, i.e. is this crate receiving global triggers. */ #define KDQCR_B_GT 0x200 /* Crate on-line (i.e. is being read out by ECPU). */ #define KDQCR_B_CR_ONLINE 0x400 /* or of bit 0 (SNO crate present) and bits 16-31 (HV bits). */ #define KDQCR_B_CR_HV 0x800 /* HV relays all on (0), 4 bit mask of relays on. */ #define KDQCR_B_RELAY 0x1000 int dqxx_init(dict *db, event *ev); #endif d=86e89541032a0a345ae70d4b31aec474e4899890'>src/mt19937ar.c
blob: 0dda925ca134d2ba3131a9813bdb8a349c12fc95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170