New fitting method introduced
Fix for v4
Unintended change reverted
Fix problem in ecalrec.C - temperature correction for MC was depending on random memory.

Though it doesn't affect us as the temp. correction was disabled for MC (Tref = Tsim = 10 deg).
Reviewed by S. Di Falco.
resolv rndm init
Remove unused TofSlowTemp class, which no longer worked, due to changes in getenvsensid() some years ago.

Per discussion with E. Choumilov, it's better to remove it alltogether. As side-effect this fixes the last GCC + Wall issue (in non-OpenMP builds).
Land another harmless patch, which fixes all RICH related GCC + OpenMP linker errors that I was fighting. Doesn't affect ICC builds in any way.

It turns out that you have to start the line with "!$OMP threadprivate..." not with "\s\s\s!$OMP threadprivate..." in include/richrec_lip*.h.

You can use "    !$OMP THREADPRIVATE..." in .F / .f files, but when including the header file containing
the fortran code (like it's the case for include/richrec_lip*.h) the OpenMP pragmas are only recognized when
the line actually starts with "!$OMP...", without leading whitespace. Very subtle issue, was hard to find.
Restore TkDBc::Head()->Write() call that was commented out by accident.
build913
Summary: Fix bug for bad fits with large chi2.


As discussed with Paolo a while ago there was a bug in TrTrack::FitT when the
fit did not work and returned very large chi2. In that case the "retbad" return
code in TrTrack::FitT flipped sign.

Then, the iTrTrackPar that was returned by TrTrack::iTrTrackPar was positive
which is indicative of a good fit - but that was not the case.

The discussed fix was to cap the chi2 at 1e4, but 10e4 were commited
accidentally at the time.

Fix this by capping chi2 at 1e4.
Fixed a large number of write-strings warnings. These should have no impact on GBatch's performance. Please notify me if you notice a problem.