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.

uin=0.0<br />

vin=0.0<br />

win=1.0<br />

! Moving along z axis<br />

irin=2<br />

! Starts in region 2, could be 1<br />

! weight = 1 since no variance reduction used<br />

wtin=1.0<br />

! Weight = 1 since no variance reduction used<br />

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

! Step 5: hatch-call<br />

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

! Maximum total energy of an electron for this problem must be<br />

! defined before hatch call<br />

emaxe = ein<br />

write(6,130)<br />

130 format(/’ Start tutor1’/’ Call hatch to get cross-section data’)<br />

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

! Open files (before HATCH call)<br />

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

open(UNIT=KMPI,FILE=’pgs5job.pegs5dat’,STATUS=’old’)<br />

open(UNIT=KMPO,FILE=’egs5job.dummy’,STATUS=’unknown’)<br />

write(6,140)<br />

140 FORMAT(/,’ HATCH-call comes next’,/)<br />

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

call hatch<br />

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

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

! Close files (after HATCH call)<br />

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

close(UNIT=KMPI)<br />

close(UNIT=KMPO)<br />

! Pick up cross section data for ta<br />

write(6,150) ae(1)-RM, ap(1)<br />

150 format(/’ Knock-on electrons can be created and any electron ’,<br />

*’followed down to’ /T40,F8.3,’ MeV kinetic energy’/<br />

*’ Brem photons can be created and any photon followed down to’,<br />

*/T40,F8.3,’ MeV’)<br />

! Compton events can create electrons and photons below these cutoffs<br />

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

! Step 6: Initialization-for-howfar<br />

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

zbound=0.1<br />

144

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

Saved successfully!

Ooh no, something went wrong!