EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH 3 November 1999 GEANT4 SIMULATION OF ENERGY LOSSES OF IONS