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.

XML element: <ksgen_value_histogram>
C++ type: KSGenValueHistogram
Also available as: energy_histogram, phi_histogram, pid_histogram, r_histogram, theta_histogram, time_histogram, x_histogram, y_histogram, z_histogram
Attributes

Attribute

Type

Description

base

string

the filename to load the histogram from.

formula

string

(optional) a formula to modify the drawn value.

histogram

string

the histogram from which to draw.

name

string

the name of this value.

path

string

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:

Can be referenced by: