A new 3-D Monte-Carlo code, X-Tracker, was developed to model internal events that occur as X-ray photons are absorbed within Si(Li) detectors. The goal was to model the performance of state-of-the-art detectors, including peak shapes, background and artifact peaks found in clean spectra from collimated radioactive and other X-ray sources. The model includes the influence of collimation, fr...