FIT.KUMAC Documentation

1. General description

The PAW macro FIT.KUMAC is an easy interface to fit several functions to a histogram. The general syntax for calling FIT is as follows:

with 2. Background functions

As mentioned in (1), background functions may be specified by precedence of an '&'. This is advantageous in some cases:

3. Technical details

The package consists of two files:

FIT.KUMAC is a KUIP-macro which contains the directives to PAW. FUNCTION_FIT_HISTOGRAM.FOR   is a FORTRAN file, in which the functions are implemented. Both communicate via the COMIS interface, using common blocks and vectors. The FORTRAN routine uses several vectors declared in FIT.KUMAC:

All mentioned vectors remain in memory to be available after the fit. That way, a function may be iteratively fitted to an histogram, or an arbitrary combination of the fitted functions can be drawn:
Some examples for the beginning