All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
pxuvec.f
Go to the documentation of this file.
1
CDECK ID>, PXUVEC.
2
*
3
******............................................................******
4
SUBROUTINE
pxuvec
(NTRAK,PP,PU,IERR)
5
******............................................................******
6
*
7
*** Routine to calculate unit vectors PU of all particles PP
8
IMPLICIT NONE
9
INTEGER
mxtrak
10
parameter(mxtrak=200)
11
INTEGER
ntrak, ierr
12
REAL
pp(4,mxtrak)
13
REAL
pu(3,mxtrak)
14
INTEGER
n,mu
15
REAL
mag
16
DO
100 n=1,ntrak
17
mag=0.0
18
DO
110 mu=1,3
19
mag=mag+pp(mu,n)**2
20
110
CONTINUE
21
mag=sqrt(mag)
22
IF
(mag.EQ.0.0)
THEN
23
WRITE
(*,*)
' PXCONE: An input particle has zero mod(p)'
24
ierr=-1
25
RETURN
26
ENDIF
27
DO
120 mu=1,3
28
pu(mu,n)=pp(mu,n)/mag
29
120
CONTINUE
30
100
CONTINUE
31
RETURN
32
END
pxuvec
subroutine pxuvec(NTRAK, PP, PU, IERR)
Definition:
pxuvec.f:4
Analysis
SatoruJetFinder
src
fortsrc
pxuvec.f
Generated on Tue Mar 29 2022 10:09:41 by
1.8.5