446 {
447 MsgStream log(
msgSvc(),name());
448 log << MSG::INFO << "TestMapping finalize()" << endreq;
449
450 gs_L1_S1 =
new TGraph(
nstrip_L1_x, stripid_L1_x, s_L1_S1);
451 gphi_L1_S1 =
new TGraph(
nstrip_L1_x, stripid_L1_x, phi_L1_S1);
452 gv_L1_S1 =
new TGraph(
nstrip_L1_v, stripid_L1_v, v_L1_S1);
453
454 gs_L2_S1 =
new TGraph(
nstrip_L2_x, stripid_L2_x, s_L2_S1);
455 gphi_L2_S1 =
new TGraph(
nstrip_L2_x, stripid_L2_x, phi_L2_S1);
456 gv_L2_S1 =
new TGraph(
nstrip_L2_v, stripid_L2_v, v_L2_S1);
457 gs_L2_S2 =
new TGraph(
nstrip_L2_x, stripid_L2_x, s_L2_S2);
458 gphi_L2_S2 =
new TGraph(
nstrip_L2_x, stripid_L2_x, phi_L2_S2);
459 gv_L2_S2 =
new TGraph(
nstrip_L2_v, stripid_L2_v, v_L2_S2);
460
461 gs_L3_S1 =
new TGraph(
nstrip_L3_x, stripid_L3_x, s_L3_S1);
462 gphi_L3_S1 =
new TGraph(
nstrip_L3_x, stripid_L3_x, phi_L3_S1);
463 gv_L3_S1 =
new TGraph(
nstrip_L3_v, stripid_L3_v, v_L3_S1);
464 gs_L3_S2 =
new TGraph(
nstrip_L3_x, stripid_L3_x, s_L3_S2);
465 gphi_L3_S2 =
new TGraph(
nstrip_L3_x, stripid_L3_x, phi_L3_S2);
466 gv_L3_S2 =
new TGraph(
nstrip_L3_v, stripid_L3_v, v_L3_S2);
467
468 gs_L1_S1->SetName("gs_L1_S1");
469 gphi_L1_S1->SetName("gphi_L1_S1");
470 gv_L1_S1->SetName("gv_L1_S1");
471
472 gs_L2_S1->SetName("gs_L2_S1");
473 gphi_L2_S1->SetName("gphi_L2_S1");
474 gv_L2_S1->SetName("gv_L2_S1");
475 gs_L2_S2->SetName("gs_L2_S2");
476 gphi_L2_S2->SetName("gphi_L2_S2");
477 gv_L2_S2->SetName("gv_L2_S2");
478
479 gs_L3_S1->SetName("gs_L3_S1");
480 gphi_L3_S1->SetName("gphi_L3_S1");
481 gv_L3_S1->SetName("gv_L3_S1");
482 gs_L3_S2->SetName("gs_L3_S2");
483 gphi_L3_S2->SetName("gphi_L3_S2");
484 gv_L3_S2->SetName("gv_L3_S2");
485
486 gs_L1_S1->Write();
487 gphi_L1_S1->Write();
488 gv_L1_S1->Write();
489
490 gs_L2_S1->Write();
491 gphi_L2_S1->Write();
492 gv_L2_S1->Write();
493 gs_L2_S2->Write();
494 gphi_L2_S2->Write();
495 gv_L2_S2->Write();
496
497 gs_L3_S1->Write();
498 gphi_L3_S1->Write();
499 gv_L3_S1->Write();
500 gs_L3_S2->Write();
501 gphi_L3_S2->Write();
502 gv_L3_S2->Write();
503
504
505 gx_runner_L1_S1 =
new TGraph(
nphistep, phi_runner_L1_S1, x_runner_L1_S1);
506 gy_runner_L1_S1 =
new TGraph(
nphistep, phi_runner_L1_S1, y_runner_L1_S1);
507 gX_ID_L1_S1 =
new TGraph(
nphistep, phi_runner_L1_S1, X_ID_L1_S1);
508 gV_ID_atzmin_L1_S1 =
new TGraph(
nphistep, phi_runner_L1_S1, V_ID_atzmin_L1_S1);
509 gV_ID_atzmax_L1_S1 =
new TGraph(
nphistep, phi_runner_L1_S1, V_ID_atzmax_L1_S1);
510 gV_ID_atphi0_L1_S1 =
new TGraph(
nzstep, z_runner_L1_S1, V_ID_atphi0_L1_S1);
511
512 gx_runner_L2_S1 =
new TGraph(0.5*
nphistep, phi_runner_L2_S1, x_runner_L2_S1);
513 gy_runner_L2_S1 =
new TGraph(0.5*
nphistep, phi_runner_L2_S1, y_runner_L2_S1);
514 gX_ID_L2_S1 =
new TGraph(0.5*
nphistep, phi_runner_L2_S1, X_ID_L2_S1);
515 gV_ID_atzmin_L2_S1 =
new TGraph(0.5*
nphistep, phi_runner_L2_S1, V_ID_atzmin_L2_S1);
516 gV_ID_atzmax_L2_S1 =
new TGraph(0.5*
nphistep, phi_runner_L2_S1, V_ID_atzmax_L2_S1);
517 gV_ID_atphi0_L2_S1 =
new TGraph(
nzstep, z_runner_L2_S1, V_ID_atphi0_L2_S1);
518
519 gx_runner_L2_S2 =
new TGraph(0.5*
nphistep, phi_runner_L2_S2, x_runner_L2_S2);
520 gy_runner_L2_S2 =
new TGraph(0.5*
nphistep, phi_runner_L2_S2, y_runner_L2_S2);
521 gX_ID_L2_S2 =
new TGraph(0.5*
nphistep, phi_runner_L2_S2, X_ID_L2_S2);
522 gV_ID_atzmin_L2_S2 =
new TGraph(0.5*
nphistep, phi_runner_L2_S2, V_ID_atzmin_L2_S2);
523 gV_ID_atzmax_L2_S2 =
new TGraph(0.5*
nphistep, phi_runner_L2_S2, V_ID_atzmax_L2_S2);
524 gV_ID_atphi0_L2_S2 =
new TGraph(
nzstep, z_runner_L2_S2, V_ID_atphi0_L2_S2);
525
526 gx_runner_L3_S1 =
new TGraph(0.5*
nphistep, phi_runner_L3_S1, x_runner_L3_S1);
527 gy_runner_L3_S1 =
new TGraph(0.5*
nphistep, phi_runner_L3_S1, y_runner_L3_S1);
528 gX_ID_L3_S1 =
new TGraph(0.5*
nphistep, phi_runner_L3_S1, X_ID_L3_S1);
529 gV_ID_atzmin_L3_S1 =
new TGraph(0.5*
nphistep, phi_runner_L3_S1, V_ID_atzmin_L3_S1);
530 gV_ID_atzmax_L3_S1 =
new TGraph(0.5*
nphistep, phi_runner_L3_S1, V_ID_atzmax_L3_S1);
531 gV_ID_atphi0_L3_S1 =
new TGraph(
nzstep, z_runner_L3_S1, V_ID_atphi0_L3_S1);
532
533 gx_runner_L3_S2 =
new TGraph(0.5*
nphistep, phi_runner_L3_S2, x_runner_L3_S2);
534 gy_runner_L3_S2 =
new TGraph(0.5*
nphistep, phi_runner_L3_S2, y_runner_L3_S2);
535 gX_ID_L3_S2 =
new TGraph(0.5*
nphistep, phi_runner_L3_S2, X_ID_L3_S2);
536 gV_ID_atzmin_L3_S2 =
new TGraph(0.5*
nphistep, phi_runner_L3_S2, V_ID_atzmin_L3_S2);
537 gV_ID_atzmax_L3_S2 =
new TGraph(0.5*
nphistep, phi_runner_L3_S2, V_ID_atzmax_L3_S2);
538 gV_ID_atphi0_L3_S2 =
new TGraph(
nzstep, z_runner_L3_S2, V_ID_atphi0_L3_S2);
539
540
541 gx_runner_L1_S1->SetName("gx_runner_L1_S1");
542 gy_runner_L1_S1->SetName("gy_runner_L1_S1");
543 gX_ID_L1_S1->SetName("gX_ID_L1_S1");
544 gV_ID_atzmin_L1_S1->SetName("gV_ID_atzmin_L1_S1");
545 gV_ID_atzmax_L1_S1->SetName("gV_ID_atzmax_L1_S1");
546 gV_ID_atphi0_L1_S1->SetName("gV_ID_atphi0_L1_S1");
547
548 gx_runner_L2_S1->SetName("gx_runner_L2_S1");
549 gy_runner_L2_S1->SetName("gy_runner_L2_S1");
550 gX_ID_L2_S1->SetName("gX_ID_L2_S1");
551 gV_ID_atzmin_L2_S1->SetName("gV_ID_atzmin_L2_S1");
552 gV_ID_atzmax_L2_S1->SetName("gV_ID_atzmax_L2_S1");
553 gV_ID_atphi0_L2_S1->SetName("gV_ID_atphi0_L2_S1");
554
555 gx_runner_L2_S2->SetName("gx_runner_L2_S2");
556 gy_runner_L2_S2->SetName("gy_runner_L2_S2");
557 gX_ID_L2_S2->SetName("gX_ID_L2_S2");
558 gV_ID_atzmin_L2_S2->SetName("gV_ID_atzmin_L2_S2");
559 gV_ID_atzmax_L2_S2->SetName("gV_ID_atzmax_L2_S2");
560 gV_ID_atphi0_L2_S2->SetName("gV_ID_atphi0_L2_S2");
561
562 gx_runner_L3_S1->SetName("gx_runner_L3_S1");
563 gy_runner_L3_S1->SetName("gy_runner_L3_S1");
564 gX_ID_L3_S1->SetName("gX_ID_L3_S1");
565 gV_ID_atzmin_L3_S1->SetName("gV_ID_atzmin_L3_S1");
566 gV_ID_atzmax_L3_S1->SetName("gV_ID_atzmax_L3_S1");
567 gV_ID_atphi0_L3_S1->SetName("gV_ID_atphi0_L3_S1");
568
569 gx_runner_L3_S2->SetName("gx_runner_L3_S2");
570 gy_runner_L3_S2->SetName("gy_runner_L3_S2");
571 gX_ID_L3_S2->SetName("gX_ID_L3_S2");
572 gV_ID_atzmin_L3_S2->SetName("gV_ID_atzmin_L3_S2");
573 gV_ID_atzmax_L3_S2->SetName("gV_ID_atzmax_L3_S2");
574 gV_ID_atphi0_L3_S2->SetName("gV_ID_atphi0_L3_S2");
575
576 gx_runner_L1_S1->Write();
577 gy_runner_L1_S1->Write();
578 gX_ID_L1_S1->Write();
579 gV_ID_atzmin_L1_S1->Write();
580 gV_ID_atzmax_L1_S1->Write();
581 gV_ID_atphi0_L1_S1->Write();
582
583 gx_runner_L2_S1->Write();
584 gy_runner_L2_S1->Write();
585 gX_ID_L2_S1->Write();
586 gV_ID_atzmin_L2_S1->Write();
587 gV_ID_atzmax_L2_S1->Write();
588 gV_ID_atphi0_L2_S1->Write();
589
590 gx_runner_L2_S2->Write();
591 gy_runner_L2_S2->Write();
592 gX_ID_L2_S2->Write();
593 gV_ID_atzmin_L2_S2->Write();
594 gV_ID_atzmax_L2_S2->Write();
595 gV_ID_atphi0_L2_S2->Write();
596
597 gx_runner_L3_S1->Write();
598 gy_runner_L3_S1->Write();
599 gX_ID_L3_S1->Write();
600 gV_ID_atzmin_L3_S1->Write();
601 gV_ID_atzmax_L3_S1->Write();
602 gV_ID_atphi0_L3_S1->Write();
603
604 gx_runner_L3_S2->Write();
605 gy_runner_L3_S2->Write();
606 gX_ID_L3_S2->Write();
607 gV_ID_atzmin_L3_S2->Write();
608 gV_ID_atzmax_L3_S2->Write();
609 gV_ID_atphi0_L3_S2->Write();
610
611
612
613
614 gx_L1_GRAAL =
new TGraph(
nstrip_L1_x, stripid_L1_x_GRAAL, x_L1_GRAAL);
615 gz_L1_GRAAL =
new TGraph(
nstrip_L1_x, stripid_L1_x_GRAAL, z_L1_GRAAL);
616 gphi_L1_GRAAL =
new TGraph(
nstrip_L1_x, stripid_L1_x_GRAAL, phi_L1_GRAAL);
617 gv_L1_GRAAL =
new TGraph(
nstrip_L1_v, stripid_L1_v_GRAAL, v_L1_GRAAL);
618
619 gx_L2_GRAAL =
new TGraph(2*
nstrip_L2_x, stripid_L2_x_GRAAL, x_L2_GRAAL);
620 gz_L2_GRAAL =
new TGraph(2*
nstrip_L2_x, stripid_L2_x_GRAAL, z_L2_GRAAL);
621 gphi_L2_GRAAL =
new TGraph(2*
nstrip_L2_x, stripid_L2_x_GRAAL, phi_L2_GRAAL);
622 gv_L2_GRAAL =
new TGraph(2*
nstrip_L2_v, stripid_L2_v_GRAAL, v_L2_GRAAL);
623
624 gx_L3_GRAAL =
new TGraph(2*
nstrip_L3_x, stripid_L3_x_GRAAL, x_L3_GRAAL);
625 gz_L3_GRAAL =
new TGraph(2*
nstrip_L3_x, stripid_L3_x_GRAAL, z_L3_GRAAL);
626 gphi_L3_GRAAL =
new TGraph(2*
nstrip_L3_x, stripid_L3_x_GRAAL, phi_L3_GRAAL);
627 gv_L3_GRAAL =
new TGraph(2*
nstrip_L3_v, stripid_L3_v_GRAAL, v_L3_GRAAL);
628
629 gx_L1_GRAAL->SetName("gx_L1_GRAAL");
630 gz_L1_GRAAL->SetName("gz_L1_GRAAL");
631 gphi_L1_GRAAL->SetName("gphi_L1_GRAAL");
632 gv_L1_GRAAL->SetName("gv_L1_GRAAL");
633
634 gx_L2_GRAAL->SetName("gx_L2_GRAAL");
635 gz_L2_GRAAL->SetName("gz_L2_GRAAL");
636 gphi_L2_GRAAL->SetName("gphi_L2_GRAAL");
637 gv_L2_GRAAL->SetName("gv_L2_GRAAL");
638
639 gx_L3_GRAAL->SetName("gx_L3_GRAAL");
640 gz_L3_GRAAL->SetName("gz_L3_GRAAL");
641 gphi_L3_GRAAL->SetName("gphi_L3_GRAAL");
642 gv_L3_GRAAL->SetName("gv_L3_GRAAL");
643
644 gx_L1_GRAAL->Write();
645 gz_L1_GRAAL->Write();
646 gphi_L1_GRAAL->Write();
647 gv_L1_GRAAL->Write();
648
649 gx_L2_GRAAL->Write();
650 gz_L2_GRAAL->Write();
651 gphi_L2_GRAAL->Write();
652 gv_L2_GRAAL->Write();
653
654 gx_L3_GRAAL->Write();
655 gz_L3_GRAAL->Write();
656 gphi_L3_GRAAL->Write();
657 gv_L3_GRAAL->Write();
658
659
660 gphi_L1_GRAAL_corr =
new TGraph(
nstrip_L1_x, stripid_L1_x_GRAAL, phi_L1_GRAAL_corr);
661 gphi_L2_GRAAL_corr =
new TGraph(2*
nstrip_L2_x, stripid_L2_x_GRAAL, phi_L2_GRAAL_corr);
662 gphi_L3_GRAAL_corr =
new TGraph(2*
nstrip_L3_x, stripid_L3_x_GRAAL, phi_L3_GRAAL_corr);
663
664 gphi_L1_GRAAL_corr->SetName("gphi_L1_GRAAL_corr");
665 gphi_L2_GRAAL_corr->SetName("gphi_L2_GRAAL_corr");
666 gphi_L3_GRAAL_corr->SetName("gphi_L3_GRAAL_corr");
667
668 gphi_L1_GRAAL_corr->Write();
669 gphi_L2_GRAAL_corr->Write();
670 gphi_L3_GRAAL_corr->Write();
671
672
673
674 output->Write();
675 output->Close();
676
677 return StatusCode::SUCCESS;
678}