Here's what I'm doing: { ... TFile file("ntuple.root"); TCanvas *can = new TCanvas("filename", "Histogram"); bgoadc.Draw("a0","lay==0"); //bgoadc is a TNtuple in ntiple.root ... TH1F::htemp->Fit("gaus"); //kludge ... can->Print(); ... } Now, the line using TH1F::htemp is a kludge. I shoid really be using a pointer to htemp in *can, but I don't know how to get one. Any suggestions? Alexey
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET