Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyrvg4.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pyrvg4.f
1 
2 C*********************************************************************
3 
4 C...PYRVG4
5 C...Integrand for true intereference contributions
6 
7  FUNCTION pyrvg4(Y)
8 
9  IMPLICIT NONE
10  common/pyrvpm/rm(0:3),a(2),b(2),resm(2),resw(2),mflag
11  common/pyg2dx/x
12  DOUBLE PRECISION x, y, pyrvg4, rm, a, b, resm, resw, rvs, pyrvs
13  LOGICAL mflag
14  SAVE /pyrvpm/,/pyg2dx/
15  pyrvg4=0d0
16  rvs=pyrvs(x,y,resm(1),resw(1),resm(2),resw(2))
17  IF (.NOT.mflag) THEN
18  pyrvg4 = rvs*b(1)*b(2)*x*y
19  ELSE
20  pyrvg4 = rvs*(rm(1)*rm(3)*a(1)*a(2)*(x+y-rm(1)**2-rm(3)**2)
21  & + rm(1)*rm(0)*b(1)*a(2)*(y-rm(2)**2-rm(3)**2)
22  & + rm(3)*rm(0)*a(1)*b(2)*(x-rm(1)**2-rm(2)**2)
23  & + b(1)*b(2)*(x*y-(rm(1)*rm(3))**2-(rm(0)*rm(2))**2))
24  ENDIF
25  RETURN
26  END