Main Module

Created on Mon Mar 15 14:04:46 2021

@author: sam

nupyprop.main.file_cleaner(output_type)
Parameters:

output_type (str) – Type of output file to clean. Can be e_out, P_out, polarization_* or p_exit.

Returns:

Cleans temporary generated output files.

Return type:

NONE

nupyprop.main.init_ixc(nu_type, ch_lepton, nu_model, pn_model)
Parameters:
  • nu_type (str) – Type of neutrino particle. Can be neutrino or anti-neutrino.

  • ch_lepton (str) – Type of charged lepton. Can be tau or muon.

  • nu_model (str) – Neutrino cross-section model.

  • pn_model (str) – Photonuclear energy loss model.

Returns:

  • nu_ixc (ndarray) – 3D array containing neutrino integrated cross-section CDF values.

  • lep_ixc_water (ndarray) – 3D array containing lepton integrated cross-section CDF values for water.

  • lep_ixc_rock (ndarray) – 3D array containing lepton integrated cross-section CDF values for rock.

nupyprop.main.init_xc(nu_type, ch_lepton, nu_model, pn_model, prop_type)
Parameters:
  • nu_type (str) – Type of neutrino particle. Can be neutrino or anti_neutrino.

  • ch_lepton (str) – Type of charged lepton. Can be tau or muon.

  • nu_model (str) – Neutrino cross-section model.

  • pn_model (str) – Photonuclear energy loss model.

  • prop_type (str) – Energy loss propagation type. Can be stochastic or continuous.

Returns:

  • nu_xc (ndarray) – 2D array containing CC & NC neutrino cross-section values, in cm^2.

  • xc_water (ndarray) – 2D array containing bremmstrahlung, pair production & photonuclear energy loss cross-section values for water, in cm^2.

  • xc_rock (ndarray) – 2D array containing bremmstrahlung, pair production & photonuclear energy loss cross-section values for rock, in cm^2.

  • alpha_water (ndarray) – 1D array containing ionization energy loss values for water, in (GeV*cm^2)/g.

  • alpha_rock (ndarray) – 1D array containing ionization energy loss values for rock, in (GeV*cm^2)/g.

  • beta_water (ndarray) – 2D array containing bremmstrahlung, pair production & photonuclear energy loss values for water, in cm^2/g.

  • beta_rock (ndarray) – 2D array containing bremmstrahlung, pair production & photonuclear energy loss values for rock, in cm^2/g.

nupyprop.main.main(E_prop, angles, nu_type, cross_section_model, pn_model, idepth, ch_lepton, fac_nu, stats, prop_type, elep_mode, htc_mode)
Parameters:
  • E_prop (ndarray) – Ingoing neutrino energies, in GeV.

  • angles (ndarray) – Earth emergence angles (beta), in degrees.

  • nu_type (str) – Type of neutrino particle. Can be neutrino or anti_neutrino.

  • cross_section_model (str) – Neutrino cross-section model.

  • pn_model (str) – Photonuclear energy loss model.

  • idepth (int) – Depth of water layer in km.

  • ch_lepton (str) – Type of charged lepton. Can be tau or muon.

  • fac_nu (float) – Rescaling factor for BSM cross-sections.

  • stats (float) – Statistics; no. of ingoing neutrinos.

  • prop_type (str) – Energy loss propagation type. Can be stochastic or continuous.

  • elep_mode (str) – Option to print exiting charged lepton’s final energy. Can be yes or no.

Returns:

Adds exit probability & outgoing lepton energy results to output_x.h5

Return type:

NONE