subroutine integralfill(p) C-----Authors: John Campbell and Keith Ellis, November 2011 implicit none include 'constants.f' include 'masses.f' include 'scale.f' include 'massiveintegrals.f' double precision p(mxpart,4) integer nu,p2,p3,j double precision mt2,xbeta2,s12,s13,s23,twop1Dp2,twop1Dp3,gram double complex qlI4,qlI3,qlI2 logical first data first/.true./ save first c--- initialize QCDLoop on first pass if (first) then call qlinit first=.false. endif do j=1,2 if (j.eq.1) then p2=2 p3=3 elseif (j.eq.2) then p2=3 p3=2 endif s12=(p(1,4)+p(p2,4))**2 s13=(p(1,4)+p(p3,4))**2 s23=(p(p2,4)+p(p3,4))**2 do nu=1,3 s12=s12-(p(1,nu)+p(p2,nu))**2 s13=s13-(p(1,nu)+p(p3,nu))**2 s23=s23-(p(p2,nu)+p(p3,nu))**2 enddo mt2=mt**2 twop1Dp2=s12-mt2 twop1Dp3=s13-mt2 gram=twop1Dp2*twop1Dp3-mt2*s23 xbeta2=1d0-4d0*mt2/s23 if (j .eq. 1) then I41x2x4x3=qlI4(mt2,zip,mt2,zip,s12,s13,zip,mt2,mt2,zip,musq,0) I31x23x4=qlI3(s23,mt2,mt2,zip,zip,mt2,musq,0) I3m1x23x4=qlI3(s23,mt2,mt2,mt2,mt2,zip,musq,0) I32x3x41=qlI3(s23,zip,zip,zip,zip,zip,musq,0) I3m2x3x41=qlI3(s23,zip,zip,mt2,mt2,mt2,musq,0) I2m=qlI2(mt2,zip,mt2,musq,0) Im2m=qlI2(zip,mt2,mt2,musq,0) I23=qlI2(s23,zip,zip,musq,0) F2m23=qlI2(s23,mt2,mt2,musq,0)-Im2m I2h23=qlI2(s23,zip,zip,musq,0)-I2m+dcmplx(2d0) endif I41x2x3x4(j)=qlI4(mt2,zip,zip,mt2,s12,s23,mt2,zip,zip,zip,musq,0) I4m1x2x3x4(j)=qlI4(mt2,zip,zip,mt2,s12,s23,zip,mt2,mt2,mt2,musq,0) I312x3x4(j)=qlI3(s12,zip,mt2,mt2,zip,zip,musq,0) I3m12x3x4(j)=qlI3(s12,zip,mt2,zip,mt2,mt2,musq,0) I313x2x4(j)=qlI3(s13,zip,mt2,mt2,zip,zip,musq,0) I3m13x2x4(j)=qlI3(s13,zip,mt2,zip,mt2,mt2,musq,0) F41x2x3x4(j)=I41x2x3x4(j)-I31x23x4/twop1Dp2 F4m1x2x3x4(j)=I4m1x2x3x4(j)-I3m1x23x4/twop1Dp2 F212(j)=qlI2(s12,zip,mt2,musq,0)-I2m I461x2x3x4(j)=0.5d0/gram*( & -twop1Dp2**2*s23*I41x2x3x4(j) & +(twop1Dp2+2d0*mt2)*s23*I31x23x4 & +2d0*twop1Dp2**2*I312x3x4(j) & +twop1Dp2*s23*I32x3x41) I46m1x2x3x4(j)=0.5d0/gram*( % -twop1Dp2**2*s23*xbeta2*I4m1x2x3x4(j) & +twop1Dp2*s23*xbeta2*I3m1x23x4 & +2d0*twop1Dp2*(twop1Dp2+2d0*mt2)*I3m12x3x4(j) & +(twop1Dp2+2d0*mt2)*s23*I3m2x3x41) enddo return end