ksgen_direction_spherical_composite

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

XML element: <ksgen_direction_spherical_composite>
C++ type: KSGenDirectionSphericalComposite
Also available as: direction_spherical_composite
Child elements

Element

Description

phi_fermi

phi_fix

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

phi_formula

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

phi_gauss

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

phi_generalized_gauss

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 (theta|phi) coordinate.

phi_uniform

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

theta_cosine

theta_fermi

theta_fix

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

theta_formula

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

theta_gauss

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

theta_generalized_gauss

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 (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 (theta|phi) coordinate.

Attributes

Attribute

Type

Description

name

string

the name of this direction 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>.

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_direction_spherical_composite name="direction_spherical_composite" space="world">
    <theta_fix value="38."/>
    <phi_gauss value_min="0." value_max="180." value_mean="90." value_sigma="10."/>
</ksgen_direction_spherical_composite>

Used as:

Can be referenced by:

More information

Appears in the documentation:

Used in example configurations: