[ROOT] Simple Question

From: Sunil Jayatilleke (sunilj@physics.uc.edu)
Date: Sun Apr 27 2003 - 02:32:56 MEST


Hi

I can get a pointer to a histogram this way
TFile *f = new TFile("test.root"); 
TH1F *h1 = (TH1F*)f->Get("hist");

If I write
const char *histname = "hist";
 
How do I get a pointer to a histogram?

Thanks
Sunil



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET