Allow to output to histograms and root file for debugging