source: trunk/MagicSoft/Mars/mgui/MCamNeighbor.cc@ 665

Last change on this file since 665 was 653, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 29.1 KB
Line 
1#include "MCamNeighbor.h"
2
3#include "MLog.h"
4
5ClassImp(MCamNeighbor)
6
7MCamNeighbor::MCamNeighbor()
8{
9 // default constructor
10
11 Int_t help [577][6] = {
12 { 1, 2, 3, 4, 5, 6} ,
13 { 0, 2, 6, 7, 8, 18} ,
14 { 0, 1, 3, 8, 9, 10} ,
15 { 0, 2, 4, 10, 11, 12} ,
16 { 0, 3, 5, 12, 13, 14} ,
17 { 0, 4, 6, 14, 15, 16} ,
18 { 0, 1, 5, 16, 17, 18} ,
19 { 1, 8, 18, 19, 20, 36} ,
20 { 1, 2, 7, 9, 20, 21} ,
21 { 2, 8, 10, 21, 22, 23} ,
22 { 2, 3, 9, 11, 23, 24} ,
23 { 3, 10, 12, 24, 25, 26} ,
24 { 3, 4, 11, 13, 26, 27} ,
25 { 4, 12, 14, 27, 28, 29} ,
26 { 4, 5, 13, 15, 29, 30} ,
27 { 5, 14, 16, 30, 31, 32} ,
28 { 5, 6, 15, 17, 32, 33} ,
29 { 6, 16, 18, 33, 34, 35} ,
30 { 1, 6, 7, 17, 35, 36} ,
31 { 7, 20, 36, 37, 38, 60} ,
32 { 7, 8, 19, 21, 38, 39} ,
33 { 8, 9, 20, 22, 39, 40} ,
34 { 9, 21, 23, 40, 41, 42} ,
35 { 9, 10, 22, 24, 42, 43} ,
36 { 10, 11, 23, 25, 43, 44} ,
37 { 11, 24, 26, 44, 45, 46} ,
38 { 11, 12, 25, 27, 46, 47} ,
39 { 12, 13, 26, 28, 47, 48} ,
40 { 13, 27, 29, 48, 49, 50} ,
41 { 13, 14, 28, 30, 50, 51} ,
42 { 14, 15, 29, 31, 51, 52} ,
43 { 15, 30, 32, 52, 53, 54} ,
44 { 15, 16, 31, 33, 54, 55} ,
45 { 16, 17, 32, 34, 55, 56} ,
46 { 17, 33, 35, 56, 57, 58} ,
47 { 17, 18, 34, 36, 58, 59} ,
48 { 7, 18, 19, 35, 59, 60} ,
49 { 19, 38, 60, 61, 62, 90} ,
50 { 19, 20, 37, 39, 62, 63} ,
51 { 20, 21, 38, 40, 63, 64} ,
52 { 21, 22, 39, 41, 64, 65} ,
53 { 22, 40, 42, 65, 66, 67} ,
54 { 22, 23, 41, 43, 67, 68} ,
55 { 23, 24, 42, 44, 68, 69} ,
56 { 24, 25, 43, 45, 69, 70} ,
57 { 25, 44, 46, 70, 71, 72} ,
58 { 25, 26, 45, 47, 72, 73} ,
59 { 26, 27, 46, 48, 73, 74} ,
60 { 27, 28, 47, 49, 74, 75} ,
61 { 28, 48, 50, 75, 76, 77} ,
62 { 28, 29, 49, 51, 77, 78} ,
63 { 29, 30, 50, 52, 78, 79} ,
64 { 30, 31, 51, 53, 79, 80} ,
65 { 31, 52, 54, 80, 81, 82} ,
66 { 31, 32, 53, 55, 82, 83} ,
67 { 32, 33, 54, 56, 83, 84} ,
68 { 33, 34, 55, 57, 84, 85} ,
69 { 34, 56, 58, 85, 86, 87} ,
70 { 34, 35, 57, 59, 87, 88} ,
71 { 35, 36, 58, 60, 88, 89} ,
72 { 19, 36, 37, 59, 89, 90} ,
73 { 37, 62, 90, 91, 92, 126} ,
74 { 37, 38, 61, 63, 92, 93} ,
75 { 38, 39, 62, 64, 93, 94} ,
76 { 39, 40, 63, 65, 94, 95} ,
77 { 40, 41, 64, 66, 95, 96} ,
78 { 41, 65, 67, 96, 97, 98} ,
79 { 41, 42, 66, 68, 98, 99} ,
80 { 42, 43, 67, 69, 99, 100} ,
81 { 43, 44, 68, 70, 100, 101} ,
82 { 44, 45, 69, 71, 101, 102} ,
83 { 45, 70, 72, 102, 103, 104} ,
84 { 45, 46, 71, 73, 104, 105} ,
85 { 46, 47, 72, 74, 105, 106} ,
86 { 47, 48, 73, 75, 106, 107} ,
87 { 48, 49, 74, 76, 107, 108} ,
88 { 49, 75, 77, 108, 109, 110} ,
89 { 49, 50, 76, 78, 110, 111} ,
90 { 50, 51, 77, 79, 111, 112} ,
91 { 51, 52, 78, 80, 112, 113} ,
92 { 52, 53, 79, 81, 113, 114} ,
93 { 53, 80, 82, 114, 115, 116} ,
94 { 53, 54, 81, 83, 116, 117} ,
95 { 54, 55, 82, 84, 117, 118} ,
96 { 55, 56, 83, 85, 118, 119} ,
97 { 56, 57, 84, 86, 119, 120} ,
98 { 57, 85, 87, 120, 121, 122} ,
99 { 57, 58, 86, 88, 122, 123} ,
100 { 58, 59, 87, 89, 123, 124} ,
101 { 59, 60, 88, 90, 124, 125} ,
102 { 37, 60, 61, 89, 125, 126} ,
103 { 61, 92, 126, 127, 128, 168} ,
104 { 61, 62, 91, 93, 128, 129} ,
105 { 62, 63, 92, 94, 129, 130} ,
106 { 63, 64, 93, 95, 130, 131} ,
107 { 64, 65, 94, 96, 131, 132} ,
108 { 65, 66, 95, 97, 132, 133} ,
109 { 66, 96, 98, 133, 134, 135} ,
110 { 66, 67, 97, 99, 135, 136} ,
111 { 67, 68, 98, 100, 136, 137} ,
112 { 68, 69, 99, 101, 137, 138} ,
113 { 69, 70, 100, 102, 138, 139} ,
114 { 70, 71, 101, 103, 139, 140} ,
115 { 71, 102, 104, 140, 141, 142} ,
116 { 71, 72, 103, 105, 142, 143} ,
117 { 72, 73, 104, 106, 143, 144} ,
118 { 73, 74, 105, 107, 144, 145} ,
119 { 74, 75, 106, 108, 145, 146} ,
120 { 75, 76, 107, 109, 146, 147} ,
121 { 76, 108, 110, 147, 148, 149} ,
122 { 76, 77, 109, 111, 149, 150} ,
123 { 77, 78, 110, 112, 150, 151} ,
124 { 78, 79, 111, 113, 151, 152} ,
125 { 79, 80, 112, 114, 152, 153} ,
126 { 80, 81, 113, 115, 153, 154} ,
127 { 81, 114, 116, 154, 155, 156} ,
128 { 81, 82, 115, 117, 156, 157} ,
129 { 82, 83, 116, 118, 157, 158} ,
130 { 83, 84, 117, 119, 158, 159} ,
131 { 84, 85, 118, 120, 159, 160} ,
132 { 85, 86, 119, 121, 160, 161} ,
133 { 86, 120, 122, 161, 162, 163} ,
134 { 86, 87, 121, 123, 163, 164} ,
135 { 87, 88, 122, 124, 164, 165} ,
136 { 88, 89, 123, 125, 165, 166} ,
137 { 89, 90, 124, 126, 166, 167} ,
138 { 61, 90, 91, 125, 167, 168} ,
139 { 91, 128, 168, 169, 170, 216} ,
140 { 91, 92, 127, 129, 170, 171} ,
141 { 92, 93, 128, 130, 171, 172} ,
142 { 93, 94, 129, 131, 172, 173} ,
143 { 94, 95, 130, 132, 173, 174} ,
144 { 95, 96, 131, 133, 174, 175} ,
145 { 96, 97, 132, 134, 175, 176} ,
146 { 97, 133, 135, 176, 177, 178} ,
147 { 97, 98, 134, 136, 178, 179} ,
148 { 98, 99, 135, 137, 179, 180} ,
149 { 99, 100, 136, 138, 180, 181} ,
150 { 100, 101, 137, 139, 181, 182} ,
151 { 101, 102, 138, 140, 182, 183} ,
152 { 102, 103, 139, 141, 183, 184} ,
153 { 103, 140, 142, 184, 185, 186} ,
154 { 103, 104, 141, 143, 186, 187} ,
155 { 104, 105, 142, 144, 187, 188} ,
156 { 105, 106, 143, 145, 188, 189} ,
157 { 106, 107, 144, 146, 189, 190} ,
158 { 107, 108, 145, 147, 190, 191} ,
159 { 108, 109, 146, 148, 191, 192} ,
160 { 109, 147, 149, 192, 193, 194} ,
161 { 109, 110, 148, 150, 194, 195} ,
162 { 110, 111, 149, 151, 195, 196} ,
163 { 111, 112, 150, 152, 196, 197} ,
164 { 112, 113, 151, 153, 197, 198} ,
165 { 113, 114, 152, 154, 198, 199} ,
166 { 114, 115, 153, 155, 199, 200} ,
167 { 115, 154, 156, 200, 201, 202} ,
168 { 115, 116, 155, 157, 202, 203} ,
169 { 116, 117, 156, 158, 203, 204} ,
170 { 117, 118, 157, 159, 204, 205} ,
171 { 118, 119, 158, 160, 205, 206} ,
172 { 119, 120, 159, 161, 206, 207} ,
173 { 120, 121, 160, 162, 207, 208} ,
174 { 121, 161, 163, 208, 209, 210} ,
175 { 121, 122, 162, 164, 210, 211} ,
176 { 122, 123, 163, 165, 211, 212} ,
177 { 123, 124, 164, 166, 212, 213} ,
178 { 124, 125, 165, 167, 213, 214} ,
179 { 125, 126, 166, 168, 214, 215} ,
180 { 91, 126, 127, 167, 215, 216} ,
181 { 127, 170, 216, 217, 218, 270} ,
182 { 127, 128, 169, 171, 218, 219} ,
183 { 128, 129, 170, 172, 219, 220} ,
184 { 129, 130, 171, 173, 220, 221} ,
185 { 130, 131, 172, 174, 221, 222} ,
186 { 131, 132, 173, 175, 222, 223} ,
187 { 132, 133, 174, 176, 223, 224} ,
188 { 133, 134, 175, 177, 224, 225} ,
189 { 134, 176, 178, 225, 226, 227} ,
190 { 134, 135, 177, 179, 227, 228} ,
191 { 135, 136, 178, 180, 228, 229} ,
192 { 136, 137, 179, 181, 229, 230} ,
193 { 137, 138, 180, 182, 230, 231} ,
194 { 138, 139, 181, 183, 231, 232} ,
195 { 139, 140, 182, 184, 232, 233} ,
196 { 140, 141, 183, 185, 233, 234} ,
197 { 141, 184, 186, 234, 235, 236} ,
198 { 141, 142, 185, 187, 236, 237} ,
199 { 142, 143, 186, 188, 237, 238} ,
200 { 143, 144, 187, 189, 238, 239} ,
201 { 144, 145, 188, 190, 239, 240} ,
202 { 145, 146, 189, 191, 240, 241} ,
203 { 146, 147, 190, 192, 241, 242} ,
204 { 147, 148, 191, 193, 242, 243} ,
205 { 148, 192, 194, 243, 244, 245} ,
206 { 148, 149, 193, 195, 245, 246} ,
207 { 149, 150, 194, 196, 246, 247} ,
208 { 150, 151, 195, 197, 247, 248} ,
209 { 151, 152, 196, 198, 248, 249} ,
210 { 152, 153, 197, 199, 249, 250} ,
211 { 153, 154, 198, 200, 250, 251} ,
212 { 154, 155, 199, 201, 251, 252} ,
213 { 155, 200, 202, 252, 253, 254} ,
214 { 155, 156, 201, 203, 254, 255} ,
215 { 156, 157, 202, 204, 255, 256} ,
216 { 157, 158, 203, 205, 256, 257} ,
217 { 158, 159, 204, 206, 257, 258} ,
218 { 159, 160, 205, 207, 258, 259} ,
219 { 160, 161, 206, 208, 259, 260} ,
220 { 161, 162, 207, 209, 260, 261} ,
221 { 162, 208, 210, 261, 262, 263} ,
222 { 162, 163, 209, 211, 263, 264} ,
223 { 163, 164, 210, 212, 264, 265} ,
224 { 164, 165, 211, 213, 265, 266} ,
225 { 165, 166, 212, 214, 266, 267} ,
226 { 166, 167, 213, 215, 267, 268} ,
227 { 167, 168, 214, 216, 268, 269} ,
228 { 127, 168, 169, 215, 269, 270} ,
229 { 169, 218, 270, 271, 272, 330} ,
230 { 169, 170, 217, 219, 272, 273} ,
231 { 170, 171, 218, 220, 273, 274} ,
232 { 171, 172, 219, 221, 274, 275} ,
233 { 172, 173, 220, 222, 275, 276} ,
234 { 173, 174, 221, 223, 276, 277} ,
235 { 174, 175, 222, 224, 277, 278} ,
236 { 175, 176, 223, 225, 278, 279} ,
237 { 176, 177, 224, 226, 279, 280} ,
238 { 177, 225, 227, 280, 281, 282} ,
239 { 177, 178, 226, 228, 282, 283} ,
240 { 178, 179, 227, 229, 283, 284} ,
241 { 179, 180, 228, 230, 284, 285} ,
242 { 180, 181, 229, 231, 285, 286} ,
243 { 181, 182, 230, 232, 286, 287} ,
244 { 182, 183, 231, 233, 287, 288} ,
245 { 183, 184, 232, 234, 288, 289} ,
246 { 184, 185, 233, 235, 289, 290} ,
247 { 185, 234, 236, 290, 291, 292} ,
248 { 185, 186, 235, 237, 292, 293} ,
249 { 186, 187, 236, 238, 293, 294} ,
250 { 187, 188, 237, 239, 294, 295} ,
251 { 188, 189, 238, 240, 295, 296} ,
252 { 189, 190, 239, 241, 296, 297} ,
253 { 190, 191, 240, 242, 297, 298} ,
254 { 191, 192, 241, 243, 298, 299} ,
255 { 192, 193, 242, 244, 299, 300} ,
256 { 193, 243, 245, 300, 301, 302} ,
257 { 193, 194, 244, 246, 302, 303} ,
258 { 194, 195, 245, 247, 303, 304} ,
259 { 195, 196, 246, 248, 304, 305} ,
260 { 196, 197, 247, 249, 305, 306} ,
261 { 197, 198, 248, 250, 306, 307} ,
262 { 198, 199, 249, 251, 307, 308} ,
263 { 199, 200, 250, 252, 308, 309} ,
264 { 200, 201, 251, 253, 309, 310} ,
265 { 201, 252, 254, 310, 311, 312} ,
266 { 201, 202, 253, 255, 312, 313} ,
267 { 202, 203, 254, 256, 313, 314} ,
268 { 203, 204, 255, 257, 314, 315} ,
269 { 204, 205, 256, 258, 315, 316} ,
270 { 205, 206, 257, 259, 316, 317} ,
271 { 206, 207, 258, 260, 317, 318} ,
272 { 207, 208, 259, 261, 318, 319} ,
273 { 208, 209, 260, 262, 319, 320} ,
274 { 209, 261, 263, 320, 321, 322} ,
275 { 209, 210, 262, 264, 322, 323} ,
276 { 210, 211, 263, 265, 323, 324} ,
277 { 211, 212, 264, 266, 324, 325} ,
278 { 212, 213, 265, 267, 325, 326} ,
279 { 213, 214, 266, 268, 326, 327} ,
280 { 214, 215, 267, 269, 327, 328} ,
281 { 215, 216, 268, 270, 328, 329} ,
282 { 169, 216, 217, 269, 329, 330} ,
283 { 217, 272, 330, 331, 332, 396} ,
284 { 217, 218, 271, 273, 332, 333} ,
285 { 218, 219, 272, 274, 333, 334} ,
286 { 219, 220, 273, 275, 334, 335} ,
287 { 220, 221, 274, 276, 335, 336} ,
288 { 221, 222, 275, 277, 336, 337} ,
289 { 222, 223, 276, 278, 337, 338} ,
290 { 223, 224, 277, 279, 338, 339} ,
291 { 224, 225, 278, 280, 339, 340} ,
292 { 225, 226, 279, 281, 340, 341} ,
293 { 226, 280, 282, 341, 342, 343} ,
294 { 226, 227, 281, 283, 343, 344} ,
295 { 227, 228, 282, 284, 344, 345} ,
296 { 228, 229, 283, 285, 345, 346} ,
297 { 229, 230, 284, 286, 346, 347} ,
298 { 230, 231, 285, 287, 347, 348} ,
299 { 231, 232, 286, 288, 348, 349} ,
300 { 232, 233, 287, 289, 349, 350} ,
301 { 233, 234, 288, 290, 350, 351} ,
302 { 234, 235, 289, 291, 351, 352} ,
303 { 235, 290, 292, 352, 353, 354} ,
304 { 235, 236, 291, 293, 354, 355} ,
305 { 236, 237, 292, 294, 355, 356} ,
306 { 237, 238, 293, 295, 356, 357} ,
307 { 238, 239, 294, 296, 357, 358} ,
308 { 239, 240, 295, 297, 358, 359} ,
309 { 240, 241, 296, 298, 359, 360} ,
310 { 241, 242, 297, 299, 360, 361} ,
311 { 242, 243, 298, 300, 361, 362} ,
312 { 243, 244, 299, 301, 362, 363} ,
313 { 244, 300, 302, 363, 364, 365} ,
314 { 244, 245, 301, 303, 365, 366} ,
315 { 245, 246, 302, 304, 366, 367} ,
316 { 246, 247, 303, 305, 367, 368} ,
317 { 247, 248, 304, 306, 368, 369} ,
318 { 248, 249, 305, 307, 369, 370} ,
319 { 249, 250, 306, 308, 370, 371} ,
320 { 250, 251, 307, 309, 371, 372} ,
321 { 251, 252, 308, 310, 372, 373} ,
322 { 252, 253, 309, 311, 373, 374} ,
323 { 253, 310, 312, 374, 375, 376} ,
324 { 253, 254, 311, 313, 376, 377} ,
325 { 254, 255, 312, 314, 377, 378} ,
326 { 255, 256, 313, 315, 378, 379} ,
327 { 256, 257, 314, 316, 379, 380} ,
328 { 257, 258, 315, 317, 380, 381} ,
329 { 258, 259, 316, 318, 381, 382} ,
330 { 259, 260, 317, 319, 382, 383} ,
331 { 260, 261, 318, 320, 383, 384} ,
332 { 261, 262, 319, 321, 384, 385} ,
333 { 262, 320, 322, 385, 386, 387} ,
334 { 262, 263, 321, 323, 387, 388} ,
335 { 263, 264, 322, 324, 388, 389} ,
336 { 264, 265, 323, 325, 389, 390} ,
337 { 265, 266, 324, 326, 390, 391} ,
338 { 266, 267, 325, 327, 391, 392} ,
339 { 267, 268, 326, 328, 392, 393} ,
340 { 268, 269, 327, 329, 393, 394} ,
341 { 269, 270, 328, 330, 394, 395} ,
342 { 217, 270, 271, 329, 395, 396} ,
343 { 271, 332, 396, 397, 432, -1} ,
344 { 271, 272, 331, 333, 397, -1} ,
345 { 272, 273, 332, 334, 398, -1} ,
346 { 273, 274, 333, 335, 398, -1} ,
347 { 274, 275, 334, 336, 399, -1} ,
348 { 275, 276, 335, 337, 399, -1} ,
349 { 276, 277, 336, 338, 400, -1} ,
350 { 277, 278, 337, 339, 400, -1} ,
351 { 278, 279, 338, 340, 401, -1} ,
352 { 279, 280, 339, 341, 401, -1} ,
353 { 280, 281, 340, 342, 402, -1} ,
354 { 281, 341, 343, 402, 403, -1} ,
355 { 281, 282, 342, 344, 403, -1} ,
356 { 282, 283, 343, 345, 404, -1} ,
357 { 283, 284, 344, 346, 404, -1} ,
358 { 284, 285, 345, 347, 405, -1} ,
359 { 285, 286, 346, 348, 405, -1} ,
360 { 286, 287, 347, 349, 406, -1} ,
361 { 287, 288, 348, 350, 406, -1} ,
362 { 288, 289, 349, 351, 407, -1} ,
363 { 289, 290, 350, 352, 407, -1} ,
364 { 290, 291, 351, 353, 408, -1} ,
365 { 291, 352, 354, 408, 409, -1} ,
366 { 291, 292, 353, 355, 409, -1} ,
367 { 292, 293, 354, 356, 410, -1} ,
368 { 293, 294, 355, 357, 410, -1} ,
369 { 294, 295, 356, 358, 411, -1} ,
370 { 295, 296, 357, 359, 411, -1} ,
371 { 296, 297, 358, 360, 412, -1} ,
372 { 297, 298, 359, 361, 412, -1} ,
373 { 298, 299, 360, 362, 413, -1} ,
374 { 299, 300, 361, 363, 413, -1} ,
375 { 300, 301, 362, 364, 414, -1} ,
376 { 301, 363, 365, 414, 415, -1} ,
377 { 301, 302, 364, 366, 415, -1} ,
378 { 302, 303, 365, 367, 416, -1} ,
379 { 303, 304, 366, 368, 416, -1} ,
380 { 304, 305, 367, 369, 417, -1} ,
381 { 305, 306, 368, 370, 417, -1} ,
382 { 306, 307, 369, 371, 418, -1} ,
383 { 307, 308, 370, 372, 418, -1} ,
384 { 308, 309, 371, 373, 419, -1} ,
385 { 309, 310, 372, 374, 419, -1} ,
386 { 310, 311, 373, 375, 420, -1} ,
387 { 311, 374, 376, 420, 421, -1} ,
388 { 311, 312, 375, 377, 421, -1} ,
389 { 312, 313, 376, 378, 422, -1} ,
390 { 313, 314, 377, 379, 422, -1} ,
391 { 314, 315, 378, 380, 423, -1} ,
392 { 315, 316, 379, 381, 423, -1} ,
393 { 316, 317, 380, 382, 424, -1} ,
394 { 317, 318, 381, 383, 424, -1} ,
395 { 318, 319, 382, 384, 425, -1} ,
396 { 319, 320, 383, 385, 425, -1} ,
397 { 320, 321, 384, 386, 426, -1} ,
398 { 321, 385, 387, 426, 427, -1} ,
399 { 321, 322, 386, 388, 427, -1} ,
400 { 322, 323, 387, 389, 428, -1} ,
401 { 323, 324, 388, 390, 428, -1} ,
402 { 324, 325, 389, 391, 429, -1} ,
403 { 325, 326, 390, 392, 429, -1} ,
404 { 326, 327, 391, 393, 430, -1} ,
405 { 327, 328, 392, 394, 430, -1} ,
406 { 328, 329, 393, 395, 431, -1} ,
407 { 329, 330, 394, 396, 431, -1} ,
408 { 271, 330, 331, 395, 432, -1} ,
409 { 331, 332, 398, 432, 433, 434} ,
410 { 333, 334, 397, 399, 434, -1} ,
411 { 335, 336, 400, 435, 436, -1} ,
412 { 337, 338, 399, 401, 437, -1} ,
413 { 339, 340, 400, 402, 438, -1} ,
414 { 341, 342, 401, 403, 438, 439} ,
415 { 342, 343, 402, 404, 440, 441} ,
416 { 344, 345, 403, 441, 442, -1} ,
417 { 346, 347, 404, 442, 443, -1} ,
418 { 348, 349, 405, 443, 444, -1} ,
419 { 350, 351, 406, 444, 445, -1} ,
420 { 352, 353, 407, 409, 445, 446} ,
421 { 353, 354, 408, 410, 447, 448} ,
422 { 355, 356, 409, 411, 448, -1} ,
423 { 357, 358, 410, 412, 449, -1} ,
424 { 359, 360, 411, 450, 451, -1} ,
425 { 361, 362, 412, 414, 452, -1} ,
426 { 363, 364, 413, 415, 452, 453} ,
427 { 364, 365, 414, 416, 454, 455} ,
428 { 366, 367, 415, 417, 455, -1} ,
429 { 368, 369, 418, 456, 457, -1} ,
430 { 370, 371, 417, 419, 458, -1} ,
431 { 372, 373, 418, 420, 459, -1} ,
432 { 374, 375, 419, 421, 459, 460} ,
433 { 375, 376, 420, 422, 461, 462} ,
434 { 377, 378, 421, 462, 463, -1} ,
435 { 379, 380, 422, 463, 464, -1} ,
436 { 381, 382, 423, 464, 465, -1} ,
437 { 383, 384, 424, 465, 466, -1} ,
438 { 385, 386, 425, 427, 466, 467} ,
439 { 386, 387, 426, 428, 468, 469} ,
440 { 388, 389, 427, 429, 469, -1} ,
441 { 390, 391, 428, 430, 470, -1} ,
442 { 392, 393, 429, 471, 472, -1} ,
443 { 394, 395, 430, 432, 473, -1} ,
444 { 331, 396, 397, 431, 473, 474} ,
445 { 397, 434, 474, 475, 476, -1} ,
446 { 397, 398, 433, 435, 476, 477} ,
447 { 398, 399, 434, 436, 477, 478} ,
448 { 399, 400, 435, 437, 478, 479} ,
449 { 400, 401, 436, 438, 479, 480} ,
450 { 401, 402, 437, 439, 480, 481} ,
451 { 402, 438, 440, 481, 482, -1} ,
452 { 403, 439, 441, 483, 484, -1} ,
453 { 403, 404, 440, 442, 484, 485} ,
454 { 404, 405, 441, 443, 485, 486} ,
455 { 405, 406, 442, 444, 486, 487} ,
456 { 406, 407, 443, 445, 487, 488} ,
457 { 407, 408, 444, 446, 488, 489} ,
458 { 408, 445, 447, 489, 490, -1} ,
459 { 409, 446, 448, 491, 492, -1} ,
460 { 409, 410, 447, 449, 492, 493} ,
461 { 410, 411, 448, 450, 493, 494} ,
462 { 411, 412, 449, 451, 494, 495} ,
463 { 412, 413, 450, 452, 495, 496} ,
464 { 413, 414, 451, 453, 496, 497} ,
465 { 414, 452, 454, 497, 498, -1} ,
466 { 415, 453, 455, 499, 500, -1} ,
467 { 415, 416, 454, 456, 500, 501} ,
468 { 416, 417, 455, 457, 501, 502} ,
469 { 417, 418, 456, 458, 502, 503} ,
470 { 418, 419, 457, 459, 503, 504} ,
471 { 419, 420, 458, 460, 504, 505} ,
472 { 420, 459, 461, 505, 506, -1} ,
473 { 421, 460, 462, 507, 508, -1} ,
474 { 421, 422, 461, 463, 508, 509} ,
475 { 422, 423, 462, 464, 509, 510} ,
476 { 423, 424, 463, 465, 510, 511} ,
477 { 424, 425, 464, 466, 511, 512} ,
478 { 425, 426, 465, 467, 512, 513} ,
479 { 426, 466, 468, 513, 514, -1} ,
480 { 427, 467, 469, 515, 516, -1} ,
481 { 427, 428, 468, 470, 516, 517} ,
482 { 428, 429, 469, 471, 517, 518} ,
483 { 429, 430, 470, 472, 518, 519} ,
484 { 430, 431, 471, 473, 519, 520} ,
485 { 431, 432, 472, 474, 520, 521} ,
486 { 432, 433, 473, 521, 522, -1} ,
487 { 433, 476, 522, 523, 524, -1} ,
488 { 433, 434, 475, 477, 524, 525} ,
489 { 434, 435, 476, 478, 525, 526} ,
490 { 435, 436, 477, 479, 526, 527} ,
491 { 436, 437, 478, 480, 527, 528} ,
492 { 437, 438, 479, 481, 528, 529} ,
493 { 438, 439, 480, 482, 529, 530} ,
494 { 439, 481, 483, 530, 531, -1} ,
495 { 440, 482, 484, 532, 533, -1} ,
496 { 440, 441, 483, 485, 533, 534} ,
497 { 441, 442, 484, 486, 534, 535} ,
498 { 442, 443, 485, 487, 535, 536} ,
499 { 443, 444, 486, 488, 536, 537} ,
500 { 444, 445, 487, 489, 537, 538} ,
501 { 445, 446, 488, 490, 538, 539} ,
502 { 446, 489, 491, 539, 540, -1} ,
503 { 447, 490, 492, 541, 542, -1} ,
504 { 447, 448, 491, 493, 542, 543} ,
505 { 448, 449, 492, 494, 543, 544} ,
506 { 449, 450, 493, 495, 544, 545} ,
507 { 450, 451, 494, 496, 545, 546} ,
508 { 451, 452, 495, 497, 546, 547} ,
509 { 452, 453, 496, 498, 547, 548} ,
510 { 453, 497, 499, 548, 549, -1} ,
511 { 454, 498, 500, 550, 551, -1} ,
512 { 454, 455, 499, 501, 551, 552} ,
513 { 455, 456, 500, 502, 552, 553} ,
514 { 456, 457, 501, 503, 553, 554} ,
515 { 457, 458, 502, 504, 554, 555} ,
516 { 458, 459, 503, 505, 555, 556} ,
517 { 459, 460, 504, 506, 556, 557} ,
518 { 460, 505, 507, 557, 558, -1} ,
519 { 461, 506, 508, 559, 560, -1} ,
520 { 461, 462, 507, 509, 560, 561} ,
521 { 462, 463, 508, 510, 561, 562} ,
522 { 463, 464, 509, 511, 562, 563} ,
523 { 464, 465, 510, 512, 563, 564} ,
524 { 465, 466, 511, 513, 564, 565} ,
525 { 466, 467, 512, 514, 565, 566} ,
526 { 467, 513, 515, 566, 567, -1} ,
527 { 468, 514, 516, 568, 569, -1} ,
528 { 468, 469, 515, 517, 569, 570} ,
529 { 469, 470, 516, 518, 570, 571} ,
530 { 470, 471, 517, 519, 571, 572} ,
531 { 471, 472, 518, 520, 572, 573} ,
532 { 472, 473, 519, 521, 573, 574} ,
533 { 473, 474, 520, 522, 574, 575} ,
534 { 474, 475, 521, 575, 576, -1} ,
535 { 475, 524, 576, -1, -1, -1} ,
536 { 475, 476, 523, 525, -1, -1} ,
537 { 476, 477, 524, 526, -1, -1} ,
538 { 477, 478, 525, 527, -1, -1} ,
539 { 478, 479, 526, 528, -1, -1} ,
540 { 479, 480, 527, 529, -1, -1} ,
541 { 480, 481, 528, 530, -1, -1} ,
542 { 481, 482, 529, 531, -1, -1} ,
543 { 482, 530, 532, -1, -1, -1} ,
544 { 483, 531, 533, -1, -1, -1} ,
545 { 483, 484, 532, 534, -1, -1} ,
546 { 484, 485, 533, 535, -1, -1} ,
547 { 485, 486, 534, 536, -1, -1} ,
548 { 486, 487, 535, 537, -1, -1} ,
549 { 487, 488, 536, 538, -1, -1} ,
550 { 488, 489, 537, 539, -1, -1} ,
551 { 489, 490, 538, 540, -1, -1} ,
552 { 490, 539, 541, -1, -1, -1} ,
553 { 491, 540, 542, -1, -1, -1} ,
554 { 491, 492, 541, 543, -1, -1} ,
555 { 492, 493, 542, 544, -1, -1} ,
556 { 493, 494, 543, 545, -1, -1} ,
557 { 494, 495, 544, 546, -1, -1} ,
558 { 495, 496, 545, 547, -1, -1} ,
559 { 496, 497, 546, 548, -1, -1} ,
560 { 497, 498, 547, 549, -1, -1} ,
561 { 498, 548, 550, -1, -1, -1} ,
562 { 499, 549, 551, -1, -1, -1} ,
563 { 499, 500, 550, 552, -1, -1} ,
564 { 500, 501, 551, 553, -1, -1} ,
565 { 501, 502, 552, 554, -1, -1} ,
566 { 502, 503, 553, 555, -1, -1} ,
567 { 503, 504, 554, 556, -1, -1} ,
568 { 504, 505, 555, 557, -1, -1} ,
569 { 505, 506, 556, 558, -1, -1} ,
570 { 506, 557, 559, -1, -1, -1} ,
571 { 507, 558, 560, -1, -1, -1} ,
572 { 507, 508, 559, 561, -1, -1} ,
573 { 508, 509, 560, 562, -1, -1} ,
574 { 509, 510, 561, 563, -1, -1} ,
575 { 510, 511, 562, 564, -1, -1} ,
576 { 511, 512, 563, 565, -1, -1} ,
577 { 512, 513, 564, 566, -1, -1} ,
578 { 513, 514, 565, 567, -1, -1} ,
579 { 514, 566, 568, -1, -1, -1} ,
580 { 515, 567, 569, -1, -1, -1} ,
581 { 515, 516, 568, 570, -1, -1} ,
582 { 516, 517, 569, 571, -1, -1} ,
583 { 517, 518, 570, 572, -1, -1} ,
584 { 518, 519, 571, 573, -1, -1} ,
585 { 519, 520, 572, 574, -1, -1} ,
586 { 520, 521, 573, 575, -1, -1} ,
587 { 521, 522, 574, 576, -1, -1} ,
588 { 522, 523, 575, -1, -1, -1} } ;
589
590 for (Int_t ip=0; ip<577; ip++)
591 for (Int_t in=0; in<6; in++)
592 fNN[ip][in] = help[ip][in];
593}
594
595Int_t MCamNeighbor::GetNN(Int_t pix, Int_t inn)
596{
597 // return the number of one neighbor
598
599 if ( pix >= 577 )
600 {
601 gLog << "WARNING: GetNN -> pixel out of range" << endl;
602 return -1;
603 }
604
605 if ( inn >= 6 )
606 {
607 gLog << "WARNING: GetNN -> not more than 6 neighbors" << endl;
608 return -1;
609 }
610
611 return fNN[pix][inn] ;
612}
613
614void MCamNeighbor::CheckPixel(Int_t pix)
615{
616 gLog << " Pixel " << pix << " has neighbors " ;
617
618 gLog << fNN[pix][0];
619
620 for (Int_t i=1; i<6; i++ )
621 if (fNN[pix][i] >= 0)
622 gLog << ", " << fNN[pix][i];
623
624 gLog << endl ;
625
626}
627
628void MCamNeighbor::Print(Option_t *)
629{
630 for (Int_t i=0; i<577; i++ )
631 {
632 gLog << " Pixel " << i << ":";
633
634 for (Int_t j=0; j<6; j++ )
635 gLog << " " << fNN[i][j];
636
637 gLog << endl;
638 }
639}
Note: See TracBrowser for help on using the repository browser.