12.07.2015 Views

cg Version

cg Version

cg Version

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

nreg=izonin! Read material for each region from egs5job.dataread(4,*) (med(i),i=1,nreg)! Set option except vacuum regiondo i=1,nreg-1if(med(i).ne.0) theniphter(i) = 1 ! Switches for PE-angle samplingiedgfl(i) = 1 ! K & L-edge fluorescenceiauger(i) = 0 ! K & L-Augeriraylr(i) = 0 ! Rayleigh scatteringlpolar(i) = 0 ! Linearly-polarized photon scatteringincohr(i) = 0 ! S/Z rejectioniprofr(i) = 0 ! Doppler broadeningend ifend doimpacr(i) = 0! Electron impact ionization! --------------------------------------------------------! Random number seeds. Must be defined before call hatch! or defaults will be used. inseed (1- 2^31)! --------------------------------------------------------luxlev = 1inseed=1write(6,120) inseed120 FORMAT(/,' inseed=',I12,5X,* ' (seed for generating unique sequences of Ranlux)')! =============call rluxinit! =============! Initialize the Ranlux random-number generator!-----------------------------------------------------------------------! Step 4: Determination-of-incident-particle-parameters!-----------------------------------------------------------------------! Define initial variables for incident particle normally incident! on the slabiqin=0! Incident particle charge - photonsekein=1.253 ! Incident particle kinetic energyxin=0.0! Source positionyin=0.0zin=-5.0uin=0.0! Moving along z axisvin=0.0win=1.0irin=0! Starting region (0: Automatic search in CG)wtin=1.0! Weight = 1 since no variance reduction used! pdf data for many sourcedeltae=0.05 ! Energy bin of response!-----------------------------------------! Get source region from <strong>cg</strong> input data!-----------------------------------------!if(irin.le.0.or.irin.gt.nreg) thencall srzone(xin,yin,zin,iqin+2,0,irin)if(irin.le.0.or.irin.ge.nreg) thenwrite(6,fmt="(' Stopped in MAIN. irin = ',i5)")irinstopend ifcall rstnxt(iqin+2,0,irin)end if!-----------------------------------------------------------------------! Step 5: hatch-call!-----------------------------------------------------------------------!-----------------------------------------------------------------------emaxe = 0.D0 ! dummy value to extract min(UE,UP+RM).write(6,130)130 format(/' Call hatch to get cross-section data')! ------------------------------! Open files (before HATCH call)! ------------------------------open(UNIT=KMPI,FILE='pgs5job.pegs5dat',STATUS='old')open(UNIT=KMPO,FILE='egs5job.dummy',STATUS='unknown')53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!