EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lecswi.F
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file lecswi.F
1 
2 C ********************************************************************
3 
4  SUBROUTINE lecswi(I,J)
5 
6 C-- switch colour pointers for partons in rows I and J
7 C-- and anticolour pointers for the partons pointing back
8 
9  IMPLICIT NONE
10 
11 C-- global variables
12  INTEGER nlupdm,nplbuf
13  parameter(nlupdm=4000,nplbuf=5)
14  common/lujets/n,k(nlupdm,5),p(nlupdm,nplbuf),v(nlupdm,5)
15  INTEGER n,k
16  REAL p,v
17  SAVE /lujets/
18 
19 
20 C-- local variables
21  INTEGER i,j,ki4,kj4
22 
23  ki4=k(i,4)
24  kj4=k(j,4)
25  k(ki4,5)=j
26  k(kj4,5)=i
27  k(i,4)=kj4
28  k(j,4)=ki4
29 
30  END