gminuit works with two types of scripts:
- The script writes a plotfile, and Gminuit computes the ChiSquared between the datafile and the plotfile; Fitting will attempt to minimize the ChiSquared. The datafile and plotfile are displayed using gnuplot.
- The script writes a single floating-point value to stdout, and Gminuit attempts to minimize this value. Neither the datafile nor the plotfile are used for this type of script.
This distribution includes the complete source (including MINUIT and c-minuit). It can be built easily on most modern Linux systems.
The MINUIT manual is included in the tarball as MinuitManual_94.1.pdf. It is slightly older than the version of MINUIT used.
Download and InstallationIt is not feasible to compile a Tck/Tk program that will run on any Linux system, so you need to build it on the system you intend to use it. There is a version in the tarball compiled on Fedora Core 4, which may or may not be useful. On my laptop the entire build takes a mere 10 seconds.
gminuit requires the gnuplot program, the Tcl/Tk development environment, and the C and f77 development environments. On RedHat-based systems these are RPMs: gnuplot, tcl, tcl-devel, tk, tk-devel, compat-gcc-32-g77 (the FORTRAN 77 compiler), plus gcc and libc and their friends.
Download the tarball gminuit-1.1.tgz and un-tar it in a suitable place:
tar -xzf gminuit-1.1.tgzIt unpacks into a directory named gminuit-1.1. On Linux it is then built in the usual way:
cd gminuit-1.1 ./configure make # optionally copy gminuit into /usr/local/bin: sudo make install # run gminuit without arguments to see the help text: gminuit # run the two test scripts: gminuit test1 gminuit test2On other systems, follow the directions in INSTALL (which is from c-minuit) to compile c-minuit. The Makefiles have been modified to compile gminuit as well as the c-minuit test program "m-test".
Run the program without arguments for a description of how to use gminuit, and what the input file format is.