!-----------------------------------------------------------------------implicit none! ------------! EGS5 COMMONs! ------------include 'include/egs5_h.f'include 'include/egs5_bounds.f'include 'include/egs5_brempr.f'include 'include/egs5_edge.f'include 'include/egs5_media.f'include 'include/egs5_misc.f'include 'include/egs5_thresh.f'include 'include/egs5_uphiot.f'include 'include/egs5_useful.f'include 'include/egs5_usersc.f'include 'include/egs5_userxt.f'include 'include/randomm.f'! ----------------------! Auxiliary-code COMMONs! ----------------------include 'auxcommons/aux_h.f'include 'auxcommons/edata.f'include 'auxcommons/etaly1.f'include 'auxcommons/instuf.f'include 'auxcommons/lines.f'include 'auxcommons/nfac.f'include 'auxcommons/watch.f'! Main EGS "header" file! Auxiliary-code "header" file! ------------------! <strong>cg</strong> related COMMONs! ------------------include 'auxcommons/geom_common.f' ! geom-common fileinteger irinncommon/totals/* depe,deltae,spec(3,50),maxpictreal*8 depe,deltae,specinteger maxpict! Variables to score!**** real*8 ! Argumentsreal*8 totkereal*8 rnnow,etotreal*8 esumtreal*8! Local variables* availke,avpe,avph,avspe,avspg,avspp,avte,desci2,pefs,pef2s,* rr0,sigpe,sigte,sigph,sigspg,sigspe,sigspp,tefs,tef2s,wtin,wtsum,* xi0,yi0,zi0real*8* phs(50),ph2s(50),specs(3,50),spec2s(3,50)real* elow,eup,rdet,rtcov,rtgap,tcov,tdet,tgapreal* tarray(2),tt,tt0,tt1,cputime,etimeinteger* i,icases,idin,ie,ifti,ifto,ii,iiz,imed,ireg,isam,* izn,nlist,j,k,n,ner,ntypecharacter*24 medarr(MXMED)! Local variables! ----------! Open files! ----------!----------------------------------------------------------------! Units 7-26 are used in pegs and closed. It is better not! to use as output file. If they are used, they must be opened! after get<strong>cg</strong> etc. Unit for pict must be 39.!----------------------------------------------------------------open(6,FILE='egs5job.out',STATUS='unknown')open(4,FILE='egs5job.inp',STATUS='old')51
open(39,FILE='egs5job.pic',STATUS='unknown')! ====================call counters_out(0)! ====================!-----------------------------------------------------------------------! Step 2: pegs5-call!-----------------------------------------------------------------------! ---------------------------------! Define media before calling PEGS5! ---------------------------------nmed=4if(nmed.gt.MXMED) thenwrite(6,'(A,I4,A,I4,A/A)')* ' nmed (',nmed,') larger than MXMED (',MXMED,')',* ' MXMED in iclude/egs5_h.f must be increased.'stopend if! ==============call block_set! ==============medarr(1)='NAImedarr(2)='ALmedarr(3)='QUARTZmedarr(4)='AIR-AT-NTPdo j=1,nmeddo i=1,24media(i,j)=medarr(j)(i:i)end doend do! Initialize some general variableschard(1) = 7.62d0 ! automatic step-size controlchard(2) = 0.1d0chard(3) = 0.5d0chard(4) = 5.0d0write(6,fmt="('chard =',5e12.5)") (chard(j),j=1,nmed)! -----------------------------------! Run KEK PEGS5 before calling HATCH! -----------------------------------write(6,100)100 FORMAT('PEGS5-call comes next'/)! ==========call pegs5! ==========!-----------------------------------------------------------------------! Step 3: Pre-hatch-call-initialization!-----------------------------------------------------------------------write(6,*) 'Read <strong>cg</strong>-related data'!-----------------------------------------------! Initialize CG related parameters!-----------------------------------------------npreci=3 ! PICT data mode for CGView in free formatifti = 4ifto = 39''''! Input unit number for <strong>cg</strong>-data! Output unit number for PICTwrite(6,fmt="(' CG data')")call geomgt(ifti,6) ! Read in CG datawrite(6,fmt="(' End of CG data',/)")if(npreci.eq.3) write(ifto,fmt="('CSTA-FREE-TIME')")if(npreci.eq.2) write(ifto,fmt="('CSTA-TIME')")rewind ifticall geomgt(ifti,ifto)! Dummy call to write geom info for iftowrite(ifto,110)110 FORMAT('CEND')!--------------------------------! Get nreg from <strong>cg</strong> input data!--------------------------------52
- 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: Appendix: Full listings of ucnaicgv
- Page 59 and 60: write(6,140)140 FORMAT(/,' HATCH-ca
- Page 61 and 62: ilines = ilines + 1write(6,280) eto
- Page 63 and 64: * 14X,' Positron')do ie=1,50elow=de
- Page 65 and 66: ! ---------------------------------
- Page 67 and 68: ccyidd=y_np+tval0*v_npzidd=z_np+tva