1
subroutine create_banner(lunw, swgt, nw)
3
c include 'nexternal.inc'
8
parameter (MaxParticles=15)
13
double precision swgt(99999)
17
integer ic(7,MaxParticles),next, luni
18
double precision P(0:3,MaxParticles),wgt
21
integer i,imax,j, nevent, nfound
22
character*35 infile,outfile
25
character*30 process,QED,QCD
27
c double precision etmin(3:nexternal),etamax(3:nexternal)
28
c double precision r2min(3:nexternal,3:nexternal)
29
c double precision s_min(nexternal,nexternal)
30
c common/to_cuts/ etmin ,etamax , r2min, s_min
32
c open the Process/input.dat
35
infile='Process/input.dat'
38
do while (.not. done .and. i .lt. 5)
39
c write(*,*) 'Attempting to open file ',infile
40
open(unit=luni,file=infile,status='old',err=101)
43
infile='../' // infile
46
read(luni,'(a30)') process
47
read(luni,'(a30)') QCD
48
read(luni,'(a30)') QED
51
process = '???? Process'
56
c call get_seed(iseed)
58
c All the info is gathered. Now start writing it out.
62
write(lunw,'(a70)') '## '
63
write(lunw,'(a70)') '##=================== '
64
write(lunw,'(a70)') '## Run-time options '
65
write(lunw,'(a70)') '##=================== '
66
write(lunw,'(a70)') '## '
67
write(lunw,'(a70)') '##********************************************************************'
68
write(lunw,'(a70)') '## Random Number seed *'
69
write(lunw,'(a70)') '##********************************************************************'
70
write(lunw,'(a3,i8,a)') '## ',iseed,' = iseed'
71
c write(lunw,'(a70)') '##********************************************************************'
72
c write(lunw,'(a70)') '## Standard Cuts *'
73
c write(lunw,'(a70)') '##********************************************************************'
74
c write(lunw,'(a13,8i8)') '## Particle ',(i,i=3,nexternal)
75
c write(lunw,'(a13,8f8.1)') '## Et >',(etmin(i),i=3,nexternal)
76
c write(lunw,'(a13,8f8.1)') '## Eta <',(etamax(i),i=3,nexternal)
78
c write(lunw,'(a,i2,a,8f8.1)') '## d R #',j,' >',(-0.0,i=3,j),
79
c & (r2min(i,j),i=j+1,nexternal)
81
c r2min(i,j)=r2min(i,j)**2 !Since r2 returns distance squared
85
c write(lunw,'(a,i2,a,8f8.1)') '## s min #',j,'>',
86
c & (s_min(i,j),i=3,nexternal)
88
c write(lunw,'(a70)') '##********************************************************************'
90
c Now write out specific information on the event set
99
mxwgt = max(swgt(i),mxwgt)
102
write(lunw,'(a70)') '## '
103
write(lunw,'(a70)') '##=================== '
104
write(lunw,'(a70)') '## Event information '
105
write(lunw,'(a70)') '##=================== '
106
write(lunw,'(a70)') '## '
107
write(lunw,'(a70)') '##********************************************************************'
108
write(lunw,'(a12,a30)') '## Process: ',process
109
write(lunw,'(a12,a30)') '## Max QCD: ',QCD
110
write(lunw,'(a12,a30)') '## Max QED: ',QED
111
write(lunw,'(a70)') '##********************************************************************'
112
write(lunw,'(a30,i10)') '## Number of Events : ',nevent
113
write(lunw,'(a30,e10.5)') '## Integrated weight (pb) : ',sum
114
write(lunw,'(a30,e10.5)') '## Max wgt : ',mxwgt
115
write(lunw,'(a30,e10.5)') '## Average wgt : ',sum/nevent
116
write(lunw,'(a70)') '##********************************************************************'