332 {
333
336
337
338
339
340
341
342
343
344
345
346
347 int tmp_jTowersIDs_subset_FPGA[nrows][ncols];
348
349
350
351
352
353
354
355
356
357 memset(tmp_jTowersIDs_subset_FPGA, 0, sizeof tmp_jTowersIDs_subset_FPGA);
358
359 for (int myrow = 0; myrow<2; myrow++){
360 for (int mycol = ncols-24; mycol<ncols; mycol++){
361 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[14+myrow][mycol];
362 }
363 }
364 for (int myrow = 2; myrow<6; myrow++){
365 for (int mycol = ncols-24; mycol<ncols; mycol++){
366 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow-2][mycol];
367 }
368 }
369 for (int myrow = 6; myrow<8; myrow++){
370 for (int mycol = ncols-24; mycol<ncols; mycol++){
371 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow-2][mycol];
372 }
373 }
374 for (int myrow = 0; myrow<4; myrow++){
375 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
376 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[28+myrow][mycol];
377 }
378 }
379 for (int myrow = 4; myrow<12; myrow++){
380 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
381 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow-4][mycol];
382 }
383 }
384 for (int myrow = 12; myrow<16; myrow++){
385 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
386 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow-4][mycol];
387 }
388 }
389 for (int myrow = 0; myrow<8; myrow++){
390 for (int mycol = 0; mycol<ncols-28; mycol++){
391 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[56+myrow][mycol];
392 }
393 }
394 for (int myrow = 8; myrow<32; myrow++){
395 for (int mycol = 0; mycol<ncols-28; mycol++){
396 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow-8][mycol];
397 }
398 }
409
410
411
412 memset(tmp_jTowersIDs_subset_FPGA, 0, sizeof tmp_jTowersIDs_subset_FPGA);
413
414 for (int myrow = 0; myrow<2; myrow++){
415 for (int mycol = ncols-24; mycol<ncols; mycol++){
416 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[2+myrow][mycol];
417 }
418 }
419 for (int myrow = 2; myrow<6; myrow++){
420 for (int mycol = ncols-24; mycol<ncols; mycol++){
421 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+2][mycol];
422 }
423 }
424 for (int myrow = 6; myrow<8; myrow++){
425 for (int mycol = ncols-24; mycol<ncols; mycol++){
426 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+2][mycol];
427 }
428 }
429 for (int myrow = 0; myrow<4; myrow++){
430 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
431 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[4+myrow][mycol];
432 }
433 }
434 for (int myrow = 4; myrow<12; myrow++){
435 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
436 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+4][mycol];
437 }
438 }
439 for (int myrow = 12; myrow<16; myrow++){
440 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
441 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+4][mycol];
442 }
443 }
444 for (int myrow = 0; myrow<8; myrow++){
445 for (int mycol = 0; mycol<ncols-28; mycol++){
446 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[8+myrow][mycol];
447 }
448 }
449 for (int myrow = 8; myrow<32; myrow++){
450 for (int mycol = 0; mycol<ncols-28; mycol++){
451 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+8][mycol];
452 }
453 }
462
463
464
465 memset(tmp_jTowersIDs_subset_FPGA, 0, sizeof tmp_jTowersIDs_subset_FPGA);
466
467 for (int myrow = 0; myrow<2; myrow++){
468 for (int mycol = ncols-24; mycol<ncols; mycol++){
469 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[6+myrow][mycol];
470 }
471 }
472 for (int myrow = 2; myrow<6; myrow++){
473 for (int mycol = ncols-24; mycol<ncols; mycol++){
474 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+6][mycol];
475 }
476 }
477 for (int myrow = 6; myrow<8; myrow++){
478 for (int mycol = ncols-24; mycol<ncols; mycol++){
479 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+6][mycol];
480 }
481 }
482 for (int myrow = 0; myrow<4; myrow++){
483 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
484 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[12+myrow][mycol];
485 }
486 }
487 for (int myrow = 4; myrow<12; myrow++){
488 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
489 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+12][mycol];
490 }
491 }
492 for (int myrow = 12; myrow<16; myrow++){
493 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
494 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+12][mycol];
495 }
496 }
497 for (int myrow = 0; myrow<8; myrow++){
498 for (int mycol = 0; mycol<ncols-28; mycol++){
499 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[24+myrow][mycol];
500 }
501 }
502 for (int myrow = 8; myrow<32; myrow++){
503 for (int mycol = 0; mycol<ncols-28; mycol++){
504 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+24][mycol];
505 }
506 }
507
518
519
520
521 memset(tmp_jTowersIDs_subset_FPGA, 0, sizeof tmp_jTowersIDs_subset_FPGA);
522
523 for (int myrow = 0; myrow<2; myrow++){
524 for (int mycol = ncols-24; mycol<ncols; mycol++){
525 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[10+myrow][mycol];
526 }
527 }
528 for (int myrow = 2; myrow<6; myrow++){
529 for (int mycol = ncols-24; mycol<ncols; mycol++){
530 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+10][mycol];
531 }
532 }
533 for (int myrow = 6; myrow<8; myrow++){
534 for (int mycol = ncols-24; mycol<ncols; mycol++){
535 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow-6][mycol];
536 }
537 }
538 for (int myrow = 0; myrow<4; myrow++){
539 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
540 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[20+myrow][mycol];
541 }
542 }
543 for (int myrow = 4; myrow<12; myrow++){
544 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
545 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow+20][mycol];
546 }
547 }
548 for (int myrow = 12; myrow<16; myrow++){
549 for (int mycol = ncols-28; mycol<ncols-24; mycol++){
550 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow-12][mycol];
551 }
552 }
553 for (int myrow = 0; myrow<24; myrow++){
554 for (int mycol = 0; mycol<ncols-28; mycol++){
555 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[40+myrow][mycol];
556 }
557 }
558 for (int myrow = 24; myrow<32; myrow++){
559 for (int mycol = 0; mycol<ncols-28; mycol++){
560 tmp_jTowersIDs_subset_FPGA[myrow][mycol] = tmp_jTowersIDs_subset[myrow-24][mycol];
561 }
562 }
563
572
573
574 return StatusCode::SUCCESS;
575
576 }