COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cgetBeta.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine cgetbeta (aPtcl, beta)
 

Function/Subroutine Documentation

◆ cgetbeta()

subroutine cgetbeta ( type(ptcl aPtcl,
real*8  beta 
)

Definition at line 4 of file cgetBeta.f.

Referenced by cmovestreight().

4  implicit none
5 !---- include '../Particle/Zptcl.h'
6 #include "Zptcl.h"
7  type(ptcl)::aptcl
8  real*8 beta
9 !
10  real*8 g, gmin/100./
11 !
12  if(aptcl%mass .eq. 0.) then
13  beta = 1.
14  else
15  g =aptcl%fm%p(4)/aptcl%mass
16  if(g .lt. gmin) then
17  beta = sqrt(1. - 1./g/g)
18  else
19  beta =(-1./g/g/8.0-0.5)/g/g + 1.
20  endif
21  endif
dE dx *! Nuc Int sampling table g
Definition: cblkMuInt.h:130
Definition: Zptcl.h:75
Here is the caller graph for this function: