Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pychge.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pychge.f
1 
2 C*********************************************************************
3 
4 C...PYCHGE
5 C...Gives three times the charge for a particle/parton.
6 
7  FUNCTION pychge(KF)
8 
9 C...Double precision and integer declarations.
10  IMPLICIT DOUBLE PRECISION(a-h, o-z)
11  IMPLICIT INTEGER(i-n)
12  INTEGER pyk,pychge,pycomp
13 C...Commonblocks.
14  common/pydat2/kchg(500,4),pmas(500,4),parf(2000),vckm(4,4)
15  SAVE /pydat2/
16 
17 C...Read out charge and change sign for antiparticle.
18  pychge=0
19  kc=pycomp(kf)
20  IF(kc.NE.0) pychge=kchg(kc,1)*isign(1,kf)
21 
22  RETURN
23  END