# Normalize each bin of THStack histogram?

**URL:** <https://root-forum.cern.ch/t/normalize-each-bin-of-thstack-histogram/39073>\
**Category:** ROOT\
**Created:** [April 24, 2020, 2:52pm UTC](https://root-forum.cern.ch/t/normalize-each-bin-of-thstack-histogram/39073 "2020-04-24T14:52:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 24, 2020, 3:02pm UTC](https://root-forum.cern.ch/t/normalize-each-bin-of-thstack-histogram/39073/2 "2020-04-24T15:02:41Z")

</div>

There is a discussion about this on the forum. Here:

> [@Normalize THSatck](https://root-forum.cern.ch/t/normalize-thsatck/21807):
>
> Dear expert, I want to normalize a THStack such that the integral is equal to 1. For the TH1 I used to do: h-\>Scale(1/h-\>Integral(“width”)); but the the Scale() or even Integral() are not a member of THStack. Is there a smart way to do that? Regards

It might help you.

---

_[View the full topic](https://root-forum.cern.ch/t/normalize-each-bin-of-thstack-histogram/39073)._
