libamtrack / library

Core library code
GNU General Public License v3.0
7 stars 8 forks source link

cernlib dependency #15

Closed grzanka closed 5 years ago

grzanka commented 6 years ago

It would be worth to check if a C/C++ replacement exists for the cernlib functions we use in libamtrack

grzanka commented 6 years ago

Cernlib is nicely described here cernlib.pdf (fetched from http://hep.fi.infn.it/cernlib.pdf)

It looks we need only Landau: image

and Vavilov distribution: image image

grzanka commented 6 years ago

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

grzanka commented 5 years ago

Seems fixed now