pysrw.emitters.Particle#
- class pysrw.emitters.Particle(energy, xPos, yPos, zPos, xAngle=0, yAngle=0)[source]#
Bases:
SRWLParticle
- __init__(energy, xPos, yPos, zPos, xAngle=0, yAngle=0)[source]#
Charged ultrarelativistic particle. Particle positions and angles are referred to the start of the computation, \(c \cdot t=0\).
- Parameters:
energy – particle energy in Gev.
xPos – particle x position.
yPos – particle y position.
zPos – particle z position.
xAngle (optional) – horizontal tilt angle. Defaults to 0.
yAngle (optional) – vertical tilt angle. Defaults to 0.
Methods
__init__
(energy, xPos, yPos, zPos[, xAngle, ...])Charged ultrarelativistic particle.
drift
(_dist)Propagates particle beam statistical moments over a distance in free space :param _dist: distance the beam has to be propagated over [m]
get_E
([_unit])