Protons and carbon ions have been extensively used for radiotherapy treatments, and in comparison to conventional radiotherapy, they allow a more conformal dose to the target tumor, especially in case of deep-seated tumors. However, the accuracy of hadron therapy treatments is affected by uncertainties in the particle range calculations. Several techniques are under development for in-vivo range verification, one of which consists on measuring the activity distributions of positron emitters, such as 10C, 11C and 15O, which are produced in the patient body during proton and carbon ion treatments. A comparison between measured and expected positron emitter activity distributions can provide information on the quality of the delivered treatment and accuracy of the particle range calculations. In this work the FLUKA production cross sections for 10C, 11C and 15O originated from proton and carbon ion beams in carbon and oxygen targets were compared with experimental data, at low and therapeutic energies.