Hi ROOT'ers, TF1 behaves badly (SIGSEGV) when you ask for a parameter by name, that doens't exist in the list of parameter names: root [0] TH1F* h = new TH1F("h","h",100,-1,1) root [1] h->FillRandom("gaus") root [2] h->Fit("gaus") root [3] TF1* f = h->GetFunction("gaus") root [4] f->GetParNumber("Mean") (Int_t)1 root [5] f->GetParNumber("Constant") (Int_t)0 root [6] f->GetParNumber("sigma") *** Break *** segmentation violation root [7] f->GetParameter("sigma") *** Break *** segmentation violation Root > root [8] f->GetParameter("Mean") (Double_t)(-2.78008424328742947e-02) Sorry if this has been reported before. Yours, Christian ----------------------------------------------------------- Holm Christensen Phone: (+45) 35 35 96 91 Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305 DK-2200 Copenhagen N Web: www.nbi.dk/~cholm Denmark Email: cholm@nbi.dk
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET