Is there a TH1::Scale that includes error propagation on the scaling term?

Hello,

I have an application where I am scaling a histogram by a factor that itself has an uncertainty associated with it. Is there a function with the TH1 class that would multiply the histogram and propagate the error on the scaling factor to the error on the bins? I’m surprised that I can’t find such a function, but it could be that I’ve missed it. I would like something like:

TH1F *h = new TH1F(/* Set up histo here */);
double k = 10; 
double kErr = 3; 
h->ScaleWithErrorPropogation(k,kErr); // does something like this exist?

Thank you.

Bumping this post, to keep it from expiring.

I still haven’t found anything to address the need that I described above. I know that I can write a loop and do this calculation myself, but I’m surprised that ROOT doesn’t already have a function that supports this.

I think @moneta can help you.