Tips from Lauri for exercises 7
This exercise is about a problem which occurs every now and then in high 
energy physics: somebody has invented some nice package to 
calculate/simulate a thing which you also need in your analysis - then 
you ask for the package and if you are lucky, there is also some piece 
of manual or example ... :)

Here are some tips for compiling and running the hdecay and feynhiggs 
programs. The programs are working at least on korundi.

hdecay
======

There seems to be an issue of compiling hdecay. Since both ruuvi and 
korundi are 64-bit machines, you have to tell the compiler to use 32-bit 
libraries. This is done by adding the flag -m32 to the compiling and 
linking command. So you need to do the following change in the makefile:

--

FC = f77  -->  FC = F77 -m32

--

With this addition, hdecay compiles and runs on both ruuvi and korundi 
(you can ignore all the warnings when compiling). Please note, that in 
order to run the program, you need to get also the hdecay.in file from 
the hdecay webpage.

To solve the exercise,
0) get the hdecay.tar.gz package and the other files from the hecay web 
page, unpack the packages, and compile with the above makefile:
type "make" (and don't bother the warnings).
1) edit the hdecay.in file to produce the necessary output (consult 
manual if necessary) and the run the program (./run)
2) try to find out where your answer is
3) write a small ROOT script to produce a plot for how the total width 
changes as the function of the SM Higgs boson mass. You may use as mass 
limits for example 80-1000 GeV (if the calculation breaks down for some 
mass points, just ignore it).
4) Return all the files you have edited together with some message how 
you did it and what you found as answer in a tar ball

FeynHiggs
=========
1) get the latest version of the program and unpack it
   wget 
http://wwwth.mppmu.mpg.de/members/heinemey/feynhiggs/newversion/FeynHiggs-2.6.5.tar.gz
   tar xvfz FeynHiggs-2.6.5.tar.gz
   cd FeynHiggs-2.6.5
2) compile with
   ./configure
   make
   make install
You can ignore the error about the MFeynHiggs (it is not needed in this 
exercise).
3) find the example code, compile, and run it
   cd example
   g77 demo.F -I../src/include/ -L ../$(HOSTTYPE)/lib -lFH -o demo.exe
   demo.exe
4) you need to find the width (Gamma) in the documentation (tip: 
FHCouplings)
5) you need to find the command for getting the total width for the SM 
Higgs boson (tip: try also to find what index you should use for the 
Higgs boson)
6) now modify the demo.F (the cc -file does not seem to work, so do it 
in FORTRAN)
7) tip: you just need to use the CALL and PRINT commands, nothing fancy 
is needed (see the manual for the table dimensions)
8) compile again the demo program (see point 3) and run it to get the 
result (i.e. the total width for the chosen SM Higgs boson mass).
9) Return all the files you have edited together with some message how 
you did it and what you found as answer in a tar ball

Good luck for solving!
Lauri

PS. Note that the return date for the exercises is Monday 15.3.; no 
exercise session or lectures on 8.-12.3.