def display_results(options): """ Display the analysis results :param options: :return: """ # Load the histogram adcs = histogram.Histogram(filename=options.output_directory + options.histo_filename) # Define Geometry geom = geometry.generate_geometry_0() # Perform some plots display.display_fit_result(adcs, geom, index_var=2, limits=[0., 2.], bin_width=0.05) display.display_fit_result(adcs, geom, index_var=1, limits=[1950., 2050.], bin_width=10.) # display([adcs], geom, fit_hv_off.slice_func, norm='linear') input('press button to quit') return
if options.verbose: print('--|> Recover fit results for G and sigmas from %s' % (options.output_directory + 'full_' + options.fit_filename)) file = np.load(options.output_directory + 'full_' + options.fit_filename) mpes_full.fit_result = np.copy(file['full_mpe_fit_result']) mpes_full.fit_function = fit_full_mpe.fit_func #del(mpes_full) file.close() # Leave the hand plt.ion() # Define Geometry geom = generate_geometry_0() display_var(mpes_full, geom, title='$\sigma_e$ [ADC]', index_var=2, limit_min=0.8, limit_max=1.2, bin_width=0.05) display_var(mpes_full, geom, title='$\sigma_i$ [ADC]', index_var=3, limit_min=0.4, limit_max=0.5, bin_width=0.002)