Application of the S 3 M and Mcnpx Codes in Particle Detector Development