{ "cells": [ { "cell_type": "markdown", "id": "dc687af9", "metadata": {}, "source": [ "# Blazar-neutrino chance coincidence simulation\n", "\n", "We demonstrate how to run a simulation of a blazar population and diffuse neutrino flux that have no underlying connection. The simulation makes use of the configuration files provided with the package." ] }, { "cell_type": "code", "execution_count": 1, "id": "9122b472", "metadata": { "execution": { "iopub.execute_input": "2022-07-22T12:25:54.400974Z", "iopub.status.busy": "2022-07-22T12:25:54.400697Z", "iopub.status.idle": "2022-07-22T12:25:58.179069Z", "shell.execute_reply": "2022-07-22T12:25:58.177564Z" } }, "outputs": [], "source": [ "from popsynth.utils.logging import quiet_mode\n", "from icecube_tools.detector.effective_area import EffectiveArea\n", "from icecube_tools.detector.energy_resolution import EnergyResolution\n", "from icecube_tools.detector.angular_resolution import AngularResolution\n", "\n", "from nu_coincidence.blazar_nu.coincidence import BlazarNuCoincidenceSim\n", "from nu_coincidence.blazar_nu.coincidence import BlazarNuCoincidenceResults\n", "from nu_coincidence.utils.package_data import get_available_config\n", "\n", "quiet_mode() # silence popsynth logs/output" ] }, { "cell_type": "markdown", "id": "a17a1197", "metadata": {}, "source": [ "Firstly, we make sure that we have the necessary files for running an IceCube simulation by using the `icecube_tools` package" ] }, { "cell_type": "code", "execution_count": 2, "id": "e419726e", "metadata": { "execution": { "iopub.execute_input": "2022-07-22T12:25:58.184318Z", "iopub.status.busy": "2022-07-22T12:25:58.183237Z", "iopub.status.idle": "2022-07-22T12:26:39.299558Z", "shell.execute_reply": "2022-07-22T12:26:39.298769Z" } }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\r", "20181018_All-sky_point-source_IceCube_da...: 0%| | 0/11730609 [00:00