Ignore:
Timestamp:
09/18/04 13:12:52 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc

    r5098 r5115  
    176176  if (fHPowerProbability)
    177177    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);
    178187 
    179188  // delete fits
     
    673682  //
    674683  gROOT->GetListOfFunctions()->Remove(fFGausFit);
     684
    675685  fFGausFit->SetParameters(area_guess,mu_guess,sigma_guess);
    676686  fFGausFit->SetParNames("Area","#mu","#sigma");
     
    681691
    682692  fHGausHist.Fit(fFGausFit,option);
    683 
    684693
    685694  fMean     = fFGausFit->GetParameter(1);
Note: See TracChangeset for help on using the changeset viewer.