Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
      subroutine uplogo
      implicit double precision(a-h, o-z)
	implicit integer(i-n)

	common/mixevnt/xbcsec(8),imix,imixtype
      common/pypars/mstp(200),parp(200),msti(200),pari(200)
      common/pydat1/mstu(200),paru(200),mstj(200),parj(200)
	double complex colmat,bundamp
      common/upcom/ecm,pmbc,pmb,pmc,fbcc,pmomup(5,8),
     & 	colmat(10,64),bundamp(4),pmomzero(5,8)
	common/counter/ibcstate,nev
      common/subopen/subfactor,subenergy,isubonly
	common/confine/ptcut,etacut
      common/funtrans/nq2,npdfu
	common/usertran/ishower,idpp
      common/qqbar/iqqbar,iqcode
      common/coloct/ioctet
	common/octmatrix/coeoct
	common/outpdf/ioutpdf,ipdfnum
	common/wavezero/fbc
      character*8 alporder
	
	write(*,'(a)') 
     &	'......................................................'
	write(*,'(a)') 
     &	'......................................................'
	write(*,'(a)')
     &	'...........    BCVEGPY2.1 LINUX version ..............'
	write(*,'(a)') 
     &	'......................................................'
      write(3,'(a)') 
     &	'......................................................'
      write(3,'(a)') 
     &	'......................................................'
	write(3,'(a)') 
     &	'...........    BCVEGPY2.1 LINUX version ..............'
      write(3,'(a)') 
     &	'......................................................'
	write(*,'(a)') 
     &	'.... copyright (c)  c.h. chang  and x.g. wu  ..........'
      write(3,'(a)') 
     &	'.... copyright (c)  c.h. chang  and x.g. wu  ..........'
	write(*,'(a)') 
     &	'.... any question email to: wuxg@itp.ac.cn  ..........'
      write(3,'(a)') 
     &	'.... any question email to: wuxg@itp.ac.cn  ..........'
	write(*,'(a)') 
     &	'......................................................'
	write(*,'(a)') 
     &	'......................................................'
      write(3,'(a)') 
     &	'......................................................'
      write(3,'(a)') 
     &	'......................................................'
       write(*,*)
       write(3,*)
      write(*,'(a)')
     &  '******************************************************'
      write(3,'(a)')
     &  '******************************************************'
      write(*,'(a)')
     &  '**********        running information       **********'
      write(3,'(a)')
     &  '**********        running information       **********'
      write(*,'(a)')
     &  '******************************************************'
      write(3,'(a)')
     &  '******************************************************'
       write(*,*)
       write(3,*)

c*****************************************************************

	write(*,'(a)') 
     &	'......................................................'
	write(*,'(a)')
     &	'.............. initial parameters ....................'
	write(*,'(a)') 
     &	'......................................................'
      write(3,'(a)') 
     &	'......................................................'
	write(3,'(a)') 
     &	'.............. initial parameters ....................'
      write(3,'(a)') 
     &	'......................................................'

      if(imix.eq.1) go to 111
      
      if(ibcstate.eq.3) then
        write(*,*)
	  write(*,'(a)') 'get the result for bc in 1^p_1.'
	  write(3,*)
	  write(3,'(a)') 'get the result for bc in 1^p_1.'
	end if

      if(ibcstate.eq.4) then
        write(*,*)
	  write(*,'(a)') 'get the result for bc in 3^p_0.'
	  write(3,*)
	  write(3,'(a)') 'get the result for bc in 3^p_0.'
	end if

      if(ibcstate.eq.5) then
        write(*,*)
	  write(*,'(a)') 'get the result for bc in 3^p_1.'
	  write(3,*)
	  write(3,'(a)') 'get the result for bc in 3^p_1.'
	end if

      if(ibcstate.eq.6) then
        write(*,*)
	  write(*,'(a)') 'get the result for bc in 3^p_2.'
	  write(3,*)
	  write(3,'(a)') 'get the result for bc in 3^p_2.'
	end if

	if (ibcstate.eq.1) then
	  write(*,*)
	  write(*,'(a)') 'get the result for bc in 1^s_0.'
	  write(3,*)
	  write(3,'(a)') 'get the result for bc in 1^s_0.'
	end if

	if (ibcstate.eq.2) then
	  write(*,*)
	  write(*,'(a)') 'get the result for bc in 3^s_1.'
	  write(3,*)
	  write(3,'(a)') 'get the result for bc in 3^s_1.'
	end if

      if(ioctet.eq.0) then
	  write(*,'(a)') 'bc in color-singlet state.'
	  write(3,'(a)') 'bc in color-singlet state.'
	end if

	if(ioctet.eq.1) then 
	  write(*,'(a)') 'bc in color-octet state.'
	  write(3,'(a)') 'bc in color-octet state.'
	end if

