config_loader

class ConfigLoader(file_name, vm=None, share_dict={})[source]

Bases: object

class for loading config.yml

add_constraints(amp)[source]
add_decay_constraints(amp, dic=None)[source]
add_fix_var_constraints(amp, dic=None)[source]
add_particle_constraints(amp, dic=None)[source]
add_var_equal_constraints(amp, dic=None)[source]
add_var_range_constraints(amp, dic=None)[source]
cal_bins_numbers(adapter, data, phsp, read_data, bg=None, bg_weight=None)[source]
cal_chi2(read_data=None, bins=[[2, 2], [2, 2], [2, 2]], mass=['R_BD', 'R_CD'])[source]
cal_fitfractions(params={}, mcdata=None, res=None, exclude_res=[], batch=25000)[source]
cal_signal_yields(params={}, mcdata=None, batch=25000)[source]
fit(data=None, phsp=None, bg=None, inmc=None, batch=65000, method='BFGS', check_grad=False, improve=False, reweight=False, maxiter=None)[source]
fitNtimes(N, *args, **kwargs)[source]
get_all_data()[source]
get_amplitude(vm=None, name='')[source]
get_chain(idx)[source]
get_chain_property(idx, display=True)[source]

Get chain name and curve style in plot

get_dat_order(standard=False)[source]
get_data(idx)[source]
get_data_file(idx)[source]
get_data_index(sub, name)[source]
get_data_mode()[source]
get_decay(full=True)[source]
get_fcn(all_data=None, batch=65000, vm=None, name='')[source]
get_ndf()[source]
get_params(trainable_only=False)[source]
get_params_error(params=None, data=None, phsp=None, bg=None, batch=10000, using_cached=False)[source]
get_phsp_noeff()[source]
get_phsp_plot()[source]
likelihood_profile(var, var_min, var_max, N=100)[source]
load_cached_data(file_name=None)[source]
static load_config(file_name, share_dict={})[source]
plot_partial_wave(params=None, data=None, phsp=None, bg=None, prefix='figure/', res=None, save_root=False, **kwargs)[source]
register_extra_constrains(name, f=None)[source]

add extra_constrains

reinit_params()[source]
static reweight_init_value(amp, phsp, ns=None)[source]

reset decay chain total and make the integration to be ns

save_cached_data(data, file_name=None)[source]
save_params(file_name)[source]
set_params(params, neglect_params=None)[source]
class PlotParams(plot_config, decay_struct)[source]

Bases: dict

get_angle_vars()[source]
get_data_index(sub, name)[source]
get_mass_vars()[source]
get_params(params=None)[source]
export_legend(ax, filename='legend.pdf', ncol=1)[source]
hist_error(data, bins=50, xrange=None, weights=1.0, kind='poisson')[source]
hist_line(data, weights, bins, xrange=None, inter=1, kind='UnivariateSpline')[source]

interpolate data from hostgram into a line

hist_line_step(data, weights, bins, xrange=None, inter=1, kind='quadratic')[source]
validate_file_name(s)[source]