Hello, Root community,
I want to normalize a histogram that I have, but for this normalize I wanted to do it with the number of events and Bin width, I mean scale with (Number of events/Bin width).
I tried to follow this Topic Different ways of normalizing histograms, but it only normalizes with 1.
The second question is that I want to book a histogram, but setting the set bin on a way that is a triangle, does someone knows how to do that?
Thank you very much,
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
No idea what you want to achieve.
You can, e.g., try:
For non-rectangular bins (2D case only), you can try: TH2Poly and / or TProfile2Poly
h->Scale(h->GetEntries(), "width"); works good
But about the triangle, I’m asking for the case of a TH1D, to book a histogram where I can set the bins on a way that is a triangle. This is to compare with a delta eta in a collision.
For the 1D case (TH1), the x-axis can have either fix or variable bin sizes (but they are always 1D “line segments”, of course).
Thank you for all your help
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.