ksgen_position_spherical_composite

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

XML element: <ksgen_position_spherical_composite>
C++ type: KSGenPositionSphericalComposite
Also available as: position_spherical_composite
Child elements

Element

Description

phi_fix

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

phi_formula

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

phi_gauss

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

phi_uniform

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

r_fix

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

r_formula

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

r_gauss

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

r_spherical

creates a radius spherical value to set the r coordinate.

r_uniform

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

theta_fix

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

theta_formula

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

theta_gauss

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

theta_histogram

generates a single random value drawn from a ROOT histogram.

theta_list

theta_set

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

theta_spherical

creates an angle spherical value to set the theta coordinate.

theta_uniform

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

theta

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_spherical_composite name="position_spherical_composite" surface="world/bottom">
    <r_spherical radius_min="1." radius_max="2."/>
    <theta_spherical angle_min="20." angle_max="160."/>
    <phi_uniform value_min="2." value_max="4."/>
</ksgen_position_spherical_composite>

Used as:

Can be referenced by: