e15190.neutron_wall.light_output_calibration.LightOutputCalibrator

class e15190.neutron_wall.light_output_calibration.LightOutputCalibrator(AB: Literal['A', 'B'])

Functions

__init__(AB)

add_calibrated_light()

Calibrate geometric mean of corrected total ADCs into MeVee

add_corrected_light(light[, bars])

add_position([df, drop_time])

analyze_log_of_light_ratio(light[, bars, ...])

convert_64_to_32(df)

gain_matching(light_info, bar_arr, light_L, ...)

get_adc_from_light(light, pos, a, b, c, d, e)

get_light_from_adc(adc, pos, a, b, c, d, e)

randomize_ADC([seed])

read(runs[, from_cache])

Update self.df

read_light_calib_params([path])

saturation_recovering(light_info, bar_arr, ...)

Properties

DATABASE_DIR

__init__(AB: Literal['A', 'B'])
read(runs, from_cache=True, **kwargs) → pandas.core.frame.DataFrame

Update self.df

_read_saturation_correction_params(path=None) → pandas.core.frame.DataFrame

Using Daniele’s framework of Kuan’s version.

analyze_log_of_light_ratio(light: Literal['total', 'fast'], bars=None, verbose=False)
add_calibrated_light()

Calibrate geometric mean of corrected total ADCs into MeVee