ksgen_position_rectangular_composite

creates the position of a generated particle according to the value objects supplied, interpreting them in rectangular coordinates. x, y, and z values are in meters.

XML element: <ksgen_position_rectangular_composite>
C++ type: KSGenPositionRectangularComposite
Also available as: position_rectangular_composite
Child elements

Element

Description

x_fix

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

x_formula

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

x_gauss

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

x_histogram

generates a single random value drawn from a ROOT histogram.

x_list

x_set

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

x_uniform

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

y_fix

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

y_formula

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

y_gauss

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

y_histogram

generates a single random value drawn from a ROOT histogram.

y_list

y_set

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

y_uniform

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

z_fix

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

z_formula

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

z_gauss

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

z_histogram

generates a single random value drawn from a ROOT histogram.

z_list

z_set

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

z_uniform

creates a (fix|set|uniform|gauss|formula) value to set the (x|y|z) coordinate.

Attributes

Attribute

Type

Description

name

string

the name of this position creator.

space

string

the name of a space in kgeobag to use as the origin of coordinates.

Refers to a KGeoBag space (path in the geometry).

surface

string

the name of a surface in kgeobag to use as the origin of coordinates.

Refers to a KGeoBag surface (path in the geometry).

x

string

Refers to the name of one of: <ksgen_value_angle_cosine>, <ksgen_value_angle_spherical>, <ksgen_value_boltzmann>, <ksgen_value_fermi>, <ksgen_value_fix>, <ksgen_value_formula>, <ksgen_value_gauss>, <ksgen_value_generalized_gauss>, <ksgen_value_histogram>, <ksgen_value_list>, <ksgen_value_pareto>, <ksgen_value_radius_cylindrical>, <ksgen_value_radius_fraction>, <ksgen_value_radius_spherical>, <ksgen_value_set>, <ksgen_value_uniform>, <ksgen_value_z_frustrum>.

y

string

Refers to the name of one of: <ksgen_value_angle_cosine>, <ksgen_value_angle_spherical>, <ksgen_value_boltzmann>, <ksgen_value_fermi>, <ksgen_value_fix>, <ksgen_value_formula>, <ksgen_value_gauss>, <ksgen_value_generalized_gauss>, <ksgen_value_histogram>, <ksgen_value_list>, <ksgen_value_pareto>, <ksgen_value_radius_cylindrical>, <ksgen_value_radius_fraction>, <ksgen_value_radius_spherical>, <ksgen_value_set>, <ksgen_value_uniform>, <ksgen_value_z_frustrum>.

z

string

Refers to the name of one of: <ksgen_value_angle_cosine>, <ksgen_value_angle_spherical>, <ksgen_value_boltzmann>, <ksgen_value_fermi>, <ksgen_value_fix>, <ksgen_value_formula>, <ksgen_value_gauss>, <ksgen_value_generalized_gauss>, <ksgen_value_histogram>, <ksgen_value_list>, <ksgen_value_pareto>, <ksgen_value_radius_cylindrical>, <ksgen_value_radius_fraction>, <ksgen_value_radius_spherical>, <ksgen_value_set>, <ksgen_value_uniform>, <ksgen_value_z_frustrum>.

Example:

<ksgen_position_rectangular_composite name="position_rectangular_composite" space="world">
    <x_fix value="0."/>
    <y_gauss value_min="0." value_max="5." value_mean="2." value_sigma=".5"/>
    <z_formula value_min="2." value_max="4." value_formula="x * x / 2. + 1."/>
</ksgen_position_rectangular_composite>

Used as:

Can be referenced by:

More information

Used in example configurations: