Get interaction of a secondary particle

Hello @weller

Yes, when an Electron/positron moves near atomic nuclei, it can emits photons.

Obviously, it’s possible that a photon produces a positron then it emits photon so I get it as an “eBream”…but how can I know if it was produce by a photon or, for example, by positron of primary beam??

Currently both the beam and secondary particles producded in the targets can reich the regeneraror…
So I can’t know if the parent of the eBream is a photon or other particle…I tried to add a magnetic field in order to deflect charged particles (i.e. to have only photons reaching the regenerator), but even if I don’t get errors, the simulation doesn’t run Add a magnetic field - #4 by faca87