Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyevwt.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pyevwt.f
1 
2 C*********************************************************************
3 
4 C...PYEVWT
5 C...Dummy routine, which the user can replace in order to multiply the
6 C...standard PYTHIA differential cross-section by a process- and
7 C...kinematics-dependent factor WTXS. For MSTP(142)=1 this corresponds
8 C...to generation of weighted events, with weight 1/WTXS, while for
9 C...MSTP(142)=2 it corresponds to a modification of the underlying
10 C...physics.
11 
12  SUBROUTINE pyevwt(WTXS)
13 
14 C...Double precision and integer declarations.
15  IMPLICIT DOUBLE PRECISION(a-h, o-z)
16  IMPLICIT INTEGER(i-n)
17  INTEGER pyk,pychge,pycomp
18 C...Commonblocks.
19  common/pydat1/mstu(200),paru(200),mstj(200),parj(200)
20  common/pyint1/mint(400),vint(400)
21  common/pyint2/iset(500),kfpr(500,2),coef(500,20),icol(40,4,2)
22  SAVE /pydat1/,/pyint1/,/pyint2/
23 
24 C...Set default weight for WTXS.
25  wtxs=1d0
26 
27 C...Read out subprocess number.
28  isub=mint(1)
29  istsb=iset(isub)
30 
31 C...Read out tau, y*, cos(theta), tau' (where defined, else =0).
32  tau=vint(21)
33  yst=vint(22)
34  cth=0d0
35  IF(istsb.EQ.2.OR.istsb.EQ.4) cth=vint(23)
36  taup=0d0
37  IF(istsb.GE.3.AND.istsb.LE.5) taup=vint(26)
38 
39 C...Read out x_1, x_2, x_F, shat, that, uhat, p_T^2.
40  x1=vint(41)
41  x2=vint(42)
42  xf=x1-x2
43  shat=vint(44)
44  that=vint(45)
45  uhat=vint(46)
46  pt2=vint(48)
47 
48 C...Modifications by user to be put here.
49 
50 C...Stop program if this routine is ever called.
51 C...You should not copy these lines to your own routine.
52  WRITE(mstu(11),5000)
53  CALL pystop(4)
54 
55 C...Format for error printout.
56  5000 FORMAT(1x,'Error: you did not link your PYEVWT routine ',
57  &'correctly.'/1x,'Dummy routine in PYTHIA file called instead.'/
58  &1x,'Execution stopped!')
59 
60  RETURN
61  END