922., 904., 866., 842., 860., 824., 726., 714.,688., 600., 587., 610., 497., 485., 481., 395.,403., 385., 334., 363., 343., 348., 259., 270.,247., 247., 262., 207., 182., 210., 194., 152.,130., 114., 150., 113., 139., 90., 76., 59.,52., 34., 34., 31., 11., 23., 12., 12.,4.201 0.0005 (MeV) X 0.0 nsebin=2! Number <strong>of</strong> source energy binsread(2,*) (esbin(i),i=1,nsebin)read(2,*) (espdf(i),i=1,nsebin)read(2,*) nsebin! Number <strong>of</strong> source energy binsread(2,*) deltaes! Source energy bin width in MeVread(2,*) (espdf(i),i=1,nsebin) 3 cdf (cdf escdf(1)=espdf(1)/tnumdo ie=2,nsebinescdf(ie)=escdf(ie-1)+espdf(ie)/tnumend donsebin=nsebin+1esbin(1)=0.d0escdf(1)=espdf(1)/tnumdo ie=2,nsebinesbin(ie)=(ie-1)*deltaesescdf(ie)=escdf(ie-1)+espdf(ie)/tnumend do fexps2s=0.D0fexps2s=0.D0do ie=1,nsebinsaspec(ie)=0.D0end do 3 "egs5run""egs5run db""egs5job.exe"() 20
call randomset(rnnow)do ie=1,nsebinif(rnnow.le.escdf(ie)) go to 1000end do1000 ekein=esbin(ie)call randomset(rnnow)do ie=1,nsebinif(rnnow.le.escdf(ie)) go to 1000end do1000 if (ie.gt.nsebin) thenie=nsebinend ifsaspec(ie)=saspec(ie)+1.D0if (escdf(ie).eq.escdf(ie-1)) thenekein=esbin(ie-1)elseekein=esbin(ie-1)+(rnnow-escdf(ie-1))*(esbin(ie)-esbin(ie-1))/* (escdf(ie)-escdf(ie-1))end if !-----------------------------! Sampled source spectrum!-----------------------------!-----------------------------! Sampled source spectrum!-----------------------------do ie=2,nsebinsaspec(ie)=saspec(ie)/float(ncases)end dowrite(6,272)272 FORMAT(/' Comparison between sampled spectrum and pdf'* /23X,' Sampled pdf ',25X,' Sampled pdf '* )do ie=2,nsebin,2if(ie.eq.nsebin) thenwrite(6,274) esbin(ie),saspec(ie),escdf(ie)-escdf(ie-1)274 FORMAT(1X,G9.3,' MeV(upper)-- ',2G12.5)elsewrite(6,276) esbin(ie),saspec(ie),escdf(ie)-escdf(ie-1),* esbin(ie+1), saspec(ie+1),escdf(ie+1)-escdf(ie)276 FORMAT(1X,G9.3,' MeV(upper)-- ',2G12.5,3X, ' ',G9.3,* ' MeV(upper)-- ',2G12.5)end ifend do 280 FORMAT(/' Absorbed energy <strong>inside</strong> <strong>phantom</strong> for Co-60 photon'/280 FORMAT(/' Absorbed energy <strong>inside</strong> <strong>phantom</strong> for 100kV X-ray'/5. uc<strong>phantom</strong>cgv2.inp 21
- Page 1 and 2: KEK Internal 2011-8December 2011R/D
- Page 3 and 4: Lecture Notes ofDose distribution c
- Page 5 and 6: 2.8.1 Statistical uncertainty . . .
- Page 7 and 8: 1 ucxyz phantom.f ucxyz phantom.f
- Page 9 and 10: common/score/! Variables to score*
- Page 11 and 12: emaxe = 0.D0 ! dummy value to extra
- Page 13 and 14: vin=dsin(phai)*sinthdis=sposi/winxp
- Page 15 and 16: 2.9 Step 9: Output of results ()wr
- Page 17 and 18: ipeangswiedgeswiaugerswirayswipolar
- Page 19 and 20: ! ---------------------------------
- Page 21 and 22: end ifend ifend ifdnear(np)=dnearlr
- Page 23 and 24: 4 ucxyz phantom.f (egs5job.out, e
- Page 25: 4.2 1. cp ucxyz phantom1.f ucxyz ph
- Page 29 and 30: Linux 4 ucxyz phantom3 25 Enter
- Page 31 and 32: Linux ucxyz phantom5 , 4 25 "Doe
- Page 33 and 34: 1 Outlines of sample user code ucxy
- Page 35 and 36: common/score/! Variables to score*
- Page 37 and 38: Output the material data and parame
- Page 39 and 40: totke = totke + availkelatchi=0! Ke
- Page 41 and 42: * rhor(irl),dose(i,j,kkk),doseun(i,
- Page 43 and 44: Ifahistorynumberislessthanmaxpict,
- Page 45 and 46: 3 Exercise problems3.1 Problem 1 :
- Page 47 and 48: ! Source position from phantom surf
- Page 49 and 50: At the above data, a first 201 is t
- Page 51 and 52: &INP AE=0.521,AP=0.0100,UE=2.011,UP
- Page 53 and 54: (b) Add new material (Iron).ChangeA
- Page 55 and 56: !**********************************
- Page 57 and 58: !----------------------------------
- Page 59 and 60: faexp=0.D0faexps=0.D0faexp2s=0.D0fe
- Page 61 and 62: ! =======================if (iwatch
- Page 63 and 64: do k=kdosl(idose),kdosu(idose)do j=
- Page 65 and 66: ! Record 10a ipeangsw, Switches for
- Page 67 and 68: if (maxz.gt.LKMAX) thenwrite(ifto,'
- Page 69 and 70: zbound(in+1)=zbound(in)+widthend do
- Page 71 and 72: if(idosu(idgrp).le.0 .or. idosu(idg
- Page 73 and 74: !--------------------------------if
- Page 75 and 76: end ifend ifelse if (u(np) .lt. 0.0