A Monte Carlo code MCNPX (Monte Carlo N-particle) was used to model a 25 MV photon beam from a PRIMUS (KD2-Siemens) medical linear electron accelerator at the Centre Antoine Lacassagne in Nice. The entire geometry including the accelerator head and the water phantom was simulated to calculate the dose profile and the relative depth-dose distribution. The measurements were done using an ionisation chamber in water for different square field ranges. The first results show that the mean electron beam energy is not 19 MeV as mentioned by Siemens. The adjustment between the Monte Carlo calculated and measured data is obtained when the mean electron beam energy is approximately 15 MeV. These encouraging results will permit to check calculation data given by the treatment planning system, especially for small fields in high gradient heterogeneous zones, typical for intensity modulated radiation therapy technique.