Changeset 3311 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/26/04 01:27:57 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindPix.cc

    r3297 r3311  
    128128{
    129129
     130  if (fSinglePheFit)
     131    delete fSinglePheFit;
     132
    130133  if (fFitLegend)
    131134    delete fFitLegend;
    132135
    133   if (fSinglePheFit)
    134     delete fSinglePheFit;
    135 
    136136  if (fHSinglePheFADCSlices)
    137       delete fHSinglePheFADCSlices;
     137    delete fHSinglePheFADCSlices;
    138138
    139139  if (fHPedestalFADCSlices)
    140       delete fHPedestalFADCSlices;
    141 
    142 }
     140    delete fHPedestalFADCSlices;
     141
     142}
     143
    143144void MHCalibrationChargeBlindPix::Init()
    144145{
     
    183184  fProb             = 0.;
    184185
    185   SetSinglePheFitOK     ( kFALSE );
     186  SetSinglePheFitOK ( kFALSE );
    186187  SetPedestalFitOK  ( kFALSE );
    187188
    188189  if (fFitLegend)
    189     delete fFitLegend;
     190  {
     191      delete fFitLegend;
     192      fFitLegend = NULL;
     193  }
    190194
    191195  if (fSinglePheFit)
     196  {
    192197    delete fSinglePheFit;
     198    fSinglePheFit = NULL;
     199  }
     200
     201  if (fHSinglePheFADCSlices)
     202  {
     203    delete fHSinglePheFADCSlices;
     204    fHSinglePheFADCSlices = NULL;
     205  }
     206
     207  if (fHPedestalFADCSlices)
     208  {
     209    delete fHPedestalFADCSlices;
     210    fHPedestalFADCSlices = NULL;
     211  }
     212
    193213
    194214  MHCalibrationChargePix::Clear();
     
    692712                                (fFitFunc =  kEMichele ) ?  "Michele)"     : " none )" ));
    693713      fFitLegend->SetTextSize(0.05);
    694       fFitLegend->SetBit(kCanDelete);
    695714  }
    696715  else
Note: See TracChangeset for help on using the changeset viewer.