L1: fix bug in TOF performance
This is supposed to fix problem in L1 performance calculation with ToF, which is caused by the fact that not all MC points are matched to hit. Each ToF hit corresponds to up to 6 MC points and not all of them are matched to hit. For our calculations we need only one MC point corresponding to a hit and now we choose the one which is linked to the hit. Before it was not the case (we were choosing the one closest in z) and a hit sometimes was called noise only because its linked MC point was mistakenly discarded.
Edited by Valentina Akishina