28.11.2014 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

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.

endif<br />

if(loop.lt.3) then<br />

write(6,120) loop,medarr(loop)<br />

120 FORMAT(’ Using media number ’,i1,’, ’,a24,’ for this run’,/)<br />

endif<br />

!-----------------------------------------------------------------------<br />

! Step 3: Pre-hatch-call-initialization<br />

!-----------------------------------------------------------------------<br />

nreg=3<br />

! nreg : number of region<br />

med(1)=0<br />

med(3)=0<br />

if(loop.eq.2) then<br />

med(2)=2<br />

else<br />

med(2)=1<br />

endif<br />

! Vacuum in regions 1 and 3, Si in region 2<br />

ecut(2)=0.700<br />

! Terminate electron histories at .700 MeV in the plate<br />

pcut(2)=0.010<br />

! Terminate photon histories at 0.01 MeV in the plate<br />

! Only needed for region 2 since no transport elsewhere<br />

! ecut is total energy = 0.189 MeV kinetic energy<br />

! --------------------------------------------------------<br />

! Random number seeds. Must be defined before call hatch<br />

! or defaults will be used. inseed (1- 2^31)<br />

! --------------------------------------------------------<br />

luxlev=1<br />

inseed=1<br />

kount=0<br />

mkount=0<br />

do i = 1, 25<br />

isdext(i) = 0<br />

end do<br />

write(6,150) inseed<br />

150 FORMAT(/,’ inseed=’,I12,5X,<br />

* ’ (seed for generating unique sequences of Ranlux)’)<br />

! =============<br />

call rluxinit<br />

! =============<br />

! Initialize the Ranlux random-number generator<br />

!-----------------------------------------------------------------------<br />

! Step 4: Determination-of-incident-particle-parameters<br />

!-----------------------------------------------------------------------<br />

159

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

Saved successfully!

Ooh no, something went wrong!