3.10.1.20.1.6. opengate.sources.phspsources¶
3.10.1.20.1.6.1. Classes¶
Class that read phase space root file and extract position/direction/energy/weights of particles. |
|
Source of particles from a (root) phase space. |
3.10.1.20.1.6.2. Module Contents¶
- class opengate.sources.phspsources.PhaseSpaceSourceGenerator[source]¶
Class that read phase space root file and extract position/direction/energy/weights of particles. Particles information will be copied to the c++ side to be used as a source
- class opengate.sources.phspsources.PhaseSpaceSource(user_info)[source]¶
Bases:
opengate.sources.generic.SourceBaseSource of particles from a (root) phase space. Read position + direction + energy + weight from the root and use them as event.
if global flag is True, the position/direction are global, not in the coordinate system of the mother volume. if the global flag is False, the position/direction are relative to the mother volume
Timing is not used (yet)
NOT ready for multithread (yet)
type of particle not read in the phase space but set by user