Monte Carlo simulation code has been developed and tested for studying the passage of charged particle beams and radiation through the crystalline matter at energies from tens of MeV up to hundreds of GeV. The developed Monte Carlo code simulates electron, positron and photon shower in single crystals and amorphous media. The Monte Carlo code tracks all the generations of charged particles and photons through the aligned crystal by taking into account the parameters of incoming beam, multiple scattering, energy loss, emission angles, transverse dimension of beams, and linear polarization of produced photons.The simulation results are compared with the CERN-NA-59 experimental data. The realistic descriptions of the electron and photon beams and the physical processes within the silicon and germanium single crystals have been implemented.