COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cfxTgtChg.f
Go to the documentation of this file.
1  subroutine cfxtgtchg(ia, iz, tcg)
2 ! fix target charge (for nucleon target inside 'A')
3  implicit none
4  integer ia, iz ! input target mass and charge no.
5  integer tcg ! ouput. selected nucleon's charge
6 
7  real*8 u
8 
9  call rndc(u)
10  if(u .le. float(iz)/ia) then
11  tcg=1
12  else
13  tcg=0
14  endif
15  end
subroutine rndc(u)
Definition: rnd.f:91
subroutine cfxtgtchg(ia, iz, tcg)
Definition: cfxTgtChg.f:2