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

Go to the source code of this file.

Functions/Subroutines

subroutine cfxtgtchg (ia, iz, tcg)
 

Function/Subroutine Documentation

◆ cfxtgtchg()

subroutine cfxtgtchg ( integer  ia,
integer  iz,
integer  tcg 
)

Definition at line 2 of file cfxTgtChg.f.

References rndc().

Referenced by cgplowexp(), and chacoladhoc().

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
subroutine rndc(u)
Definition: rnd.f:91
Here is the call graph for this function:
Here is the caller graph for this function: