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

Legend:

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

    r5007 r5070  
    163163//
    164164// - fHPowerProbability
    165 // - fFGausFit
    166 // - fFExpFit
    167165// - fPowerSpectrum     
    168166// - fGraphEvents
    169167// - fGraphPowerSpectrum
    170168//
     169// For the fits, we have to take special care since ROOT
     170// has stored the function pointer in a global list which
     171// lead to removing the object twice. We have to take out
     172// the following functions of the global list of functions
     173// as well:
     174//
     175// - fFGausFit
     176// - fFExpFit
     177//
    171178MHGausEvents::~MHGausEvents()
    172179{
     
    178185  // delete fits
    179186  if (fFGausFit)
    180     delete fFGausFit;
    181 
     187    {
     188      gROOT->GetListOfFunctions()->Remove(fFGausFit);
     189      delete fFGausFit;
     190    }
     191 
    182192  if (fFExpFit)
    183     delete fFExpFit;
     193    {
     194      gROOT->GetListOfFunctions()->Remove(fFExpFit);
     195      delete fFExpFit;
     196    }
    184197 
    185198  // delete arrays
Note: See TracChangeset for help on using the changeset viewer.