Go to the source code of this file.
◆ cbrcsampe()
subroutine cbrcsampe |
( |
real*8 |
Ee, |
|
|
real*8 |
Eg |
|
) |
| |
Definition at line 37 of file cBrCSamp.f.
References d0, masele, rndc(), and true.
Referenced by cbremsenergy().
45 real*8 vc,
x, u, u1, u2, term1, term2
50 term1 = cscrmain * (log(1.
d0/vc) - (1.
d0-vc))
51 term2 = cscrc1 * (1.0
d0-vc)*(1.0+vc)/2.
d0 53 if(u .le. term1/(term1+term2))
then 60 if( u .lt. (1.0-
x))
goto 10
69 if(
x .gt. vc )
goto 20
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon true
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
◆ cbrcsampp()
subroutine cbrcsampp |
( |
real*8 |
Ee, |
|
|
real*8 |
prob |
|
) |
| |
Definition at line 2 of file cBrCSamp.f.
References d, d0, masele, and parameter().
Referenced by cbremspath().
12 * r0 = 2.81794092
d-15,
13 * alpha = 1./137.0359895
d0,
14 * m2tomb = 1./1.0
d-31,
15 * ar02 = alpha * r0**2 * m2tomb
28 prob = 4. * ar02 * ( ( log(1.
d0/vc) -
29 * (1.
d0-vc)) * cscrmain +
30 + (1.
d0-vc)* (1.
d0+vc)/2 * cscrc1 )
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
dE dx *! Nuc Int sampling table d