COSMOS v7.655  COSMOSv7655
(AirShowerMC)
c4to3mom.f
Go to the documentation of this file.
1 ! c4to3mom: extract 3 momentum from 4 momentum record
2 ! c3to4momentum: move 3 momentum to 4 momentum record
3  subroutine c4to3mom(four, three)
4  implicit none
5 !---- include '../Particle/Zptcl.h'
6 #include "Zptcl.h"
7 !---- include 'Zcoord.h'
8 #include "Zcoord.h"
9 !
10  type(fmom)::four ! input.
11  type(coord)::three ! output.
12 !
13  three%r(1) = four%p(1)
14  three%r(2) = four%p(2)
15  three%r(3) = four%p(3)
16  end
17 ! ***************************
18  subroutine c3to4momentum(three, four)
19  implicit none
20 !---- include '../Particle/Zptcl.h'
21 #include "Zptcl.h"
22 !---- include 'Zcoord.h'
23 #include "Zcoord.h"
24 !
25  type(coord)::three ! input
26  type(fmom)::four ! output
27 
28  four%p(1) = three%r(1)
29  four%p(2) = three%r(2)
30  four%p(3) = three%r(3)
31  end
Definition: Zptcl.h:72
subroutine c3to4momentum(three, four)
Definition: c4to3mom.f:19
subroutine c4to3mom(four, three)
Definition: c4to3mom.f:4
Definition: Zcoord.h:43