kappaVelGen

kappaVelGen

Velocity generator to load a beam of particles.

kappaVelGen Parameters

seed (integer)

Sets the seed for the random number generator.

lowerLimit0 (float)

Lower limit of velocity in the x-direction.

upperLimit0 (float)

Upper limit of velocity in the x-direction.

lowerLimit1 (float)

Lower limit of velocity in the y-direction.

upperLimit1 (float)

Upper limit of velocity in the y-direction.

lowerLimit2 (float)

Lower limit of velocity in the z-direction.

upperLimit2 (float)

Upper limit of velocity in the z-direction.

vbar (vector, default = 0)

Specifies the addition of a constant velocity to whatever velocity is returned from the specific kind of velocity generator. vbar can be specified for internal variables such as weight and tag, as well as the actual velocity components.

vsig (vector, default = 0)

Specifies the addition of a random velocity to whatever velocity is returned from the specific kind of velocity generator. The random velocity is sampled from a Gaussian with standard deviations for each component given by the value of vsig. The seed of the sampling can also be provided with the seed attribute. vsig can be specified for internal variables such as weight and tag, as well as the actual velocity components.

kappaVelGen Example Block

<VelocityGenerator positronVelGen>
  kind = kappaVelGen
  vbar = [VX_DRIFT  VY_DRIFT  VZ_DRIFT]
  vsig = [VX_RMS  VY_RMS  VZ_RMS]

  seed = VY_SEED

  lowerLimit0 = $ -6. * VX_RMS $
  upperLimit0 = $  6. * VX_RMS $
  lowerLimit1 = $ -6. * VY_RMS $
  upperLimit1 = $  6. * VY_RMS $
  lowerLimit2 = $ -6. * VZ_RMS $
  upperLimit2 = $  6. * VZ_RMS $
</VelocityGenerator>