Loading TH1 to RooDataHist

Hello

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

Hi,

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

data->plotOn(frame,DataError(RooAbsData::SumW2))

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

Wouter