MHBOOK: A Fortran utility for adding HBOOK histograms

Download the FORTRAN Source

Compliation instructions are in the source comments. A copy of the executable is available as
~twistonl/bin/mhbook
on the TWIST cluster.

Some operating instructions from Andrei Gaponenko:

In my old stuff I found a very short FORTRAN program which adds all corresponding histograms from a series of hbook files and writes out a new hbook file with the sums. Names of hbook files to be added are read from STDIN. I just try to add histograms for 10 sample runs 8160 to 8169 by doing:
ls /twist/data7/auto/split_mofia/current/data/00816*.hbook | ~twistonl/bin/mhbook
and it worked. The program wrote out a "compact.hbook" file with the sum. Histogram number 1 is not correct in the sum, but I don't think it's a big problem. Efficiencies are also not additive, of course.


Back to the TWIST Software Page.