Propagator¶
- class marxs.simulator.Propagator(**kwargs)[source] [edit on github]¶
Bases:
SimulationSequenceElement
Move photons along the rays.
This element moves all photons in the photon list by a specified amount forwards or backwards along the ray. Normally, photons only move forward in the simulation, but sometimes it can be useful to reset the photons to an earlier position, e.g. to see how the pattern on a detector changes for different detector positions.
- Parameters:
- distancefloat
Distance for the photons to move. Negative values move photons backwards.
Methods Summary
__call__
(photons)Call self as a function.
Methods Documentation
- __call__(photons)[source] [edit on github]¶
Call self as a function.