EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
setctq5.F
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file setctq5.F
1 
2  Subroutine setctq5 (Iset)
3  Implicit Double Precision (a-h,o-z)
4  include "pepadm.inc"
5  parameter(isetmax=9)
6  Character flnm(isetmax)*100, tablefile*40
7  Data (flnm(i), i=1,isetmax)
8  > / './pdf/cteq5m.tbl','./pdf/cteq5d.tbl','./pdf/cteq5l.tbl',
9  > './pdf/cteq5hj.tbl',
10  > './pdf/cteq5hq.tbl','./pdf/cteq5f3.tbl','./pdf/cteq5f4.tbl',
11  > './pdf/cteq5m1.tbl','./pdf/ctq5hq1.tbl' /
12  Data tablefile / 'test.tbl' /
13  Data isetold, isetmin, isettest / -987, 1, 911 /
14 
15 C If data file not initialized, do so.
16  If(iset.ne.isetold) then
17  iu= nextun5()
18  If (iset .eq. isettest) then
19  print* ,'Opening ', tablefile
20  21 Open(iu, file=tablefile, status='OLD', err=101)
21  goto 22
22  101 print*, tablefile, ' cannot be opened '
23  print*, 'Please input the .tbl file:'
24  Read (*,'(A)') tablefile
25  goto 21
26  22 Continue
27  ElseIf (iset.lt.isetmin .or. iset.gt.isetmax) Then
28  print *, 'Invalid Iset number in SetCtq5 :', iset
29  stop
30  Else
31 c Tablefile=Flnm(Iset)
32 c Open(IU, File=Tablefile, Status='OLD', Err=100)
33  print*, 'We are here yeah'
34  print*, cunpol
35  Open(iplst(2), file=cunpol, status='OLD', err=100)
36  iu=iplst(2)
37  Endif
38  Call readtbl5(iu)
39  Close (iu)
40  isetold=iset
41  Endif
42  Return
43 
44  100 print *, ' Data file ', tablefile, ' cannot be opened '
45  >//'in SetCtq5!!'
46  stop
47 C ********************
48  End