e15190.hira.spectra.LabKinergyTheta¶
- class e15190.hira.spectra.LabKinergyTheta(reaction, particle, df_hist=None)¶
Functions
__init__(reaction, particle[, df_hist])- param reaction
Reaction notation, e.g. "ca40ni58e140".
get_lab_kinergy_spectrum(theta_range[, ...])- param theta_range
The range of theta in degree.
plot2d([ax, hist, cmap, cut])Properties
lab_kinergy_per_A_rangeslab_theta_range- __init__(reaction, particle, df_hist=None)¶
- Parameters
reaction (str) – Reaction notation, e.g. “ca40ni58e140”.
particle (str) – Particle name
df_hist (pandas.DataFrame, default None) – DataFrame with columns ‘x’, ‘y’, ‘z’, ‘zerr’ and ‘zferr’. ‘x’ represents the lab kinetic energy, ‘y’ represents the lab theta angle in degree, ‘z’ represents the cross section in ?? unit. If None, the program attempts to load histogram automatically with the keyword ‘Ekin’.
- get_lab_kinergy_spectrum(theta_range, range=(0, 200), bins=200)¶
- Parameters
theta_range (2-tuple) – The range of theta in degree.
range (2-tuple, default (0, 200)) – The histogram range of the lab kinetic energy in MeV/c.
bins (int, default 200) – The number of bins in the histogram.
- Returns
spectrum – DataFrame with columns ‘x’, ‘y’, ‘yerr’, ‘yferr’.
- Return type
pandas.DataFrame