| 618 |
i = tof11_i |
i = tof11_i |
| 619 |
xdummy=tof11(left,i,iadc) |
xdummy=tof11(left,i,iadc) |
| 620 |
tof11(left,i,iadc) = tof11(left,i,iadc)*cos(theta13) |
tof11(left,i,iadc) = tof11(left,i,iadc)*cos(theta13) |
| 621 |
if (tof11(left,i,iadc).lt.1000) then |
if (tof11(left,i,iadc).lt.4095) then |
| 622 |
xkorr=adcx11(left,i,1)*exp(-yhelp/adcx11(left,i,2)) |
xkorr=adcx11(left,i,1)*exp(-yhelp/adcx11(left,i,2)) |
| 623 |
xkorr0=adcx11(left,i,1) |
xkorr0=adcx11(left,i,1) |
| 624 |
adctof_c(ch11a(i),hb11a(i))=tof11(left,i,iadc)/xkorr |
adctof_c(ch11a(i),hb11a(i))=tof11(left,i,iadc)/xkorr |
| 625 |
endif |
endif |
| 626 |
|
|
| 627 |
tof11(right,i,iadc) = tof11(right,i,iadc)*cos(theta13) |
tof11(right,i,iadc) = tof11(right,i,iadc)*cos(theta13) |
| 628 |
if (tof11(right,i,iadc).lt.1000) then |
if (tof11(right,i,iadc).lt.4095) then |
| 629 |
xkorr=adcx11(right,i,1)*exp(yhelp/adcx11(right,i,2)) |
xkorr=adcx11(right,i,1)*exp(yhelp/adcx11(right,i,2)) |
| 630 |
xkorr0=adcx11(right,i,1) |
xkorr0=adcx11(right,i,1) |
| 631 |
adctof_c(ch11b(i),hb11b(i))=tof11(right,i,iadc)/xkorr |
adctof_c(ch11b(i),hb11b(i))=tof11(right,i,iadc)/xkorr |
| 640 |
|
|
| 641 |
i = tof12_i |
i = tof12_i |
| 642 |
tof12(left,i,iadc) = tof12(left,i,iadc)*cos(theta13) |
tof12(left,i,iadc) = tof12(left,i,iadc)*cos(theta13) |
| 643 |
if (tof12(left,i,iadc).lt.1000) then |
if (tof12(left,i,iadc).lt.4095) then |
| 644 |
xkorr=adcx12(left,i,1)*exp(-xhelp/adcx12(left,i,2)) |
xkorr=adcx12(left,i,1)*exp(-xhelp/adcx12(left,i,2)) |
| 645 |
xkorr0=adcx12(left,i,1) |
xkorr0=adcx12(left,i,1) |
| 646 |
adctof_c(ch12a(i),hb12a(i))=tof12(left,i,iadc)/xkorr |
adctof_c(ch12a(i),hb12a(i))=tof12(left,i,iadc)/xkorr |
| 647 |
endif |
endif |
| 648 |
|
|
| 649 |
tof12(right,i,iadc) = tof12(right,i,iadc)*cos(theta13) |
tof12(right,i,iadc) = tof12(right,i,iadc)*cos(theta13) |
| 650 |
if (tof12(right,i,iadc).lt.1000) then |
if (tof12(right,i,iadc).lt.4095) then |
| 651 |
xkorr=adcx12(right,i,1)*exp(xhelp/adcx12(right,i,2)) |
xkorr=adcx12(right,i,1)*exp(xhelp/adcx12(right,i,2)) |
| 652 |
xkorr0=adcx12(right,i,1) |
xkorr0=adcx12(right,i,1) |
| 653 |
adctof_c(ch12b(i),hb12b(i))=tof12(right,i,iadc)/xkorr |
adctof_c(ch12b(i),hb12b(i))=tof12(right,i,iadc)/xkorr |
| 664 |
|
|
| 665 |
i = tof21_i |
i = tof21_i |
| 666 |
tof21(left,i,iadc) = tof21(left,i,iadc)*cos(theta13) |
tof21(left,i,iadc) = tof21(left,i,iadc)*cos(theta13) |
| 667 |
if (tof21(left,i,iadc).lt.1000) then |
if (tof21(left,i,iadc).lt.4095) then |
| 668 |
xkorr=adcx21(left,i,1)*exp(-xhelp/adcx21(left,i,2)) |
xkorr=adcx21(left,i,1)*exp(-xhelp/adcx21(left,i,2)) |
| 669 |
xkorr0=adcx21(left,i,1) |
xkorr0=adcx21(left,i,1) |
| 670 |
adctof_c(ch21a(i),hb21a(i))=tof21(left,i,iadc)/xkorr |
adctof_c(ch21a(i),hb21a(i))=tof21(left,i,iadc)/xkorr |
| 671 |
endif |
endif |
| 672 |
|
|
| 673 |
tof21(right,i,iadc) = tof21(right,i,iadc)*cos(theta13) |
tof21(right,i,iadc) = tof21(right,i,iadc)*cos(theta13) |
| 674 |
if (tof21(right,i,iadc).lt.1000) then |
if (tof21(right,i,iadc).lt.4095) then |
| 675 |
xkorr=adcx21(right,i,1)*exp(xhelp/adcx21(right,i,2)) |
xkorr=adcx21(right,i,1)*exp(xhelp/adcx21(right,i,2)) |
| 676 |
xkorr0=adcx21(right,i,1) |
xkorr0=adcx21(right,i,1) |
| 677 |
adctof_c(ch21b(i),hb21b(i))=tof21(right,i,iadc)/xkorr |
adctof_c(ch21b(i),hb21b(i))=tof21(right,i,iadc)/xkorr |
| 687 |
|
|
| 688 |
i = tof22_i |
i = tof22_i |
| 689 |
tof22(left,i,iadc) = tof22(left,i,iadc)*cos(theta13) |
tof22(left,i,iadc) = tof22(left,i,iadc)*cos(theta13) |
| 690 |
if (tof22(left,i,iadc).lt.1000) then |
if (tof22(left,i,iadc).lt.4095) then |
| 691 |
xkorr=adcx22(left,i,1)*exp(-yhelp/adcx22(left,i,2)) |
xkorr=adcx22(left,i,1)*exp(-yhelp/adcx22(left,i,2)) |
| 692 |
xkorr0=adcx22(left,i,1) |
xkorr0=adcx22(left,i,1) |
| 693 |
adctof_c(ch22a(i),hb22a(i))=tof22(left,i,iadc)/xkorr |
adctof_c(ch22a(i),hb22a(i))=tof22(left,i,iadc)/xkorr |
| 694 |
endif |
endif |
| 695 |
|
|
| 696 |
tof22(right,i,iadc) = tof22(right,i,iadc)*cos(theta13) |
tof22(right,i,iadc) = tof22(right,i,iadc)*cos(theta13) |
| 697 |
if (tof22(right,i,iadc).lt.1000) then |
if (tof22(right,i,iadc).lt.4095) then |
| 698 |
xkorr=adcx22(right,i,1)*exp(yhelp/adcx22(right,i,2)) |
xkorr=adcx22(right,i,1)*exp(yhelp/adcx22(right,i,2)) |
| 699 |
xkorr0=adcx22(right,i,1) |
xkorr0=adcx22(right,i,1) |
| 700 |
adctof_c(ch22b(i),hb22b(i))=tof22(right,i,iadc)/xkorr |
adctof_c(ch22b(i),hb22b(i))=tof22(right,i,iadc)/xkorr |
| 711 |
|
|
| 712 |
i = tof31_i |
i = tof31_i |
| 713 |
tof31(left,i,iadc) = tof31(left,i,iadc)*cos(theta13) |
tof31(left,i,iadc) = tof31(left,i,iadc)*cos(theta13) |
| 714 |
if (tof31(left,i,iadc).lt.1000) then |
if (tof31(left,i,iadc).lt.4095) then |
| 715 |
xkorr=adcx31(left,i,1)*exp(-yhelp/adcx31(left,i,2)) |
xkorr=adcx31(left,i,1)*exp(-yhelp/adcx31(left,i,2)) |
| 716 |
xkorr0=adcx31(left,i,1) |
xkorr0=adcx31(left,i,1) |
| 717 |
adctof_c(ch31a(i),hb31a(i))=tof31(left,i,iadc)/xkorr |
adctof_c(ch31a(i),hb31a(i))=tof31(left,i,iadc)/xkorr |
| 718 |
endif |
endif |
| 719 |
|
|
| 720 |
tof31(right,i,iadc) = tof31(right,i,iadc)*cos(theta13) |
tof31(right,i,iadc) = tof31(right,i,iadc)*cos(theta13) |
| 721 |
if (tof31(right,i,iadc).lt.1000) then |
if (tof31(right,i,iadc).lt.4095) then |
| 722 |
xkorr=adcx31(right,i,1)*exp(yhelp/adcx31(right,i,2)) |
xkorr=adcx31(right,i,1)*exp(yhelp/adcx31(right,i,2)) |
| 723 |
xkorr0=adcx31(right,i,1) |
xkorr0=adcx31(right,i,1) |
| 724 |
adctof_c(ch31b(i),hb31b(i))=tof31(right,i,iadc)/xkorr |
adctof_c(ch31b(i),hb31b(i))=tof31(right,i,iadc)/xkorr |
| 733 |
|
|
| 734 |
i = tof32_i |
i = tof32_i |
| 735 |
tof32(left,i,iadc) = tof32(left,i,iadc)*cos(theta13) |
tof32(left,i,iadc) = tof32(left,i,iadc)*cos(theta13) |
| 736 |
if (tof32(left,i,iadc).lt.1000) then |
if (tof32(left,i,iadc).lt.4095) then |
| 737 |
xkorr=adcx32(left,i,1)*exp(-xhelp/adcx32(left,i,2)) |
xkorr=adcx32(left,i,1)*exp(-xhelp/adcx32(left,i,2)) |
| 738 |
xkorr0=adcx32(left,i,1) |
xkorr0=adcx32(left,i,1) |
| 739 |
adctof_c(ch32a(i),hb32a(i))=tof32(left,i,iadc)/xkorr |
adctof_c(ch32a(i),hb32a(i))=tof32(left,i,iadc)/xkorr |
| 740 |
endif |
endif |
| 741 |
|
|
| 742 |
tof32(right,i,iadc) = tof32(right,i,iadc)*cos(theta13) |
tof32(right,i,iadc) = tof32(right,i,iadc)*cos(theta13) |
| 743 |
if (tof32(right,i,iadc).lt.1000) then |
if (tof32(right,i,iadc).lt.4095) then |
| 744 |
xkorr=adcx32(right,i,1)*exp(xhelp/adcx32(right,i,2)) |
xkorr=adcx32(right,i,1)*exp(xhelp/adcx32(right,i,2)) |
| 745 |
xkorr0=adcx32(right,i,1) |
xkorr0=adcx32(right,i,1) |
| 746 |
adctof_c(ch32b(i),hb32b(i))=tof32(right,i,iadc)/xkorr |
adctof_c(ch32b(i),hb32b(i))=tof32(right,i,iadc)/xkorr |