Code Monkey home page Code Monkey logo

ana's Introduction

ANA: Astrophysical Neutrino Anisotropy

master version DOI
Build Status GitHub Version DOI

Overview

This code has resulted in the publication arXiv:1703.09721. This code calculates the likelihood function for a model comprised of two components to the astrophysical neutrino flux detected by IceCube. The first component is extragalactic. Since point sources have not been found and there is increasing evidence that one source catalog cannot describe the entire data set, we model the extragalactic flux as isotropic. The second component is galactic. A variety of catalogs of interest exist here as well. We take the galactic contribution to be proportional to the matter density of the universe.

The likelihood function has one free parameter fgal that is the fraction of the astrophysical flux that is galactic. The code finds the best fit value of fgal and scans over 0<fgal<1.

Installing

See the dependency guide and the installation guide.

About the code

The IceCube events are read in and managed in src/ICEvent.cpp. The likelihood function is described in src/Backgrounds.cpp and src/Likelihood.cpp. The von Mises-Fisher distribution is handled in vMF.cpp. A Markov Chain Monte Carlo code to generate points distributed in the galactic plane is in src/MWDisks.cpp. Finally, src/Figures.cpp generates data files that can then be plotted by the scripts in the py directory and src/main.cpp indicates what should be run.

Further details

  1. Calculating the integral in equation 4.6 in the paper is the main time consuming portion of the code, other than generating the sky map and the galactic plane visualization. With this in mind, the code writes the calculation to file, data/L_gals.txt with calc_L_gals() and the result is read in to a global variable with read_in_gals().

  2. The high energy cut on the galactic component mentioned in the paper can be turned on with the bool flag in calc_L_gals().

  3. To turn off the progress bar on the slower functions, uncomment the Progress_Bar_visible = false; line in src/main.cpp.

  4. To turn on a broken power law, change Phi_astro in src/Backgrounds.cpp and modify Phi_astro2 as necessary.

Support

If you have questions or encounter any problems when running ANA, please use github's issue tracker.

This code is free to use, copy, distribute, and modify. If you use this code or any modification of this code, we request that you reference both this code DOI:10.5281/zenodo.438675 and the paper arXiv:1703.09721.

ana's People

Contributors

peterdenton avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.