icecube_tools.detection_probability module

icecube_tools.detection_probability.fit_func(x, a, b)
icecube_tools.detection_probability.get_TS_threshold(TS, level, above=5)

Return TS at specified threshold level. Used to approximate the 5 sigma level.

Parameters:
  • TS – TS values

  • level – Threshold level (e.g. 5.7e-7 for 5 sigma)

  • above – Fit above this value, defining the tail

icecube_tools.detection_probability.get_detection_probability(filename, index, dec, TS_threshold)

Find the detection probability as a function of the expected number of source counts in a detector.

Returns Nsrc_list and Pdet :param filename: Filename :param index: Spectral index :param dec: Declination :param TS_threshold: TS <=> 5sigma threshold

icecube_tools.detection_probability.get_detection_probability_Braun2008(filename, index, TS_threshold)

Find the detection probability as a function of the expected number of source counts in a detector.

Returns Nsrc_list and Pdet :param filename: Filename :param index: spectral index :param TS_threshold: TS <=> 5sigma threshold

icecube_tools.detection_probability.get_simulated_params(filename)

Returns the available declinations and spectral indices in the file.

icecube_tools.detection_probability.solve_func(x, a, b, level)