a likelihood cannot be used for a goodness of fit test. If you need to perform a comparison between data (histogram) or between the data and a function prediction, it is better to use the Kolmogorov-Smirnov test in case of low statistics.
See root.cern.ch/root/htmldoc/TH1.ht … ogorovTest