Changeset 17 in ZHANGProjects for ICOSIM/CPP/trunk/source/crystal_dan_FINAL_VERSION_CHvsVR.f
- Timestamp:
- Sep 30, 2014, 11:05:33 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ICOSIM/CPP/trunk/source/crystal_dan_FINAL_VERSION_CHvsVR.f
r16 r17 453 453 454 454 c write(*,*) "y = ", y 455 write(*,*) "before enter VR: x = ", x, " xp = ",xp456 write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC455 c write(*,*) "before enter VR: x = ", x, " xp = ",xp 456 c write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC 457 457 458 458 xp=xp+0.45*(xp/xpcrit+1)*Ang_avr … … 465 465 + xp ,yp,PC) 466 466 467 write(*,*) "after enter VR: x = ", x, " xp = ",xp468 write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC467 c write(*,*) "after enter VR: x = ", x, " xp = ",xp 468 c write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC 469 469 470 470 x = x + 0.5*s_length * xp … … 501 501 ! + DLRi(IS),xp ,yp,PC) 502 502 503 write(*,*) "before enter VR: x = ", x, " xp = ",xp504 write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC503 c write(*,*) "before enter VR: x = ", x, " xp = ",xp 504 c write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC 505 505 506 506 CALL CALC_ION_LOSS(IS,PC,s_length-Srefl,DESt) 507 507 508 write(*,*) "before enter VR: x = ", x, " xp = ",xp509 write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC510 write(*,*) "IS = ", IS, " NAM = ", NAM511 write(*,*) "s_length-Srefl = ",s_length-Srefl512 write(*,*) "DESt = ", DESt, " DLYi(IS) = ", DLYi(IS)513 write(*,*) "DLRi(IS) = ", DLRi(IS)508 c write(*,*) "before enter VR: x = ", x, " xp = ",xp 509 c write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC 510 c write(*,*) "IS = ", IS, " NAM = ", NAM 511 c write(*,*) "s_length-Srefl = ",s_length-Srefl 512 c write(*,*) "DESt = ", DESt, " DLYi(IS) = ", DLYi(IS) 513 c write(*,*) "DLRi(IS) = ", DLRi(IS) 514 514 515 515 CALL MOVE_AM_(IS,NAM,s_length-Srefl,DESt,DLYi(IS), 516 516 + DLRi(IS),xp ,yp,PC) 517 517 518 write(*,*) "after enter VR: x = ", x, " xp = ",xp519 write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC518 c write(*,*) "after enter VR: x = ", x, " xp = ",xp 519 c write(*,*) "y = ",y, "yp = ", yp, "PC = ", PC 520 520 521 521 x = x + 0.5 * xp * (s_length - Srefl) … … 618 618 c endif 619 619 c 620 WRITE(*,*)'Crystal process: ',PROC620 c WRITE(*,*)'Crystal process: ',PROC 621 621 c write(*,*)'xp_final :', xp 622 622 c WRITE(*,*)'Crystal process: ',PROC,'Chann Angle',Ch_angle/1000, + … … 838 838 839 839 840 write(*,*) "In Move_AM(): "840 c write(*,*) "In Move_AM(): " 841 841 842 842 843 843 xp=xp*1000 844 844 yp=yp*1000 845 write(*,*)'xp initial:', xp, 'yp initial', yp845 c write(*,*)'xp initial:', xp, 'yp initial', yp 846 846 C. DEI - dE/dx stoping energy 847 847 PC = PC - DEI*DZ ! energy lost because of ionization process[GeV] … … 849 849 C. DYA - rms of coloumb scattering 850 850 DYA = (13.6/PC)*SQRT(DZ/DLr) !MCS (mrad) 851 write(*,*)'dya= ',dya851 c write(*,*)'dya= ',dya 852 852 853 853 ran_x = RAN_GAUSS(1.) 854 write(*,*) "ran_x = ", ran_x854 c write(*,*) "ran_x = ", ran_x 855 855 856 856 ran_y = RAN_GAUSS(1.) 857 write(*,*) "ran_y = ", ran_y857 c write(*,*) "ran_y = ", ran_y 858 858 859 859 kxmcs = DYA*ran_x … … 867 867 868 868 c write(*,*) "ran_x = ", ran_x, "ran_y = ", ran_y 869 write(*,*) "kxmcs = ", kxmcs, "kymcs = ", kymcs870 write(*,*)'xp + kxmcs:', XP, 'yp + kxmcs', YP869 c write(*,*) "kxmcs = ", kxmcs, "kymcs = ", kymcs 870 c write(*,*)'xp + kxmcs:', XP, 'yp + kxmcs', YP 871 871 872 872 cc XP = XP+DYA*RAN_GAUSS(1.) … … 938 938 endif 939 939 940 write(*,*) "ichoix = ", ichoix941 write(*,*)'xp final:', xp, 'yp final', yp940 c write(*,*) "ichoix = ", ichoix 941 c write(*,*)'xp final:', xp, 'yp final', yp 942 942 943 943 !---------- calculate the related kick ----------- … … 980 980 981 981 982 write(*,*) "tx = ", tx, " tz = ", tz982 c write(*,*) "tx = ", tx, " tz = ", tz 983 983 984 984 XP = XP + tx … … 990 990 yp=yp/1000 991 991 992 write(*,*)'xp final:', xp, 'yp final', yp992 c write(*,*)'xp final:', xp, 'yp final', yp 993 993 !----------------------------------------------- 994 994 ! print out the energy loss and process experienced
Note: See TracChangeset
for help on using the changeset viewer.