111   continue

c*************************************************

	if(imix.eq.1) then
         write(*,*)
         write(3,*)
	 write(*,'(a)') 'get the mixing results for gluon-gluon fusion.'
	 write(3,'(a)') 'get the mixing results for gluon-gluon fusion.'
	 if(imixtype.eq.1) then
	  write(*,'(a)') 
     &	'states to be mixed: 1s0,3s1,1p1,3p0,3p1,3p2,(1s0)_8,(3s1)_8'
	  write(3,'(a)')
     &	'states to be mixed: 1s0,3s1,1p1,3p0,3p1,3p2,(1s0)_8,(3s1)_8'
	 end if
	 if(imixtype.eq.2) then
	  write(*,'(a)') 'states to be mixed: color-singlet 1s0,3s1'
	  write(3,'(a)') 'states to be mixed: color-singlet 1s0,3s1'
	 end if
	 if(imixtype.eq.3) then
	  write(*,'(a)') 
     &	  'states to be mixed: 1p1,3p0,3p1,3p2,(1s0)_8,(3s1)_8'
	  write(3,'(a)') 
     &	  'states to be mixed: 1p1,3p0,3p1,3p2,(1s0)_8,(3s1)_8'
	 end if
	end if

c*************************************************

	if(npdfu.eq.1) then
	  write(3,41)'generate evnts', nev,'teva energy(gev)',ecm
	  write(*,41)'generate evnts', nev,'teva energy(gev)',ecm
	else    !npdfu=2
	  write(3,41) 'generate evnts', nev,'lhc energy(gev)',ecm
	  write(*,41) 'generate evnts', nev,'lhc energy(gev)',ecm
	end if

      write(*,'(a)') '*************************************************'
      write(3,'(a)') '*************************************************'

      if(iqqbar.eq.0) then
	 write(*,'(a)')'*   using subprocess: g+g->bc+b+\bar{c}       *'
	 write(3,'(a)')'*   using subprocess: g+g->bc+b+\bar{c}       *'
	else
	 if(iqcode.eq.1) then
	  if(ioutpdf.eq.1) then
c...for outer pdf, code for u is 1 , d is 2 and s is 3.
	   write(*,'(a)')'*   using subprocess: u+~u->bc+b+\bar{c}   *'
	   write(3,'(a)')'*   using subprocess: u+~u->bc+b+\bar{c}   *'
	  end if
c...in pythia, code for d is 1, u is 2 and s is 3.
	  if(ioutpdf.eq.0) then
	   write(*,'(a)')'*   using subprocess: d+~d->bc+b+\bar{c}   *'
	   write(3,'(a)')'*   using subprocess: d+~d->bc+b+\bar{c}   *'
	  end if
       end if
	 if(iqcode.eq.2) then
c...for outer pdf, code for u is 1, d is 2 and s is 3.
	  if(ioutpdf.eq.1) then
	   write(*,'(a)')'*   using subprocess: d+~d->bc+b+\bar{c}   *'
	   write(3,'(a)')'*   using subprocess: d+~d->bc+b+\bar{c}   *'
        end if
