12.07.2015 Views

cg Version

cg Version

cg Version

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

nlines = 10idin = -1totke = 0.wtsum = 0.iwatch=0! =========================call ecnsv1(0,nreg,totke)call ntally(0,nreg)! =========================write(6,270)270 FORMAT(//,' Energy/Coordinates/Direction cosines/etc.',/,* 6X,'e',14X,'x',14X,'y',14X,'z',* 14X,'u',14X,'v',14X,'w',11X,'iq',3X,'ir',1X,'iarg',/)! Energy bin widthdeltae=ekein / 50! Zero the variablesdepe=0.D0pefs=0.D0pef2s=0.D0tefs=0.D0tef2S=0.D0do j=1,50phs(j)=0.D0ph2s(j)=0.D0do ntype=1,3spec(ntype,j)=0.D0specs(ntype,j)=0.D0spec2s(ntype,j)=0.D0end doend do! Set historiesncases=10000! Set maximum number for pictmaxpict=50tt=etime(tarray)tt0=tarray(1)!-----------------------------------------------------------------------! Step 8: Shower-call!-----------------------------------------------------------------------! Write batch numberwrite(39,fmt="('0 1')")! ========================if(iwatch.gt.0) call swatch(-99,iwatch)! ========================do i=1,ncases! ----------------------! Select incident energy! ----------------------wtin = 1.0wtsum = wtsum + wtinetot = ekein + iabs(iqin)*RMif(iqin.eq.1) thenavailke = ekein + 2.0*RMelseavailke = ekeinend iftotke = totke + availke! ----------------------! Select incident angle! ----------------------! -------------------------! Start of shower call-loop! -------------------------! Keep running sum of weights! Incident total energy (MeV)! Available K.E. (MeV) in system! for positron! Available K.E. (MeV) in system! for photon and electron! Keep running sum of KE! ---------------------------------------------------! Print first NWRITE or NLINES, whichever comes first! ---------------------------------------------------if (ncount .le. nwrite .and. ilines .le. nlines) then55

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

Saved successfully!

Ooh no, something went wrong!