Measured cross sections for the production of the PET isotopes [Formula: see text], [Formula: see text] and [Formula: see text] from carbon and oxygen targets induced by protons (40-220 [Formula: see text]) and carbon ions (65-430 [Formula: see text]) are presented. These data were obtained via activation measurements of irradiated graphite and beryllium oxide targets using a set of three scintillators coupled by a coincidence logic. The measured cross sections are relevant for the PET particle range verification method where accurate predictions of the [Formula: see text] emitter distribution produced by therapeutic beams in the patient tissue are required. The presented dataset is useful for validation and optimization of the nuclear reaction models within Monte Carlo transport codes. For protons the agreement of a radiation transport calculation using the measured cross sections with a thick target PET measurement is demonstrated.