ksgen_value_histogram
generates a single random value drawn from a ROOT histogram. implemented using a ROOT TH1D and TFile->Get(), and a ROOT TF1 formula. given ROOT file has to exist and contain a histogram with given name/path.
<ksgen_value_histogram>KSGenValueHistogramenergy_histogram, phi_histogram, pid_histogram, r_histogram, theta_histogram, time_histogram, x_histogram, y_histogram, z_histogramAttribute |
Type |
Description |
|---|---|---|
|
|
the filename to load the histogram from. |
|
|
(optional) a formula to modify the drawn value. |
|
|
the histogram from which to draw. |
|
|
the name of this value. |
|
|
the path to search for the given file. uses Kassiopeia’s data directory by default. |
Example:
<ksgen_value_histogram name="value_histogram" path="" base="histogram.root" histogram="gaussian" formula="x"/>
Used as:
<pid_histogram>in <decay_product_generator><phi_histogram>,<theta_histogram>in <direction_spherical_composite><phi_histogram>,<theta_histogram>in <direction_spherical_magnetic_field><phi_histogram>,<theta_histogram>in <direction_surface_composite><energy_histogram>in <energy_composite><ksgen_value_histogram>in <kassiopeia><x_histogram>,<y_histogram>,<z_histogram>in <ksgen_momentum_rectangular_composite><phi_histogram>,<r_histogram>,<z_histogram>in <ksgen_position_cylindrical_composite><phi_histogram>,<r_histogram>,<z_histogram>in <ksgen_position_frustrum_composite><x_histogram>,<y_histogram>,<z_histogram>in <ksgen_position_rectangular_composite><phi_histogram>,<r_histogram>,<theta_histogram>in <ksgen_position_spherical_composite><phi_histogram>,<theta_histogram>in <ksgen_spin_composite><phi_histogram>,<theta_histogram>in <ksgen_spin_composite_relative><time_histogram>in <ksgen_time_composite>
Can be referenced by:
thetaof <ksgen_direction_surface_composite>energyof <ksgen_energy_composite>l_valueof <ksgen_l_composite>n_valueof <ksgen_n_composite>phiof <ksgen_position_flux_tube>thetaof <ksgen_position_spherical_composite>phiof <ksgen_spin_composite>thetaof <ksgen_spin_composite>thetaof <ksgen_spin_composite_relative>time_valueof <ksgen_time_composite>