Retrieving the pointer to a TH2 histogram from TTree

Inside the TTree we find a method GetHistogram that returns a pointer to a TH1.

I wonder about a method that returns a TH2 when one uses Draw("var1:var2").

TTree::Draw

I think It is also returned by GetHistogram (TH2 inherits from TH1)

Perfect, I didn’t think about it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.