I am using Rietveld refinement program (xpert highscore plus with ICDD and ICSD database). I have space group, lattice parameters, atomic positions, occupancy and all refined parameters. Is there any direct formula to calculate the theoretical plot mathematically as well as Bragg reflections(Bragg positions)?