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

Go to the source code of this file.

Functions/Subroutines

subroutine crot3mom (p, a, n)
 

Function/Subroutine Documentation

◆ crot3mom()

subroutine crot3mom ( type(ptcl p,
type(ptcl), dimension(n a,
integer  n 
)

Definition at line 2 of file crot3mom.f.

References crot3vec(), and d0.

Referenced by chanewlund(), chncol2(), and qgs01init().

2 ! a(n)'s momentum is given in a system whose z axis
3 ! coinsides with momentum direction of p.
4 ! This subroutine converts 'a' so that
5 ! it is seen from the system where p is defined.
6 !
7  implicit none
8 #include "Zptcl.h"
9  integer n
10  type(ptcl)::p, a(n)
11  integer i
12 
13  if( (p%fm%p(1) .ne. 0.d0 .or. p%fm%p(2) .ne. 0.d0 )
14  * .or. p%fm%p(3) < 0.d0) then
15  do i = 1, n
16  call crot3vec(p%fm, a(i)%fm, a(i)%fm)
17  enddo
18  endif
nodes i
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
Definition: cblkHeavy.h:7
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
subroutine crot3vec(zax, vec1, vec2)
Definition: crot3vec.f:33
real(4), save a
Definition: cNRLAtmos.f:20
Definition: Zptcl.h:75
integer n
Definition: Zcinippxc.h:1
Here is the call graph for this function:
Here is the caller graph for this function: