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

**URL:** <https://root-forum.cern.ch/t/is-there-a-th1-scale-that-includes-error-propagation-on-the-scaling-term/44846>\
**Category:** Newbie\
**Created:** [May 12, 2021, 10:54pm UTC](https://root-forum.cern.ch/t/is-there-a-th1-scale-that-includes-error-propagation-on-the-scaling-term/44846 "2021-05-12T22:54:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggsAndCoffee](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/ecb155/32.png) [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Post date:** [May 12, 2021, 10:54pm UTC](https://root-forum.cern.ch/t/is-there-a-th1-scale-that-includes-error-propagation-on-the-scaling-term/44846/1 "2021-05-12T22:54:33Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![eggsAndCoffee](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/ecb155/32.png) [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Post date:** [May 16, 2021, 6:29pm UTC](https://root-forum.cern.ch/t/is-there-a-th1-scale-that-includes-error-propagation-on-the-scaling-term/44846/2 "2021-05-16T18:29:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 17, 2021, 5:59am UTC](https://root-forum.cern.ch/t/is-there-a-th1-scale-that-includes-error-propagation-on-the-scaling-term/44846/3 "2021-05-17T05:59:17Z")

</div>

I think @moneta can help you.
