File indexing completed on 2023-03-17 11:04:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 SUBROUTINE SETPARAMETERS
0015
0016 IMPLICIT DOUBLE PRECISION(A-H, O-Z)
0017 IMPLICIT INTEGER(I-N)
0018
0019 include "hardcol_set_par.inc"
0020
0021
0022
0023 COMMON/PYPARS/MSTP(200),PARP(200),MSTI(200),PARI(200)
0024 COMMON/PYDAT1/MSTU(200),PARU(200),MSTJ(200),PARJ(200)
0025 COMMON/PYDATR/MRPY(6),RRPY(100)
0026 COMMON/PYSUBS/MSEL,MSELPD,MSUB(500),KFIN(2,-40:40),CKIN(200)
0027 COMMON/HCLPAR/ECM,NEV
0028 SAVE /PYPARS/,/PYDAT1/,/PYDATR/,/PYSUBS/,/HCLPAR/
0029
0030
0031
0032
0033
0034
0035 Call Read_parameter_settings
0036
0037
0038
0039 mrpy(1) = irandom
0040 write( 6, * ) ' '
0041 write( 6, * ) ' Change default value of random, mrpy(1), to ',
0042 + mrpy(1)
0043 write( 6, * ) ' '
0044
0045
0046
0047
0048 ecm = ENERGYOFLHC
0049 nev = NUMOFEVENTS
0050 MSTP(2) = MSTP2
0051 CKIN(3) = CKIN3
0052 MSEL = MSEL0
0053 MSUB(406) = MSUB406
0054 MSUB(407) = MSUB407
0055 MSUB(408) = MSUB408
0056 MSTP(198) = MSTP198
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068 return
0069 end
0070
0071
0072
0073
0074 SUBROUTINE Read_parameter_settings
0075
0076
0077 implicit double precision(a-h, o-z)
0078 implicit integer(i-n)
0079
0080 Namelist / hardcol_set_par / ENERGYOFLHC, NUMOFEVENTS,
0081 + MSTP2, CKIN3, MSEL0, MSUB406, MSUB407, MSUB408, MSTP198,
0082 + irandom
0083
0084 include "hardcol_set_par.inc"
0085
0086
0087
0088 open( unit=1, file='hardcol_set_par.nam',Status='Old',Err=99)
0089 read( 1, nml=hardcol_set_par, err=90)
0090 write( 6, * ) ' '
0091 write( 6, * ) ' Contents of namelist *hardcol_set_par*: '
0092 write( 6, nml=hardcol_set_par)
0093 write( 6, * ) ' '
0094 Close( 1 )
0095 Return
0096
0097 90 Write( 6, * ) ' !!!!! Unable to read namelist hardcol_set_par '
0098 Call Exit
0099 99 Write( 6, * ) ' !!!!! Unable to open hardcol_set_par.nam'
0100 Call Exit
0101 End
0102