Dear ROOTers,
is there a way to generate a TH2F from 2 TH1F (one per axis)? In my case, I have an histogram for MissingEt and one for the leading jet’s pT. I would like to make a scatter plot to study correlations.
Cheers,
Riccardo
Dear ROOTers,
is there a way to generate a TH2F from 2 TH1F (one per axis)? In my case, I have an histogram for MissingEt and one for the leading jet’s pT. I would like to make a scatter plot to study correlations.
Cheers,
Riccardo
Hi Ricardo,
[quote=“iRick”]
is there a way to generate a TH2F from 2 TH1F (one per axis)? In my case, I have an histogram for MissingEt and one for the leading jet’s pT. I would like to make a scatter plot to study correlations. [/quote]
You can’t do what you want. Once you have made a 1D histogram, you have lost the correlations. You’ll need to fill the histogram as 2D if you want the correlation information.
Cheers,
Charles