Hi,Rooters I want to fit "Leaf" and get its parameter. This is my program. TFile *f = new TFile("381run.root"); TTree *tree = (TTree*)f.Get("tree"); tree->Fit("gaus","leaf"); TF1 *fit0 = tree->Fit("gaus","leaf"); Double_t pedestal0 = fit0->GetParameter(1); cout << pedestal0 << endl; Executing it, returned the error message. Error: Incorrect assignment to fit0, wrong type 'Int_t' How can I avoid the trouble ? -- Takefumi SORA <tak-sora@bg7.so-net.ne.jp>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET