Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyhfth.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pyhfth.f
1 
2 C*********************************************************************
3 
4 C...PYHFTH
5 C...Gives threshold attractive/repulsive factor for heavy flavour
6 C...production.
7 
8  FUNCTION pyhfth(SH,SQM,FRATT)
9 
10 C...Double precision and integer declarations.
11  IMPLICIT DOUBLE PRECISION(a-h, o-z)
12  IMPLICIT INTEGER(i-n)
13  INTEGER pyk,pychge,pycomp
14 C...Commonblocks.
15  common/pydat1/mstu(200),paru(200),mstj(200),parj(200)
16  common/pypars/mstp(200),parp(200),msti(200),pari(200)
17  common/pyint1/mint(400),vint(400)
18  SAVE /pydat1/,/pypars/,/pyint1/
19 
20 C...Value for alpha_strong.
21  IF(mstp(35).LE.1) THEN
22  alssg=parp(35)
23  ELSE
24  mst115=mstu(115)
25  mstu(115)=mstp(36)
26  q2bn=sqrt(max(1d0,sqm*((sqrt(sh)-2d0*sqrt(sqm))**2+
27  & parp(36)**2)))
28  alssg=pyalps(q2bn)
29  mstu(115)=mst115
30  ENDIF
31 
32 C...Evaluate attractive and repulsive factors.
33  xattr=4d0*paru(1)*alssg/(3d0*sqrt(max(1d-20,1d0-4d0*sqm/sh)))
34  fattr=xattr/(1d0-exp(-min(50d0,xattr)))
35  xrepu=paru(1)*alssg/(6d0*sqrt(max(1d-20,1d0-4d0*sqm/sh)))
36  frepu=xrepu/(exp(min(50d0,xrepu))-1d0)
37  pyhfth=fratt*fattr+(1d0-fratt)*frepu
38  vint(138)=pyhfth
39 
40  RETURN
41  END