added UCE and write all histograms to .root file