Changeset 5115
- Timestamp:
- 09/18/04 13:12:52 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r5098 r5115 176 176 if (fHPowerProbability) 177 177 delete fHPowerProbability; 178 179 // 180 // The next two lines are important for the case that 181 // the class has been stored to a file and is read again. 182 // In this case, the next two lines prevent a segm. violation 183 // in the destructor 184 // 185 gROOT->GetListOfFunctions()->Remove(fFGausFit); 186 gROOT->GetListOfFunctions()->Remove(fFExpFit); 178 187 179 188 // delete fits … … 673 682 // 674 683 gROOT->GetListOfFunctions()->Remove(fFGausFit); 684 675 685 fFGausFit->SetParameters(area_guess,mu_guess,sigma_guess); 676 686 fFGausFit->SetParNames("Area","#mu","#sigma"); … … 681 691 682 692 fHGausHist.Fit(fFGausFit,option); 683 684 693 685 694 fMean = fFGausFit->GetParameter(1);
Note:
See TracChangeset
for help on using the changeset viewer.