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

Go to the source code of this file.

Functions/Subroutines

subroutine csetdircos (dc, aTrack)
 
subroutine cgetzenith (aTrack, cosz)
 

Function/Subroutine Documentation

◆ cgetzenith()

subroutine cgetzenith ( type(track aTrack,
real*8  cosz 
)

Definition at line 20 of file cgetZenith.f.

References d0.

Referenced by cmkinc2(), cmoveptcl1(), cputdeflection(), cresetdirec(), and csetdircos().

20  implicit none
21 
22 #include "Ztrack.h"
23  type(track)::atrack
24  real*8 cosz
25 
26 !
27  cosz = - (atrack%vec%w%r(1) * atrack%pos%xyz%r(1) +
28  * atrack%vec%w%r(2) * atrack%pos%xyz%r(2) +
29  * atrack%vec%w%r(3) * atrack%pos%xyz%r(3))/
30  * atrack%pos%radiallen
31  if(cosz .gt. 1.d0) then
32  cosz = 1.d0
33  elseif(cosz .lt. -1.d0) then
34  cosz = -1.d0
35  endif
36  ! or
37 ! * sqrt(aTrack.pos.xyz.r(1)**2 +
38 ! * aTrack.pos.xyz.r(2)**2 +
39 ! * aTrack.pos.xyz.r(3)**2)
Definition: Ztrack.h:44
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
Here is the caller graph for this function:

◆ csetdircos()

subroutine csetdircos ( type(coord dc,
type(track aTrack 
)

Definition at line 4 of file cgetZenith.f.

References cgetzenith().

Referenced by canihi(), cbrems(), ccohs(), ccompt(), cknockon(), cmkinc(), cpair(), cphotoee(), and csetknock().

4  implicit none
5 
6 #include "Ztrack.h"
7  type(track)::atrack
8  type(coord)::dc
9 !
10 #ifdef SUBSTREC
11  atrack%vec%w = dc
12 #else
13  atrack%vec%w%r = dc%r
14 #endif
15  call cgetzenith(atrack, atrack%vec%coszenith)
Definition: Ztrack.h:44
subroutine cgetzenith(aTrack, cosz)
Definition: cgetZenith.f:20
Definition: Zcoord.h:43
Here is the call graph for this function:
Here is the caller graph for this function: