Tree from histogram

Hello,

My root file contains only histograms. Is it possible to make tree out of those histograms?

Thanks,
Shilpi

I am not sure what you want to do with that. The info in the individuals bins is lost when projecting to a histogram.

Rene

[quote=“Shilpi”]Hello,

My root file contains only histograms. Is it possible to make tree out of those histograms?

Thanks,
Shilpi[/quote]

Hello,
I have 4 histograms each of which stores one variable,viz, E,Px,Py& Pz.
Now I want to look at the E^2 - (Px^2 + Py^2 + Pz^2) distribution.
Is it possible to get this from histograms?

thanks
Shilpi

Hi Shilpi

[quote=“Shilpi”]
Hello,
I have 4 histograms each of which stores one variable,viz, E,Px,Py& Pz.
Now I want to look at the E^2 - (Px^2 + Py^2 + Pz^2) distribution.
Is it possible to get this from histograms?

thanks
Shilpi[/quote]

You can’t do what you want. The histogram doesn’t store any information about which entry was entered when, so you have lost all correlations between the variables that you need.

You can go from a tree to a histogram without any problem, but you can’t go the other way.

Cheers,
Charles