COSMOS v7.655  COSMOSv7655
(AirShowerMC)
crot3mom.f
Go to the documentation of this file.
1  subroutine crot3mom(p, a, n)
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
19  end
20 
subroutine crot3mom(p, a, n)
Definition: crot3mom.f:2
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
Definition: Zptcl.h:75