Second patch of FairRoot release v-15.07
The main reason for this patch was to correct a problem with TF1 when using ROOT6.
In FairRoot a TF1 was used which was created out of a TString definition of an expression which was put together on the fly. This was done to easily change a parameter of the expression from the macro.
The old definition of the time distribution between two events was found only working with ROOT5. With ROOT6 the defintion of the function was somehow brocken and the returned random value was allways infinity.
The new version of functions doesn't use a TString any longer but a inline expression using standard C++ functions.
Also two minor issues have been fixed.
- Add one more environment variable which is needed for ROOT6.
The variable defines the location of the needed header files and was missing when the environment is defined
for scripts which should run at test time. The problem was already fixed in case a root macro is executed. - Backport FairMonitor.
The class can't be used in this release but is needed in order to compile some macro from the CBM experiment
properly when using ROOT6.