Closed grzanka closed 5 years ago
Cernlib is nicely described here cernlib.pdf (fetched from http://hep.fi.infn.it/cernlib.pdf)
It looks we need only Landau:
and Vavilov distribution:
It looks Landau is implemented also in GSL: https://www.gnu.org/software/gsl/manual/html_node/The-Landau-Distribution.html and in CLHEP: http://proj-clhep.web.cern.ch/proj-clhep/doc/CLHEP_1_7/RefGuide/Random/RandLandau.html
Vavilov is implemented in ROOT: https://root.cern.ch/root/html/ROOT__Math__Vavilov.html i.e. here: https://github.com/root-project/root/blob/master/math/mathmore/src/VavilovFast.cxx
Seems fixed now
It would be worth to check if a C/C++ replacement exists for the cernlib functions we use in libamtrack