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

Go to the source code of this file.

Functions/Subroutines

subroutine cpm2e (p, q)
 

Function/Subroutine Documentation

◆ cpm2e()

subroutine cpm2e ( type(ptcl p,
type(ptcl q 
)

Definition at line 2 of file cpm2e.f.

Referenced by cchg0(), and cchg0c().

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)
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
Definition: cblkHeavy.h:7
Definition: Zptcl.h:75
Here is the caller graph for this function: