24 |
C inserted. In the old code one would still calculate a |
C inserted. In the old code one would still calculate a |
25 |
C xtofpos-value even if the TDC information was missing |
C xtofpos-value even if the TDC information was missing |
26 |
C jan-07 WM: flag for PMTs #10 and #35 added, TDC=819 due to bit-shift |
C jan-07 WM: flag for PMTs #10 and #35 added, TDC=819 due to bit-shift |
27 |
C jan-05 WM: bug fixed: claculation of zenith angles using DOTRACK2 |
C jan-05 WM: bug fixed: calculation of zenith angles using DOTRACK2 |
28 |
C was incorrect |
C was incorrect |
29 |
|
C jan-07 WM: bug fixed: in some cases tdc_tw was calculated due to a |
30 |
|
C leftover "xhelp" value |
31 |
C**************************************************************************** |
C**************************************************************************** |
32 |
IMPLICIT NONE |
IMPLICIT NONE |
33 |
C |
C |
858 |
C--------------------Time walk correction ------------------------- |
C--------------------Time walk correction ------------------------- |
859 |
C-------------------------------------------------------------------- |
C-------------------------------------------------------------------- |
860 |
|
|
861 |
|
|
862 |
DO i=1,8 |
DO i=1,8 |
863 |
|
xhelp= 0. |
864 |
xhelp_a = tof11(left,i,iadc) |
xhelp_a = tof11(left,i,iadc) |
865 |
xhelp_t = tof11(left,i,itdc) |
xhelp_t = tof11(left,i,itdc) |
866 |
if(xhelp_a<4095) xhelp = tw11(left,i)/sqrt(xhelp_a) |
if(xhelp_a<4095) xhelp = tw11(left,i)/sqrt(xhelp_a) |
874 |
ENDDO |
ENDDO |
875 |
|
|
876 |
DO i=1,6 |
DO i=1,6 |
877 |
|
xhelp= 0. |
878 |
xhelp_a = tof12(left,i,iadc) |
xhelp_a = tof12(left,i,iadc) |
879 |
xhelp_t = tof12(left,i,itdc) |
xhelp_t = tof12(left,i,itdc) |
880 |
if(xhelp_a<4095) xhelp = tw12(left,i)/sqrt(xhelp_a) |
if(xhelp_a<4095) xhelp = tw12(left,i)/sqrt(xhelp_a) |
888 |
ENDDO |
ENDDO |
889 |
C---- |
C---- |
890 |
DO i=1,2 |
DO i=1,2 |
891 |
|
xhelp= 0. |
892 |
xhelp_a = tof21(left,i,iadc) |
xhelp_a = tof21(left,i,iadc) |
893 |
xhelp_t = tof21(left,i,itdc) |
xhelp_t = tof21(left,i,itdc) |
894 |
if(xhelp_a<4095) xhelp = tw21(left,i)/sqrt(xhelp_a) |
if(xhelp_a<4095) xhelp = tw21(left,i)/sqrt(xhelp_a) |
902 |
ENDDO |
ENDDO |
903 |
|
|
904 |
DO i=1,2 |
DO i=1,2 |
905 |
|
xhelp= 0. |
906 |
xhelp_a = tof22(left,i,iadc) |
xhelp_a = tof22(left,i,iadc) |
907 |
xhelp_t = tof22(left,i,itdc) |
xhelp_t = tof22(left,i,itdc) |
908 |
if(xhelp_a<4095) xhelp = tw22(left,i)/sqrt(xhelp_a) |
if(xhelp_a<4095) xhelp = tw22(left,i)/sqrt(xhelp_a) |
917 |
C---- |
C---- |
918 |
|
|
919 |
DO i=1,3 |
DO i=1,3 |
920 |
|
xhelp= 0. |
921 |
xhelp_a = tof31(left,i,iadc) |
xhelp_a = tof31(left,i,iadc) |
922 |
xhelp_t = tof31(left,i,itdc) |
xhelp_t = tof31(left,i,itdc) |
923 |
if(xhelp_a<4095) xhelp = tw31(left,i)/sqrt(xhelp_a) |
if(xhelp_a<4095) xhelp = tw31(left,i)/sqrt(xhelp_a) |
931 |
ENDDO |
ENDDO |
932 |
|
|
933 |
DO i=1,3 |
DO i=1,3 |
934 |
|
xhelp= 0. |
935 |
xhelp_a = tof32(left,i,iadc) |
xhelp_a = tof32(left,i,iadc) |
936 |
xhelp_t = tof32(left,i,itdc) |
xhelp_t = tof32(left,i,itdc) |
937 |
if(xhelp_a<4095) xhelp = tw32(left,i)/sqrt(xhelp_a) |
if(xhelp_a<4095) xhelp = tw32(left,i)/sqrt(xhelp_a) |