Get histogram from TTree

Hi,

I have a root files which has a TTree consists of lots of histograms which are branches of the tree. I have to look at all the histograms in the root file, and am looking for a way to get pointer to a given histogram directly. The following method is a bit slow since it has to draw every histogram;
tree->Draw(“aHist”); tree->GetHistogram()

Thanks in advnae for all the comments and advice,

Yun-Ha Shin

tree->Draw("aHist","","goff"); tree->GetHistogram(); does what you need or you can check TTree::Project.

Cheers,
Philippe.