7 SUBROUTINE JETINI(JP,JT,I_TRIG)
8 C*******Initialize PYTHIA for jet production**********************
9 C I_TRIG=0: for normal processes
10 C I_TRIG=1: for triggered processes
11 C JP: sequence number of the projectile
12 C JT: sequence number of the target
13 C For A+A collisions, one has to initilize pythia
14 C separately for each type of collisions, pp, pn,np and nn,
15 C or hp and hn for hA collisions. In this subroutine we use the following
16 C catalogue for different type of collisions:
18 C h+A: h+p (I_TYPE=1), h+n (I_TYPE=2)
19 C A+h: p+h (I_TYPE=1), n+h (I_TYPE=2)
20 C A+A: p+p (I_TYPE=1), p+n (I_TYPE=2), n+p (I_TYPE=3), n+n (I_TYPE=4)
21 C*****************************************************************
22 CHARACTER BEAM*16,TARG*16
23 DIMENSION XSEC0(8,0:200),COEF0(8,200,20),INI(8),
25 #include "hijcrdn.inc"
26 #include "hiparnt.inc"
27 #include "histrng.inc"
28 #include "hipyint.inc"
30 #include "ludat1_hijing.inc"
31 #include "ludat3_hijing.inc"
32 #include "pysubs_hijing.inc"
33 #include "pypars_hijing.inc"
34 #include "pyint1_hijing.inc"
35 #include "pyint2_hijing.inc"
36 #include "pyint5_hijing.inc"
37 DATA INI/8*0/I_LAST/-1/
42 IF(IHNT2(5).NE.0 .AND. IHNT2(6).NE.0) THEN
44 ELSE IF(IHNT2(5).NE.0 .AND. IHNT2(6).EQ.0) THEN
46 IF(NFT(JT,4).EQ.2112) I_TYPE=2
47 ELSE IF(IHNT2(5).EQ.0 .AND. IHNT2(6).NE.0) THEN
49 IF(NFP(JP,4).EQ.2112) I_TYPE=2
51 IF(NFP(JP,4).EQ.2212 .AND. NFT(JT,4).EQ.2212) THEN
53 ELSE IF(NFP(JP,4).EQ.2212 .AND. NFT(JT,4).EQ.2112) THEN
55 ELSE IF(NFP(JP,4).EQ.2112 .AND. NFT(JT,4).EQ.2212) THEN
62 IF(I_TRIG.NE.0) GO TO 160
63 IF(I_TRIG.EQ.I_LAST) GO TO 150
65 c ********second order running alpha_strong
68 C ********inclusion of K factor
70 C ********Duke-Owens set 1 structure functions
72 C ********INITIAL STATE RADIATION
74 C ********FINAL STATE RADIATION
75 IF(IHPR2(2).EQ.0.OR.IHPR2(2).EQ.2) MSTP(61)=0
76 IF(IHPR2(2).EQ.0.OR.IHPR2(2).EQ.1) MSTP(71)=0
79 C ******** NO MULTIPLE INTERACTION
81 C *******STRUCTURE OF MUTLIPLE INTERACTION
83 C ********frag off(have to be done by local call)
84 IF(IHPR2(10).EQ.0) MSTP(122)=0
85 C ********No printout of initialization information
90 IF(HIPR1(9).LE.HIPR1(8)) CKIN(4)=-1.0
105 DO 110 J=1,MIN(8,MDCY(21,3))
106 110 MDME(MDCY(21,2)+J-1,1)=0
108 IF(HINT1(1).GE.20.0 .and. IHPR2(18).EQ.1) ISEL=5
109 MDME(MDCY(21,2)+ISEL-1,1)=1
110 C ********QCD subprocesses
114 C ******* direct photon production
115 150 IF(INI(I_TYPE).NE.0) GO TO 800
118 C *****triggered subprocesses, jet, photon, heavy quark and DY
121 IF(I_TRIG.EQ.I_LAST) GO TO 260
122 PARP(81)=ABS(HIPR1(10))-0.25
123 CKIN(5)=ABS(HIPR1(10))-0.25
124 CKIN(3)=ABS(HIPR1(10))-0.25
125 CKIN(4)=ABS(HIPR1(10))+0.25
126 IF(HIPR1(10).LT.HIPR1(8)) CKIN(4)=-1.0
132 IF(IHPR2(3).EQ.1) THEN
144 DO 102 J=1,MIN(8,MDCY(21,3))
145 102 MDME(MDCY(21,2)+J-1,1)=0
147 IF(HINT1(1).GE.20.0 .and. IHPR2(18).EQ.1) ISEL=5
148 MDME(MDCY(21,2)+ISEL-1,1)=1
149 C ********QCD subprocesses
150 ELSE IF(IHPR2(3).EQ.2) THEN
154 C ********Direct photon production
155 c q+qbar->g+gamma,q+qbar->gamma+gamma, q+g->q+gamma
156 ELSE IF(IHPR2(3).EQ.3) THEN
157 CKIN(3)=MAX(0.0,HIPR1(10))
162 DO 105 J=1,MIN(8,MDCY(21,3))
163 105 MDME(MDCY(21,2)+J-1,1)=0
165 IF(HINT1(1).GE.20.0 .and. IHPR2(18).EQ.1) ISEL=5
166 MDME(MDCY(21,2)+ISEL-1,1)=1
167 C **********Heavy quark production
169 260 IF(INI(I_TYPE).NE.0) GO TO 800
173 IF(IHPR2(10).EQ.0) MSTP(122)=0
174 IF(NFP(JP,4).EQ.2212) THEN
176 ELSE IF(NFP(JP,4).EQ.-2212) THEN
178 ELSE IF(NFP(JP,4).EQ.2112) THEN
180 ELSE IF(NFP(JP,4).EQ.-2112) THEN
182 ELSE IF(NFP(JP,4).EQ.211) THEN
184 ELSE IF(NFP(JP,4).EQ.-211) THEN
186 ELSE IF(NFP(JP,4).EQ.321) THEN
188 ELSE IF(NFP(JP,4).EQ.-321) THEN
191 WRITE(6,*) 'unavailable beam type', NFP(JP,4)
193 IF(NFT(JT,4).EQ.2212) THEN
195 ELSE IF(NFT(JT,4).EQ.-2212) THEN
197 ELSE IF(NFT(JT,4).EQ.2112) THEN
199 ELSE IF(NFT(JT,4).EQ.-2112) THEN
201 ELSE IF(NFT(JT,4).EQ.211) THEN
203 ELSE IF(NFT(JT,4).EQ.-211) THEN
205 ELSE IF(NFT(JT,4).EQ.321) THEN
207 ELSE IF(NFT(JT,4).EQ.-321) THEN
210 WRITE(6,*) 'unavailable target type', NFT(JT,4)
214 C ******************indicate for initialization use when
215 C structure functions are called in PYTHIA
217 CALL PYINIT_HIJING('CMS',BEAM,TARG,HINT1(1))
220 MINT44(I_TYPE)=MINT(44)
221 MINT45(I_TYPE)=MINT(45)
223 XSEC0(I_TYPE,0)=XSEC(0,1)
226 XSEC0(I_TYPE,I)=XSEC(I,1)
229 COEF0(I_TYPE,I,J)=COEF(I,J)
235 C ********Store the initialization information for
239 800 MINT(44)=MINT44(I_TYPE)
240 MINT(45)=MINT45(I_TYPE)
243 XSEC(0,1)=XSEC0(I_TYPE,0)
246 XSEC(I,1)=XSEC0(I_TYPE,I)
249 COEF(I,J)=COEF0(I_TYPE,I,J)