EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
crsjet.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file crsjet.f
1 C
2 C
3 C THIS PROGRAM IS TO CALCULATE THE JET CROSS SECTION
4 C THE INTEGRATION IS DONE BY USING VEGAS
5 C
6  SUBROUTINE crsjet
7  IMPLICIT REAL*8(a-h,o-z)
8  REAL hipr1(100),hint1(100)
9  common/hiparnt/hipr1,ihpr2(50),hint1,ihnt2(50)
10  SAVE /hiparnt/
11  common/njet/n,ip_crs
12  SAVE /njet/
13  common/bveg1/xl(10),xu(10),acc,ndim,ncall,itmx,nprn
14  SAVE /bveg1/
15  common/bveg2/xi(50,10),si,si2,swgt,schi,ndo,it
16  SAVE /bveg2/
17  common/bveg3/f,ti,tsi
18  SAVE /bveg3/
19  common/seedvax/num1
20  SAVE /seedvax/
21  EXTERNAL fjet,fjetrig
22 C
23 c************************
24 c NCALL give the number of inner-iteration, ITMX
25 C gives the limit of out-iteration. Nprn is an option
26 C ( 1: print the integration process. 0: do not print)
27 C
28 
29 C print *, 'ncall = ', ncall
30 C print *, 'itmx = ', itmx
31 C print *, 'nprn = ', nprn
32 C print *, 'acc = ', acc
33 C print *, 'xl(1), xu(1) = ', XL(1), XU(1)
34 C print *, 'xl(2), xu(2) = ', XL(2), XU(2)
35 C print *, 'xl(3), xu(3) = ', XL(3), XU(3)
36 
37 C +++BAC
38 C
39 C The following line inserted to improve the accuracy of the jet cross-section
40 C integration for LHC purposes where integration region runs out to XT=1 where the
41 C contribution is infinitesimal. Found to be necessary because large jet cross-section
42 C errors were affecting total and inelastic cross-sections.
43 C
44  ncall = 4000
45 
46 C ---BAC
47 
48  ndim=3
49  ip_crs=0
50  CALL vegas(fjet,avgi,sd,chi2a)
51  hint1(14)=avgi/2.5682
52  IF(ihpr2(6).EQ.1 .AND. ihnt2(1).GT.1) THEN
53  ip_crs=1
54  CALL vegas(fjet,avgi,sd,chi2a)
55  hint1(15)=avgi/2.5682
56  ENDIF
57  IF(ihpr2(6).EQ.1 .AND. ihnt2(3).GT.1) THEN
58  ip_crs=2
59  CALL vegas(fjet,avgi,sd,chi2a)
60  hint1(16)=avgi/2.5682
61  ENDIF
62  IF(ihpr2(6).EQ.1.AND.ihnt2(1).GT.1.AND.ihnt2(3).GT.1) THEN
63  ip_crs=3
64  CALL vegas(fjet,avgi,sd,chi2a)
65  hint1(17)=avgi/2.5682
66  ENDIF
67 C ********Total inclusive jet cross section(Pt>P0)
68 C
69  IF(ihpr2(3).NE.0) THEN
70  ip_crs=0
71  CALL vegas(fjetrig,avgi,sd,chi2a)
72  hint1(61)=avgi/2.5682
73  IF(ihpr2(6).EQ.1 .AND. ihnt2(1).GT.1) THEN
74  ip_crs=1
75  CALL vegas(fjetrig,avgi,sd,chi2a)
76  hint1(62)=avgi/2.5682
77  ENDIF
78  IF(ihpr2(6).EQ.1 .AND. ihnt2(3).GT.1) THEN
79  ip_crs=2
80  CALL vegas(fjetrig,avgi,sd,chi2a)
81  hint1(63)=avgi/2.5682
82  ENDIF
83  IF(ihpr2(6).EQ.1.AND.ihnt2(1).GT.1.AND.ihnt2(3).GT.1) THEN
84  ip_crs=3
85  CALL vegas(fjetrig,avgi,sd,chi2a)
86  hint1(64)=avgi/2.5682
87  ENDIF
88  ENDIF
89 C ********cross section of trigger jet
90 C
91  RETURN
92  END