COSMOS v7.655
COSMOSv7655
(AirShowerMC)
cpm2e.f
Go to the documentation of this file.
1
subroutine
cpm2e
(p, q)
2
! get energy from 3 momentum and mass
3
! p: /ptcl/ Input. 3 momentum and mass must be given
4
! q: /ptcl/ Outpu. q.fm.p(4) is given.
5
! q may be p
6
implicit none
7
!---- include '../Zptcl.h'
8
#include "Zptcl.h"
9
!
10
type
(
ptcl
):: p, q
11
!
12
q%fm%p(4) = sqrt( p%fm%p(1)**2 + p%fm%p(2)**2 + p%fm%p(3)**2
13
* + p%mass**2)
14
end
cpm2e
subroutine cpm2e(p, q)
Definition:
cpm2e.f:2
ptcl
Definition:
Zptcl.h:75
Particle
Clib
cpm2e.f
Generated by
1.8.13