HI/FIT and ADD


PAW version:2.08/14
Description
If you fit a histogram by a fortran function and then ADD this histogram with itself (ADD 1 1 2) you will get an error. PAW is hanging. The following macro produces the problem:

v/cr p3(3) r 0 1 0
v/cr a(10) r 1 3 2 5 4 8 6 10 7 9
1d 1 '' 10 0 10
put/con 1 a
h/fit 1 p2.f q 3 p3
add 1 1 2
h/pl 2
where p2.f is
      REAL FUNCTION P2(X)
      REAL X, PAR(3)
      COMMON /PAWPAR/PAR
*
      P2 = PAR(1) + PAR(2)*X + PAR(3)*X*X
*
      RETURN
      END
Fixed in: HBOOK 4.24/10
Workaround
None


Release NotesKnown bugsFAQsContributionsTutorialReference manualDown loadMiscellaneous

Paw.Support@cern.ch