Changeset 5070


Ignore:
Timestamp:
09/16/04 16:13:16 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5068 r5070  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22 2004/09/16: Markus Gaug
     23
     24   * mhcalib/MHCalibrationChargeBlindPix.cc
     25   * mhcalib/MHGausEvents.cc
     26     - added call to gROOT->GetListOfFunctions->Remove(f) in destructor
     27
    2128
    2229 2004/09/16: Thomas Bretz
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindPix.cc

    r5049 r5070  
    147147
    148148  if (fSinglePheFit)
    149     delete fSinglePheFit;
    150 
     149    {
     150      gROOT->GetListOfFunctions()->Remove(fSinglePheFit);
     151      delete fSinglePheFit;
     152    }
     153 
    151154  if (fFitLegend)
    152155    delete fFitLegend;
  • 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.