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.

end do<br />

end do<br />

! nmed and dunit default to 1, i.e. one medium and we work in cm<br />

chard(1) = 0.5d0 ! optional, but recommended to invoke<br />

! automatic step-size control<br />

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

! Run KEK version of P<strong>EGS5</strong> before calling HATCH<br />

! (method was developed by Y. Namito - 010306)<br />

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

write(6,100)<br />

100 FORMAT(’ P<strong>EGS5</strong>-call comes next’/)<br />

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

call pegs5<br />

! ==========<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 />

med(2)=1<br />

! Regions 1 and 3 are vacuum, region 2, H2O<br />

ecut(2)=1.5<br />

! Terminate electron histories at 1.5 MeV in the slab<br />

pcut(2)=0.010<br />

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

iraylr(2)=1<br />

! Turn on rayleigh scattering in the slab<br />

! Note, above three parameters need to be set for all regions in which<br />

! there is particle transport - just region 2 in this case<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 />

write(6,120) inseed<br />

120 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 />

169

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

Saved successfully!

Ooh no, something went wrong!