include 'include/egs5_h.f'include 'include/egs5_epcont.f'include 'include/egs5_misc.f'include 'include/egs5_stack.f'include 'include/egs5_useful.f'include 'auxcommons/aux_h.f'include 'auxcommons/etaly1.f'include 'auxcommons/lines.f'include 'auxcommons/ntaly1.f'include 'auxcommons/watch.f'common/totals/* depe,deltae,spec(3,50),maxpictreal*8 depe,deltae,specinteger maxpictinteger* iargreal*8* edepwtinteger* ie,iql,irl,ntype! ------------------------! Set some local variables! ------------------------irl = ir(np)iql = iq(np)edepwt = edep*wt(np)! Main EGS "header" file! COMMONs required by EGS5 code! Auxiliary-code "header" file! Auxiliary-code COMMONs! Variables to score! Arguments! Local variables! -----------------------------------------------------------! Keep track of energy deposition (for conservation purposes)! -----------------------------------------------------------if (iarg .lt. 5) thenesum(iql+2,irl,iarg+1) = esum(iql+2,irl,iarg+1) + edepwtnsum(iql+2,irl,iarg+1) = nsum(iql+2,irl,iarg+1) + 1end if! -----------------------------------------------------------------! Print out particle transport information (if switch is turned on)! -----------------------------------------------------------------! ========================if (iwatch .gt. 0) call swatch(iarg,iwatch)! ========================if(iarg .ge. 5) return! ----------------------------------------------! Score energy deposition inside NaI detector! ----------------------------------------------if (med(irl) .eq. 1) thendepe = depe + edepwt! ----------------------------------------------------! Score particle information if it enters from outside! ----------------------------------------------------if (irl .ne. irold .and. iarg .eq. 0) thenif (iql .eq. 0) then! photonntype=1ie = e(np)/deltae +1if(ie .gt. 50) ie = 50elseif (iql .eq. -1) then ! electronntype=2ie = (e(np) - RM)/deltae +1if(ie .gt. 50) ie = 50else! positronntype=3ie = (e(np) - RM)/deltae +1if(ie .gt. 50) ie = 50end ifspec(ntype,ie) = spec(ntype,ie) + wt(np)end ifend if59
! ----------------------------------------------------------------! Print out stack information (for limited number cases and lines)! ----------------------------------------------------------------if (ncount .le. nwrite .and. ilines .le. nlines) thenilines = ilines + 1write(6,100) e(np),x(np),y(np),z(np),u(np),v(np),w(np),* iql,irl,iarg100 FORMAT(7G15.7,3I5)end if! ------------------------------------! Output particle information for plot! ------------------------------------if (ncount.le.maxpict) thencall plotxyz(iarg,np,iq(np),x(np),y(np),z(np),e(np),ir(np),* wt(np),time(np))end ifreturnend!--------------------------last line of ausgab.f------------------------!-------------------------------howfar.f--------------------------------! <strong>Version</strong>: 070627-1600! Reference: T. Torii and T. Sugita, "Development of PRESTA-CG! Incorporating Combinatorial Geometry in EGS4/PRESTA", JNC TN1410 2002-201,! Japan Nuclear Cycle Development Institute (2002).! Improved version is provided by T. Sugita. 7/27/2004!-----------------------------------------------------------------------!23456789|123456789|123456789|123456789|123456789|123456789|123456789|12! ----------------------------------------------------------------------! Required (geometry) subroutine for use with the EGS5 Code System! ----------------------------------------------------------------------! This is a CG-HOWFAR.! ----------------------------------------------------------------------ccccccccccsubroutine howfarimplicit noneinclude 'include/egs5_h.f' ! Main EGS "header" fileinclude 'include/egs5_epcont.f' ! COMMONs required by EGS5 codeinclude 'include/egs5_stack.f'include 'auxcommons/geom_common.f' ! geom-common fileinteger i,j,jjj,ir_np,nozone,jty,knointeger irnear,irnext,irlold,irlfg,itvlfg,ihit<strong>cg</strong>double precision xidd,yidd,zidd,x_np,y_np,z_np,u_np,v_np,w_npdouble precision tval,tval0,tval00,tval10,tvalmn,delhowdouble precision atvaltmpinteger iq_npir_np = ir(np)iq_np = iq(np) + 2if(ir_np.le.0) thenwrite(6,*) 'Stopped in howfar with ir(np) izonin'stopend ifif(ir_np.EQ.izonin) thenidisc=1returnend iftval=1.d+30itvalm=0body checku_np=u(np)v_np=v(np)w_np=w(np)60
- Page 1 and 2:
KEK Internal 2011-5December 2011R/D
- Page 3 and 4:
Lecture Notes ofResponse calculatio
- Page 5 and 6:
3 Details of user code 313.1 Main p
- Page 7 and 8:
1 Combinatrial Geometry (CG)2 Combi
- Page 9 and 10:
ody 3 2 body + ; OR B23A1Figure 2
- Page 11 and 12:
Z4 +4Z5 +5 -3Z6 +6 -5END1 0 2 3 4 0
- Page 13 and 14: end if! ==============call block_se
- Page 15 and 16: ! pdf data for many sourcedeltae=0.
- Page 17 and 18: ! ---------------------------------
- Page 19 and 20: sigph=dsqrt((ph2s(ie)-avph*avph)/nc
- Page 21 and 22: 6 6.1 NaI 1. Cs-137 (0.662MeV) 2.
- Page 23 and 24: ekein=1.253ekein=1.333{ ! ---------
- Page 25 and 26: ROuter vacuum (region 6)Air region
- Page 27 and 28: nmed=2 medarr(1)='NAImedarr(2)='ALm
- Page 29 and 30: ROuter vacuum (region 4)Air region
- Page 31 and 32: EGS5 sample user code (ucnaicgv.f)R
- Page 33 and 34: operator, it means that the region
- Page 35 and 36: 2 Outlines of sample user code uccg
- Page 37 and 38: include 'auxcommons/edata.f'include
- Page 39 and 40: The material assignment is read in
- Page 41 and 42: ! Write batch numberwrite(39,fmt="(
- Page 43 and 44: ! ---------------------------------
- Page 45 and 46: a distance to the boundary of regio
- Page 47 and 48: { Add sampling routines for source
- Page 49 and 50: ROuter vacuum (region 6)Air region
- Page 51 and 52: to* xi0,yi0,zi0,avab,depes,depe2s,s
- Page 53 and 54: ROuter vacuum (region 4)Air region
- Page 55 and 56: Appendix: Full listings of ucnaicgv
- Page 57 and 58: open(39,FILE='egs5job.pic',STATUS='
- Page 59 and 60: write(6,140)140 FORMAT(/,' HATCH-ca
- Page 61 and 62: ilines = ilines + 1write(6,280) eto
- Page 63: * 14X,' Positron')do ie=1,50elow=de
- Page 67 and 68: ccyidd=y_np+tval0*v_npzidd=z_np+tva