StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fee_readout.h
1 /* master include file for TPC sector
2  contents: fee_position[][] FEE# for each RDO and position on RDO
3  fee_order[][] order of FEE on fiber for each RDO
4  fee_upper[][] specifies which half of FEE is read
5  at each step of sequence, for each RDO
6 */
7 /*
8  * Include deffee_defult FEE location lists
9  last modified by MJL 10/21/98
10 
11  modified again by MJL 03/22/99 to accomodate changes in RDO1, Mezz1
12  and RDO 2, Mezz 3, made by Fred
13  */
14 
15 static unsigned char fee_position[6][36] = {
16 
17 /* RDO location 1 */
18  {175, 177, 180, 181, 178, 179, 166, 167, 168, /* change 3/22/99 */
19  255, 169, 170, 154, 155, 156, 157, 158, 159,
20  255, 255, 255, 255, 255, 255, 171, 255, 172,
21  176, 173, 174, 160, 161, 162, 163, 164, 165,},/* per Fred B 3/11/98 */
22 
23 /* RDO location 2 */
24  {127, 128, 129, 130, 131, 132, 138, 139, 140,
25  141, 142, 255, 255, 143, 146, 147, 144, 145, /* change 3/22/99 */
26  133, 134, 135, 136, 137, 255, 255, 255, 255,
27  255, 255, 255, 148, 149, 150, 151, 152, 153,},/* per Fred B 3/11/98 */
28 
29 /* RDO location 3 */
30  { 99, 100, 101, 102, 103, 104, 105, 255, 255,
31  106, 107, 108, 109, 110, 111, 112, 255, 255,
32  113, 114, 115, 116, 117, 118, 119, 255, 255,
33  120, 121, 122, 255, 123, 124, 125, 255, 255}, /* NOTE GAP!!! */
34 
35 /* RDO location 4 */
36  { 69, 70, 71, 72, 73, 74, 75, 76, 255,
37  77, 78, 79, 80, 81, 82, 83, 84, 255,
38  85, 86, 87, 88, 255, 89, 90, 91, 255, /* per Fred B 10/21/98 */
39  92, 93, 94, 95, 255, 96, 97, 98, 255},/* per Fred B 10/21/98 */
40 
41 /* RDO location 5 */
42  { 36, 37, 38, 39, 40, 41, 42, 43, 44,
43  45, 46, 47, 48, 255, 49, 50, 51, 52, /* NOTE GAP!!! */
44  53, 54, 55, 56, 255, 57, 58, 59, 60, /* per Fred B 10/21/98 */
45  61, 62, 63, 64, 255, 65, 66, 67, 68},/* per Fred B 10/21/98 */
46 
47 /* RDO location 6 */
48  { 0, 1, 2, 3, 4, 5, 6, 7, 8,
49  9, 10, 11, 12, 13, 14, 15, 16, 17,
50  18, 19, 20, 21, 22, 23, 24, 25, 26,
51  27, 28, 29, 30, 31, 32, 33, 34, 35}};
52 
53 /*
54  * Include mezzanine sequence from Interface document
55  *
56  */
57 
58 /* the following array shows the relative order in which the FEE cards are
59  read out on the RDO. These are the offsets which have to be used for
60  various RDOs to get the correct FEE number: they should be used as
61  an index in to the various fee_default[rdo-1][] arrays.
62  This is the gospel from Fred Bieser
63 
64 */
65 
66 
67 #ifdef FEE_ORDER_NEED
68 static int fee_order[6][72] ={
69  /* RDO 1 */
70  {0,1,2,3,4,5,6,7,8,9,10,11,12,13,
71  14,15,16,17,18,19,20,21,22,23,
72  24,25,26,27,28,29,30,31,32,33,34,35,
73  0,1,2,3,4,5,6,7,8,9,10,11,12,13,
74  14,15,16,17,18,19,20,21,22,23,
75  24,25,26,27,28,29,30,31,32,33,34,35},
76 
77  /* RDO 2 */
78  {0,1,2,3,4,5,6,7,8,9,10,11,12,13,
79  14,15,16,17,18,19,20,21,22,23,
80  24,25,26,27,28,29,30,31,32,33,34,35,
81  0,1,2,3,4,5,6,7,8,9,10,11,12,13,
82  14,15,16,17,18,19,20,21,22,23,
83  24,25,26,27,28,29,30,31,32,33,34,35},
84 
85  /* RDO 3 */
86  {0,1,2,3,4,5,15,16,17,9,10,11,21,
87  22,23,24,25,26,6,7,8,0,1,2,12,13,
88  14,15,16,17,27,28,29,30,31,32,3,4,
89  5,6,7,8,18,19,20,21,22,23,33,34,35,
90  27,28,29,9,10,11,12,13,14,24,25,26,
91  18,19,20,30,31,32,33,34,35},
92 
93  /* RDO 4 */
94  {0,1,2,3,4,5,15,16,17,9,10,11,21,
95  22,23,24,25,26,6,7,8,0,1,2,12,13,
96  14,15,16,17,27,28,29,30,31,32,3,4,
97  5,6,7,8,18,19,20,21,22,23,33,34,35,
98  27,28,29,9,10,11,12,13,14,24,25,26,
99  18,19,20,30,31,32,33,34,35},
100 
101  /* RDO 5 */
102  {0,1,2,3,4,5,15,16,17,9,10,11,21,
103  22,23,24,25,26,6,7,8,0,1,2,12,13,
104  14,15,16,17,27,28,29,30,31,32,3,4,
105  5,6,7,8,18,19,20,21,22,23,33,34,35,
106  27,28,29,9,10,11,12,13,14,24,25,26,
107  18,19,20,30,31,32,33,34,35},
108 
109  /* RDO 6 */
110  {0,1,2,3,4,5,15,16,17,9,10,11,21,
111  22,23,24,25,26,6,7,8,0,1,2,12,13,
112  14,15,16,17,27,28,29,30,31,32,3,4,
113  5,6,7,8,18,19,20,21,22,23,33,34,35,
114  27,28,29,9,10,11,12,13,14,24,25,26,
115  18,19,20,30,31,32,33,34,35}
116 };
117 
118 
119 /*
120  fee_upper[i]= 0: first 16 pins of connector
121  1: second 16 pins
122 */
123 static int fee_upper[6][72] = {
124  /* RDO 1 */ {0, 0, 0, 0, 0, 0, 0, 0, 0,
125  0, 0, 0, 0, 0, 0, 0, 0, 0,
126  0, 0, 0, 0, 0, 0, 0, 0, 0,
127  0, 0, 0, 0, 0, 0, 0, 0, 0,
128  1, 1, 1, 1, 1, 1, 1, 1, 1,
129  1, 1, 1, 1, 1, 1, 1, 1, 1,
130  1, 1, 1, 1, 1, 1, 1, 1, 1,
131  1, 1, 1, 1, 1, 1, 1, 1, 1},
132 
133  /* RDO 2 */ {0, 0, 0, 0, 0, 0, 0, 0, 0,
134  0, 0, 0, 0, 0, 0, 0, 0, 0,
135  0, 0, 0, 0, 0, 0, 0, 0, 0,
136  0, 0, 0, 0, 0, 0, 0, 0, 0,
137  1, 1, 1, 1, 1, 1, 1, 1, 1,
138  1, 1, 1, 1, 1, 1, 1, 1, 1,
139  1, 1, 1, 1, 1, 1, 1, 1, 1,
140  1, 1, 1, 1, 1, 1, 1, 1, 1},
141 
142  /* RDO 3 */ {0, 0, 0, 0, 0, 0, 0, 0, 0, /* 00A..17A */
143  1, 1, 1, 1, 1, 1, 1, 1, 1, /* 09B..26B */
144  0, 0, 0, /* 06A..08A */
145  1, 1, 1, 1, 1, 1, 1, 1, 1, /* 00B..17B */
146  0, 0, 0, 0, 0, 0, /* 27A..32A */
147  1, 1, 1, 1, 1, 1, /* 03B..08B */
148  0, 0, 0, 0, 0, 0, 0, 0, 0, /* 18A..35A */
149  1, 1, 1, /* 27B..29B */
150  0, 0, 0, 0, 0, 0, 0, 0, 0, /* 09A..26A */
151  1, 1, 1, 1, 1, 1, 1, 1, 1}, /* 18B..35B */
152 
153  /* RDO 4 */ {0, 0, 0, 0, 0, 0, 0, 0, 0, /* 00A..17A */
154  1, 1, 1, 1, 1, 1, 1, 1, 1, /* 09B..26B */
155  0, 0, 0, /* 06A..08A */
156  1, 1, 1, 1, 1, 1, 1, 1, 1, /* 00B..17B */
157  0, 0, 0, 0, 0, 0, /* 27A..32A */
158  1, 1, 1, 1, 1, 1, /* 03B..08B */
159  0, 0, 0, 0, 0, 0, 0, 0, 0, /* 18A..35A */
160  1, 1, 1, /* 27B..29B */
161  0, 0, 0, 0, 0, 0, 0, 0, 0, /* 09A..26A */
162  1, 1, 1, 1, 1, 1, 1, 1, 1}, /* 18B..35B */
163 
164  /* RDO 5 */ {0, 0, 0, 0, 0, 0, 0, 0, 0, /* 00A..17A */
165  1, 1, 1, 1, 1, 1, 1, 1, 1, /* 09B..26B */
166  0, 0, 0, /* 06A..08A */
167  1, 1, 1, 1, 1, 1, 1, 1, 1, /* 00B..17B */
168  0, 0, 0, 0, 0, 0, /* 27A..32A */
169  1, 1, 1, 1, 1, 1, /* 03B..08B */
170  0, 0, 0, 0, 0, 0, 0, 0, 0, /* 18A..35A */
171  1, 1, 1, /* 27B..29B */
172  0, 0, 0, 0, 0, 0, 0, 0, 0, /* 09A..26A */
173  1, 1, 1, 1, 1, 1, 1, 1, 1}, /* 18B..35B */
174 
175  /* RDO 6 */ {0, 0, 0, 0, 0, 0, 0, 0, 0, /* 00A..17A */
176  1, 1, 1, 1, 1, 1, 1, 1, 1, /* 09B..26B */
177  0, 0, 0, /* 06A..08A */
178  1, 1, 1, 1, 1, 1, 1, 1, 1, /* 00B..17B */
179  0, 0, 0, 0, 0, 0, /* 27A..32A */
180  1, 1, 1, 1, 1, 1, /* 03B..08B */
181  0, 0, 0, 0, 0, 0, 0, 0, 0, /* 18A..35A */
182  1, 1, 1, /* 27B..29B */
183  0, 0, 0, 0, 0, 0, 0, 0, 0, /* 09A..26A */
184  1, 1, 1, 1, 1, 1, 1, 1, 1} /* 18B..35B */
185 };
186 
187 #endif