added variable currentEvent correctly in GTreeManager. also methode GetEventNumber() to return it