ksgen_position_cylindrical_composite

creates the position of a generated particle according to the value objects supplied, interpreting them to be cylindrical coordinates. r values are in meters, phi values are in degrees, and z values are in meters.

XML element: <ksgen_position_cylindrical_composite>
C++ type: KSGenPositionCylindricalComposite
Also available as: position_cylindrical_composite
Child elements

Element

Description

phi_fix

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

phi_formula

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

phi_gauss

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

phi_histogram

generates a single random value drawn from a ROOT histogram.

phi_list

phi_set

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

phi_uniform

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

r_cylindrical

creates a radius cylindrical value to set the r coordinate.

r_fix

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

r_formula

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

r_fraction

r_gauss

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

r_histogram

generates a single random value drawn from a ROOT histogram.

r_list

r_set

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

r_uniform

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

z_fix

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

z_formula

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

z_gauss

creates a (fix|set|uniform|gauss|formula) value to set the (r|phi|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 (r|phi|z) coordinate.

z_uniform

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

Attributes

Attribute

Type

Description

name

string

the name of this position creator.

phi

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>.

r

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>.

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).

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_cylindrical_composite name="position_cylindrical_composite" surface="world/top">
    <r_cylindrical radius_min="1." radius_max="2."/>
    <phi_set value_start="45." value_stop="90." value_count="10"/>
    <z_formula value_min="2." value_max="4." value_formula="x * x / 2. + 1."/>
</ksgen_position_cylindrical_composite>

Used as:

Can be referenced by:

More information

Appears in the documentation:

Used in example configurations: