9 SUBROUTINE mnmnot(FCN,ILAX,ILAX2,VAL2PL,VAL2MI,FUTIL)
23 IMPLICIT DOUBLE PRECISION (
a-
h,
o-
z)
46 2/mn7ext/ u(mne) ,alim(mne) ,blim(mne)
47 3/mn7err/ erp(mni) ,ern(mni) ,werr(mni) ,globcc(mni)
48 4/mn7inx/ nvarl(mne) ,niofex(mne),nexofi(mni)
49 5/mn7int/
x(mni) ,xt(mni) ,dirin(mni)
50 6/mn7fx2/
xs(mni) ,xts(mni) ,dirins(mni)
51 7/mn7der/ grd(mni) ,g2(mni) ,gstep(mni) ,gin(mne) ,dgrd(mni)
52 8/mn7fx3/ grds(mni) ,g2s(mni) ,gsteps(mni)
53 9/mn7fx1/ ipfix(mni) ,npfix
54 a/mn7var/ vhmat(mnihl)
55 b/mn7vat/ vthmat(mnihl)
56 c/mn7sim/
p(mni,mni+1),pstar(mni),pstst(mni) ,pbar(mni),prho(mni)
58 parameter(maxdbg=10, maxstk=10, maxcwd=20,
maxp=30, maxcpt=101)
61 d/mn7npr/ maxint ,npar ,maxext ,nu
62 e/mn7iou/ isysrd ,isyswr ,isyssa ,npagwd ,npagln ,newpag
63 e/mn7io2/ istkrd(maxstk) ,nstkrd ,istkwr(maxstk) ,nstkwr
64 f/mn7tit/ cfrom ,cstatu ,ctitl ,cword ,cundef ,cvrsn ,covmes
65 g/mn7flg/ isw(7) ,idbg(0:maxdbg) ,nblock ,icomnd
66 h/mn7min/ amin ,
up ,edm ,fval3 ,epsi ,apsi ,dcovar
67 i/mn7cnv/ nfcn ,nfcnmx ,nfcnlc ,nfcnfr ,itaur,istrat,nwrmes(2)
69 k/mn7log/ lwarn ,lrepor ,limset ,lnolim ,lnewmn ,lphead
70 l/mn7cns/ epsmac ,epsma2 ,vlimlo ,vlimhi ,undefi ,bigedm,updflt
71 m/mn7rpt/ xpt(maxcpt) ,ypt(maxcpt)
72 n/mn7cpt/ chpt(maxcpt)
73 o/mn7xcr/ xmidcr ,ymidcr ,xdircr ,ydircr ,ke1cr ,ke2cr
74 CHARACTER CTITL*50, CWORD*(maxcwd), CUNDEF*10, CFROM*8,
75 + cvrsn*6, covmes(0:3)*22, cstatu*10, chpt*1
76 LOGICAL LWARN, LREPOR, LIMSET, LNOLIM, LNEWMN, LPHEAD
78 dimension xdev(mni),w(mni),gcc(mni)
79 CHARACTER*4 CPOS,CNEG,CSIG
94 DO 130
j= 1, mpar*(mpar+1)/2
95 130 vthmat(
j) = vhmat(
j)
104 IF (nvarl(ilax) .EQ. 1)
THEN 105 alim(ilax) = ut -100.*w(it)
106 blim(ilax) = ut +100.*w(it)
109 xunit = sqrt(
up/vthmat(ndex))
112 IF (
i .EQ. it)
GO TO 162
115 indx = imax*(imax-1)/2 + min(it,
i)
116 xdev(marc) = xunit*vthmat(indx)
120 IF (ierr .GT. 0)
THEN 121 WRITE (isyswr,
'(A,I5,A,I5)')
122 +
' MINUIT ERROR. CANNOT FIX PARAMETER',ilax,
' INTERNAL',it
129 IF (isig .EQ. 1)
THEN 137 IF (isw(5) .GT. 1)
WRITE (isyswr,806) csig,ilax,cpnam(ilax)
138 806
FORMAT (/
' DETERMINATION OF ',a4,
'TIVE MINOS ERROR FOR PARAMETER',
140 IF (isw(2).LE.0)
CALL mnwarn(
'D',
'MINOS',
'NO COVARIANCE MATRIX.')
141 nlimit = nfcn + nfmxin
142 istrat = max(istrav-1,0)
144 u(ilax) = ut + sig*du1
145 u(ilax) = min(u(ilax),blim(ilax))
146 u(ilax) = max(u(ilax),alim(ilax))
149 IF (abs(delu)/(abs(ut)+abs(u(ilax))) .LT. epsmac)
GO TO 440
152 185
x(
i) = xt(
i) + fac*xdev(
i)
153 IF (isw(5) .GT. 1)
WRITE (isyswr,801) ilax,ut,delu,u(ilax)
154 801
FORMAT (/
' PARAMETER',i4,
' SET TO',e11.3,
' + ',
e10.3,
' = ',e12.3)
162 nfcnmx = nlimit - nfcn
163 CALL mncros(fcn,aopt,iercr,futil)
164 IF (abest-amin .GT. 0.01*
up)
GO TO 650
165 IF (iercr .EQ. 1)
GO TO 440
166 IF (iercr .EQ. 2)
GO TO 450
167 IF (iercr .EQ. 3)
GO TO 460
169 eros = xmidcr-ut + aopt*xdircr
170 IF (isw(5) .GT. 1)
WRITE (isyswr,808) csig,ilax,cpnam(ilax),eros
171 808
FORMAT (/9
x,4hthe ,a4, 29htive minos error of
PARAMETER,i3, 2
h 172 +, ,a10, 4
h,
is ,e12.4)
175 440
IF (isw(5) .GE. 1)
WRITE(isyswr,807) csig,ilax,cpnam(ilax)
176 807
FORMAT (5
x,
'THE ',a4,
'TIVE MINOS ERROR OF PARAMETER',i3,
', ',
a,
177 +
', EXCEEDS ITS LIMIT.'/)
180 450
IF (isw(5) .GE. 1)
WRITE (isyswr, 802) csig,ilax,nfmxin
181 802
FORMAT (9
x,
'THE ',
a,
'TIVE MINOS ERROR',i4,
' REQUIRES MORE THAN',
182 + i5,
' FUNCTION CALLS.'/)
185 460
IF (isw(5) .GE. 1)
WRITE (isyswr, 805) csig,ilax
186 805
FORMAT (25
x,
a,
'TIVE MINOS ERROR NOT CALCULATED FOR PARAMETER',i4/)
189 480
IF (isw(5) .GT. 1)
WRITE (isyswr,
'(5X, 74(1H*))')
190 IF (sig .LT. zero)
THEN 192 IF (ilax2.GT.0 .AND. ilax2.LE.nu) val2mi = u(ilax2)
195 IF (ilax2.GT.0 .AND. ilax2.LE.nu) val2pl = u(ilax2)
202 DO 550
j= 1, mpar*(mpar+1)/2
203 550 vhmat(
j) = vthmat(
j)
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
block data include Zlatfit h c fitting region data data data data data d0 data data d0 data data h g *is for param c g data up(2, 1)/7.0d0/
dE dx *! Nuc Int sampling table e
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon true
subroutine mnmnot(FCN, ILAX, ILAX2, VAL2PL, VAL2MI, FUTIL)
! constants thru Cosmos real ! if multiplied to deg radian Torad ! light velocity m sec ! infinty ! kg m2 *Togpcm2 g cm2 ! g cm2 *Tokgpm2 kg m2 ! cm *Tom m ! m *Tocm cm ! g cm3 *Tokgpm3 kg m3 ! kg m3 *Togpcm3 g cm3 ! sec *Tonsec nsec ! Tesla m ! Avogadro *A2deninv ! mfp *n * xs
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
dE dx *! Nuc Int sampling table d
dE dx *! Nuc Int sampling table b
block data include Zlatfit h c fitting region data data data data data d0 data data d0 data data m
subroutine mnfixp(IINT, IERR)
subroutine mncros(FCN, AOPT, IERCR, FUTIL)
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon ! knockon is considered Obsolete *PhotoProd false
dE dx *! Nuc Int sampling table h
dE dx *! Nuc Int sampling table g
*************************block data cblkTracking *************************implicit none data *ExactThick *Freec *RatioToE0 *MagChgDist *TimeStructure *Truncn *Truncx data *IncMuonPolari *KEminObs *ThinSampling *EthinRatio *Generate *LpmEffect *MagPairEmin e10
subroutine mnwarn(COPT, CORG, CMES)
block data cblkIncident data *Za1ry is
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
dE dx *! Nuc Int sampling table f
dE dx *! Nuc Int sampling table c