The promising perspectives and important advantages of the amorphous silicon p-i-n semiconductor detector for the direct detection of X-rays at room temperature, make them suitable for medical applications. In this work, photons in the mammographic energy range obtained from a molybdenum target X-ray tube, were transported in an a-Si:H diode using MCNP-4C system code based on Monte Carlo method. The geometric features of p-i-n type a-Si:H diodes grown with PECVD high deposition rate technique, whose spectrometric characterization was reported in a previous work, where included in our calculations. The energy deposition profile on a structured a-Si:H detector is evaluated and the calculations are carried out for devices whose intrinsic layer thickness was varied from 5 mum to 50 mum. The influence of the composition and thickness of four different contact electrodes on the energy deposition process inside the intrinsic layer is described in detail. Some physical parameters of these devices are estimated and discussed in order to increase the electron-hole quote production per incident photon on the intrinsic layer and get the best X-ray detection conditions