c...in pythia, code for d is 1, u is 2 and s is 3.
	  if(ioutpdf.eq.0) then
	   write(*,'(a)')'*   using subprocess: u+~u->bc+b+\bar{c}   *'
	   write(3,'(a)')'*   using subprocess: u+~u->bc+b+\bar{c}   *'
        end if
	 end if
	 if(iqcode.eq.3) then
	  write(*,'(a)')'*   using subprocess: s+~s->bc+b+\bar{c}   *'
	  write(3,'(a)')'*   using subprocess: s+~s->bc+b+\bar{c}   *'
       end if
	end if

      write(*,'(a)') '*************************************************'
      write(3,'(a)') '*************************************************'
	
	if(imix.eq.0) then
         if(ibcstate.lt.3) then
	   write(3,32) pmbc,pmb,pmc,fbc
	   write(*,32) pmbc,pmb,pmc,fbc
         else
           write(3,33) pmbc,pmb,pmc,fbc
           write(*,33) pmbc,pmb,pmc,fbc
         end if
	else
	 write(3,31) pmbc,pmb,pmc
	 write(*,31) pmbc,pmb,pmc
         write(*,'(a)') 'R(0)=1.241 and R1(0)=0.44833'
         write(3,'(a)') 'R(0)=1.241 and R1(0)=0.44833'
	end if

	if(isubonly.eq.0) then
	 if(mstu(111).eq.0) alporder='const'
	 if(mstu(111).eq.1) alporder='lo'
	 if(mstu(111).eq.2) alporder='nlo'
	 write(*,'(a,i2,3x,a,a)')'q2 type=',nq2, 'alph order=',alporder
       write(3,'(a,i2,3x,a,a)')'q2 type=',nq2, 'alph order=',alporder
	 if(ioutpdf.eq.0) then
	  write(*,'(a)') 'the innter pdfs which are from pythia'
	  write(3,'(a)') 'the innter pdfs which are from pythia'
c...you may add some more from pythia manual book.
	  if(mstp(51).eq.1) then
	    write(*,'(a)')'pdf: cteq 3l'
	    write(3,'(a)')'pdf: cteq 3l'
	  end if
	  if(mstp(51).eq.2) then
	    write(*,'(a)')'pdf: cteq 3m'
	    write(3,'(a)')'pdf: cteq 3m'
	  end if
	  if(mstp(51).eq.7) then
	    write(*,'(a)')'pdf: cteq 5l'
	    write(3,'(a)')'pdf: cteq 5l'
	  end if
	  if(mstp(51).eq.8) then
	    write(*,'(a)')'pdf: cteq 5m1'
	    write(3,'(a)')'pdf: cteq 5m1'
	  end if
	  if(mstp(51).eq.13) then
	    write(*,'(a)')'pdf: ehlq set 2'
	    write(3,'(a)')'pdf: ehlq set 2'
	  end if
	 end if
	 if(ioutpdf.eq.1) then
       write(*,'(a)') 'the new version of outer pdfs which are from www'
       write(3,'(a)') 'the new version of outer pdfs which are from www'
	   if(ipdfnum.eq.100) then
	     write(*,'(a)')'pdf: grv98lo; alph in lo'
		 write(3,'(a)')'pdf: grv98lo; alph in lo'
	   end if
	   if(ipdfnum.eq.200) then
	     write(*,'(a)')'pdf: mstr2001lo; alph in lo'
		 write(3,'(a)')'pdf: mstr2001lo; alph in lo'
	   end if
	   if(ipdfnum.eq.300) then
	     write(*,'(a)')'pdf: cteq6l1; alph in lo'
		 write(3,'(a)')'pdf: cteq6l1; alph in lo'
	   end if
	 end if
	end if

	if(isubonly.eq.1) then
	  write(*,'(a)') 'alpha_s take constant value: 0.20'
	end if

      write(*,'(a,i3)') 'using pythia idwtup=',idpp
	write(3,'(a,i3)') 'using pythia idwtup=',idpp

	write(*,'(a,g10.4,a)') 'ptcut=',ptcut,'gev'
	write(3,'(a,g10.4,a)') 'ptcut=',ptcut,'gev'

	if(etacut.gt.1.0d+5) then
	   write(*,'(a)') 'no rapidity cut'
	   write(3,'(a)') 'no rapidity cut'
	else
	   write(*,'(a,g10.4)') 'rapidity cut=',etacut
	   write(3,'(a,g10.4)') 'rapidity cut=',etacut
	end if

       write(*,'(a)') '------------------------------------'
       write(3,'(a)') '------------------------------------'

31    format('m_{bc}=',g11.5,'m_{b}=',g11.5,'m_{c}=',g11.5)
32    format('m_{bc}=',g11.5,'m_{b}=',g11.5,'m_{c}=',g11.5,
     &       'R(0)=',g11.5)
33    format('m_{bc}=',g11.5,'m_{b}=',g11.5,'m_{c}=',g11.5,
     &       'R1(0)=',g11.5)

41    format(a,1x,i9,';',3x,a,g11.3,1x)

	end