*** empty log message ***
Silence compiler warnings in builds that do not have G4AMS enabled.
Use float d = 0; RNDM(d) idiom, instead of float d; RNDM(d); which triggers compiler warnings.
Fix out-of-bounds-array access in a function that we currently do not use, but compile.
(The code that generates an AMSmceventg for BeamTest, containing the beam parameters encoded in AMSmceventg).

../CC/event.C: In member function 'void AMSEvent::_regnevent()':
../CC/event.C:793:22: error: array subscript is below array bounds [-Werror=array-bounds]
      if(ArrayB[chint].RunTag%32768 != getruntype()%32768){

chint may be negative. There was already a warning printed when that happened, but chint was not set to zero.
Better set it to zero, to avoid accessing undefined memory, thus triggering undefined behaviour.
Remove hack from tofdbc02.C that I did not intent to commit.
*** empty log message ***
silence comp warning
Fix typo in the comment
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.
Merge branch 'master' into mkrafczy/TrdKModifications