Code repository for the PBH and baryon density fractions and yield from asymmetric Hawking radiation using the broad mass spectrum of 2001.04371.
This repository contains the c++ codes used to reproduce the results of Section III A and B of 1404.0113 (bh_hook.cpp) and the results of 2010.14426 (bh_clean.cpp). A python notebook is also included which was used to generate the plots of 2010.14426.
The codes bh_clean.cpp and bh_hook.cpp can be run from the command line using a similar command to:
g++ -lgsl -I/Users/bbose/Desktop/Black_hole/git bh_clean.cpp
replacing the include directory to the header files directory. Then just run the executable produced with
./a.out
The code is fairly well commented but if you run into any issues, contact Ben Bose at nebblub@gmail.com.
The codes are written in C++, so you'll need a relatively modern C++ compiler.
The code also makes use of gsl. You will need to have a version of gsl installed (gsl 2. or later) needed for integrations of the mass spectrum.
We ask if you use this code or any development thereof, that you cite the following paper for which the original code was written
@article{Boudon:2020qpo, author = "Boudon, Alexis and Bose, Benjamin and Huang, Hyat and Lombriser, Lucas", title = "{Baryogenesis through Asymmetric Hawking Radiation from Primordial Black Holes as Dark Matter}", eprint = "2010.14426", archivePrefix = "arXiv", primaryClass = "astro-ph.CO", month = "10", year = "2020" }