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

Go to the source code of this file.

Functions/Subroutines

subroutine cghpath (egin, t)
 

Function/Subroutine Documentation

◆ cghpath()

subroutine cghpath ( real*8  egin,
real*8  t 
)

Definition at line 3 of file cghPath.f.

References cgpxsec(), parameter(), and rndc().

3 ! get hadronic interaction (v.d) m.f.p for gamma
4 ! t is given in kg/m2
5  implicit none
6 !
7 
8 #include "Ztrack.h"
9 #include "Ztrackv.h"
10 
11  real*8 egin, t
12 !
13  real*8 abogn, abn, xs, u
14  parameter(abogn=6.02e23, abn=1.e28/abogn) ! abn * A/ xs(mb) => kg/m2
15 ! gA x-section, xs in mb
16  call cgpxsec(targetmassn, egin, xs)
17 
18  if(xs .gt. 0.) then
19  t=abn*targetmassn /xs
20  call rndc(u)
21  t=-log(u)*t
22  else
23  t=1.0d50
24  endif
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
subroutine rndc(u)
Definition: rnd.f:91
! constants thru Cosmos real ! if multiplied to deg radian Torad ! light velocity m sec ! infinty ! kg m2 *Togpcm2 g cm2 ! g cm2 *Tokgpm2 kg m2 ! cm *Tom m ! m *Tocm cm ! g cm3 *Tokgpm3 kg m3 ! kg m3 *Togpcm3 g cm3 ! sec *Tonsec nsec ! Tesla m ! Avogadro *A2deninv ! mfp *n * xs
Definition: Zglobalc.h:18
nodes t
subroutine cgpxsec(a, energy, xs)
Definition: cgpXsec.f:11
Here is the call graph for this function: