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

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