Moved Parts of the TOF Analysis to the new lib file