  This paper presents the simulation of the GLAST high energy gamma-ray
telescope. The simulation package, written in C++, is based on the Geant4
toolkit, and it is integrated into a general framework used to process events.
A detailed simulation of the electronic signals inside Silicon detectors has
been provided and it is used for the particle tracking, which is handled by a
dedicated software. A unique repository for the geometrical description of the
detector has been realized using the XML language and a C++ library to access
this information has been designed and implemented.
