e15190.neutron_wall.position_calibration.NWBPositionCalibrator¶
- class e15190.neutron_wall.position_calibration.NWBPositionCalibrator(max_workers=8, verbose=False, stdout_path=None, recalculate_vw_shadows=False)¶
Functions
__init__([max_workers, verbose, ...])calibrate([verbose, save_params])draw_expected_veto_wall_shadows(ax)get_veto_wall_shadows()read_run(run[, verbose, use_cache, ...])save_parameters([verbose])save_to_gallery([verbose, show_plot, save_plot])- __init__(max_workers=8, verbose=False, stdout_path=None, recalculate_vw_shadows=False)¶
- _rough_calibrate()¶
Perform a rough position calibration using simple quantiles on the hit distribution of each NW bar.
After this procedure, instead of raw time difference (time left - time right), we should have a rough position calibrated good to a precision of ~15 cm. The result is saved to self.df_nw as a new column named rough_pos. This makes it easier to further calibrate the positions using VW shadows.