drn_interface module
Class to simulate primary and secondary antiproton fluxes at the local interstellar region using DarkRayNet.
- class pbarlike.drn_interface.DRNet(propagation_config, propagation_parameters, prevent_extrapolation, verbose=False)
Bases:
objectContains methods that transform the user inputs (propagation parameters, DM mass, branching fractions) as required by DMNet (simulates primary antiproton flux) and sNet (simulates secondary antiproton flux) and methods that postprocess network ouputs to user usable forms.
- Parameters:
propagation_config (object) – Object of class Propagation
propagation_parameters (list or array) – propagation parameters
prevent_extrapolation (bool) – Whether network should be allowed to predict in untrained parameter regions; default - True
- DM_LIS_sim()
Simulates primary and secondary antiproton fluxes at the local interstellar region using DMNet and sNet respectively.
- preprocessing_DMparams(DM_mass, br_fr, sigma_v)
Preprocesses DM masses, annihliation cross-sections and branching fractions as required by the DMNet.
- preprocessing_prop_params(propagation_parameters)
Checks validity of given propagation parameters and defaults to multinest sample if conditions are not met.
- pbarlike.drn_interface.create_DIFF_BRK_parameters(gamma_2p=2.34, gamma_2=2.28, D0=3.78e+28, delta_l=-0.66, delta=0.52, delta_h_delta=-0.16, R_D0=3910, s_D=0.41, R_D1=222000.0, v_0c=1.91)
Gives a set of propagation parameters obtained from a fit of proton and helium fluxes to AMS-02 and Voyager data, for the DIFF.BRK model.
- pbarlike.drn_interface.create_INJ_BRK_parameters(gamma_1p=1.72, gamma_1=1.73, R_0=6430.0, s=0.33, gamma_2p=2.45, gamma_2=2.39, D_0=4.1e+28, delta=0.372, delta_h_delta=-0.09, R_1D=234000.0, v_0c=0.64, v_A=20.4)
Gives a set of propagation parameters obtained from a fit of proton and helium fluxes to AMS-02 and Voyager data, for the INJ.BRK model.