A tracer is a substance containing radioactive nuclei. It is put into the body and is absorbed by the tissue being studied. For PET scanning the tracer decays by β+ decay, so it emits positrons.
A positron is the antiparticle of the electron. It travels a very short distance in the tissue, meets an electron, and the two undergo annihilation: their mass becomes the energy of two gamma-ray photons. Momentum is conserved, so the two photons travel in opposite directions.
The photons leave the body and reach a ring of detectors. From the difference in their arrival times, a computer finds where on the line between the two detectors each annihilation happened. Many events build up an image of the tracer concentration.