This modified version of the CLASS code allows to take into account energy injection from DM, in the form of ALP decaying into photons, taking into account energy deposition efficiencies computed with DarkHistory and tabulated at for z=300. For specific reionization histories (Puchwein or Fauchere-Giguere) different from tanh contact the author.
This code can be used freely provided you cite the specific release paper (Capozzi, Ferreira, Lopez-Honorez, Mena '23) and the original CLASS release paper (Blas et al. 2011).
The code has been edited by L. Lopez-Honorez (llopezho AT ulb.be). We refer to the main CLASS code wiki for installations instructions. The main modifications with respect to the original version are in input.c and .h, thermodynamics.c and .h, injection.c and .h, and precision.h and the tabulated values of energy deposition efficiencies in terms of ALP mass and coupling are in external/heating/axion_f300_gridforCLASS.dat. An input file axion-params.ini has been created with the basic quantities needed in order to run the modified code.