icecube_tools.detector.r2021 module

class icecube_tools.detector.r2021.DummyPDF

Bases: object

cdf(x)
pdf(x)
rvs(size=1, random_state=42)
class icecube_tools.detector.r2021.R2021IRF(filename, period, **kwargs)

Bases: EnergyResolution, AngularResolution

Special class to handle smearing effects given in the 2021 data release: 1) Misreconstruction of energy 2) kinematic angle, what the readme calls “PSF” 3) misreconstruction of tracks, what the readme calls “AngErr”

STACK = {}
classmethod from_period(period, **kwargs)

Reads in IRFs of data set. For consistency and reducing the error-prone…iness, kinematic angles (“PSF”) and angular errors are converted to log(degrees). :param fetch: True if data should be downloaded

static get_angle(vec1, vec2)

Calculate the angle between two vectors. :param vec1: First vector :param vec2: Second vector :return: Angle between vectors in degrees

marginal_pdf_angerr(idx_e, idx_d, idx_e_r, idx_k, hist_type)
marginal_pdf_psf(idx_e, idx_d, idx_e_r, hist_type, c_psf=None)
sample(coord, Etrue, seed=42, show_progress=False)

Sample new ra, dec values given a true energy and direction. :param coord: Tuple indicident coordinates (ra, dec) in radians :param Etrue: True $log_{10}(E/mathrm{GeV})$ that’s to be sampled. :return: new rectascension and new declination in rad of deflected particle,

angle between incident and deflected direction in degrees, reconstructed energy in GeV

sample_energy(coord, Etrue, seed=42, show_progress=False)

Sample reconstructed energy given a true energy and direction. :param coord: Tuple indicident coordinates (ra, dec) in radians :param Etrue: True $log_{10}(E/mathrm{GeV})$ that’s to be sampled. :return: new rectascension and new declination in rad of deflected particle,

angle between incident and deflected direction in degrees, reconstructed energy in GeV