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
80 C ******** NO MULTIPLE INTERACTION
82 C *******STRUCTURE OF MUTLIPLE INTERACTION
84 C ********frag off(have to be done by local call)
85 IF(IHPR2(10).EQ.0) MSTP(122)=0
86 C ********No printout of initialization information
91 IF(HIPR1(9).LE.HIPR1(8)) CKIN(4)=-1.0
106 DO 110 J=1,MIN(8,MDCY(21,3))
107 110 MDME(MDCY(21,2)+J-1,1)=0
109 IF(HINT1(1).GE.20.0 .and. IHPR2(18).EQ.1) ISEL=5
110 MDME(MDCY(21,2)+ISEL-1,1)=1
111 C ********QCD subprocesses
115 C ******* direct photon production
116 150 IF(INI(I_TYPE).NE.0) GO TO 800
119 C *****triggered subprocesses, jet, photon, heavy quark and DY
122 IF(I_TRIG.EQ.I_LAST) GO TO 260
123 PARP(81)=ABS(HIPR1(10))-0.25
124 CKIN(5)=ABS(HIPR1(10))-0.25
125 CKIN(3)=ABS(HIPR1(10))-0.25
126 CKIN(4)=ABS(HIPR1(10))+0.25
127 IF(HIPR1(10).LT.HIPR1(8)) CKIN(4)=-1.0
128 C WRITE(6,*) "TRIGGERED", CKIN(3), CKIN(4), CKIN(5), IHPR2(3)
132 IF (HIPR1(50) .EQ. 1) THEN
143 IF(IHPR2(3).EQ.1) THEN
155 DO 102 J=1,MIN(8,MDCY(21,3))
156 102 MDME(MDCY(21,2)+J-1,1)=0
158 IF(HINT1(1).GE.20.0 .and. IHPR2(18).EQ.1) ISEL=5
159 MDME(MDCY(21,2)+ISEL-1,1)=1
160 C ********QCD subprocesses
161 ELSE IF(IHPR2(3).EQ.2) THEN
162 C WRITE(6,*) "DIRECT PHOTON PRODUCTION"
166 C ********Direct photon production
167 c q+qbar->g+gamma,q+qbar->gamma+gamma, q+g->q+gamma
168 ELSE IF(IHPR2(3).EQ.3) THEN
169 CKIN(3)=MAX(0.0,HIPR1(10))
174 DO 105 J=1,MIN(8,MDCY(21,3))
175 105 MDME(MDCY(21,2)+J-1,1)=0
177 IF(HINT1(1).GE.20.0 .and. IHPR2(18).EQ.1) ISEL=5
178 MDME(MDCY(21,2)+ISEL-1,1)=1
179 C **********Heavy quark production
181 260 IF(INI(I_TYPE).NE.0) GO TO 800
185 IF(IHPR2(10).EQ.0) MSTP(122)=0
186 IF(NFP(JP,4).EQ.2212) THEN
188 ELSE IF(NFP(JP,4).EQ.-2212) THEN
190 ELSE IF(NFP(JP,4).EQ.2112) THEN
192 ELSE IF(NFP(JP,4).EQ.-2112) THEN
194 ELSE IF(NFP(JP,4).EQ.211) THEN
196 ELSE IF(NFP(JP,4).EQ.-211) THEN
198 ELSE IF(NFP(JP,4).EQ.321) THEN
200 ELSE IF(NFP(JP,4).EQ.-321) THEN
203 WRITE(6,*) 'unavailable beam type', NFP(JP,4)
205 IF(NFT(JT,4).EQ.2212) THEN
207 ELSE IF(NFT(JT,4).EQ.-2212) THEN
209 ELSE IF(NFT(JT,4).EQ.2112) THEN
211 ELSE IF(NFT(JT,4).EQ.-2112) THEN
213 ELSE IF(NFT(JT,4).EQ.211) THEN
215 ELSE IF(NFT(JT,4).EQ.-211) THEN
217 ELSE IF(NFT(JT,4).EQ.321) THEN
219 ELSE IF(NFT(JT,4).EQ.-321) THEN
222 WRITE(6,*) 'unavailable target type', NFT(JT,4)
226 C ******************indicate for initialization use when
227 C structure functions are called in PYTHIA
229 C WRITE(6,*) "CALL PYINIT WITH", CKIN(3), CKIN(4), MSTP(61), MSTP(71), MSTP(91)
230 CALL PYINIT_HIJING('CMS',BEAM,TARG,HINT1(1))
233 MINT44(I_TYPE)=MINT(44)
234 MINT45(I_TYPE)=MINT(45)
236 XSEC0(I_TYPE,0)=XSEC(0,1)
239 XSEC0(I_TYPE,I)=XSEC(I,1)
242 COEF0(I_TYPE,I,J)=COEF(I,J)
249 C ********Store the initialization information for
253 800 MINT(44)=MINT44(I_TYPE)
254 MINT(45)=MINT45(I_TYPE)
257 XSEC(0,1)=XSEC0(I_TYPE,0)
260 XSEC(I,1)=XSEC0(I_TYPE,I)
263 COEF(I,J)=COEF0(I_TYPE,I,J)