Loading TH1 to RooDataHist


I try to load TH1D to RooDataHist

  RooDataHist pMeanHist("pMeanHist","mean of energy dependence",X,&pMean_);

but it doesn’t load errors of bin content values
Is it possible to load errors of bin content values from TH1 to RooDataHist or to establish errors for RooDataHist object directly?

Thank you


The errors are loaded from the TH1D, but the’re not always used by default. For plotting one has to e.g. specify


to see the ‘sum-of-weights’ (=imported error) rather than the
Poisson confidence interval.