Changeset 2829 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/16/04 14:14:18 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2828 r2829  
    1111
    1212   * mcalib/MHCalibrationBlindPixel.[h,cc]
     13   * mcalib/MCalibrationBlindPix.h,
    1314     - incorporate Fit functions
    1415     - fixed a bug due to which DrawClone crashed when class was used
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.cc

    r2822 r2829  
    3737#include "MHCalibrationBlindPixel.h"
    3838#include "MHCalibrationConfig.h"
    39 #include "MCalibrationFits.h"
    4039
    4140#include <TStyle.h>
     
    7170    fChisquare(0.), fProb(0.),  fNdf(0),
    7271    fMeanTime(0.),  fMeanTimeErr(0.), fSigmaTime(0.), fSigmaTimeErr(0.),
    73     fLambdaCheck(0.), fLambdaCheckErr(0.)
     72    fLambdaCheck(0.), fLambdaCheckErr(0.),
     73    fgSinglePheFitFunc(&gfKto4),fgSinglePheFitNPar(6)
     74   
    7475{
    7576
     
    109110    fHBlindPixelChargevsN->SetDirectory(NULL);
    110111
    111     fgSinglePheFitFunc = &gfKto4;
    112     fgSinglePheFitNPar = 6;
    113112}
    114113
     
    199198{
    200199
    201    //TVirtualPad *pad = gROOT->GetSelectedPad();
    202    TVirtualPad *padsav = gPad;
    203    //if (pad) pad->cd();
    204 
    205    TObject *newobj = Clone();
    206 
    207    if (!newobj)
    208        return 0;
    209 
    210    newobj->Draw(opt);
    211 
    212    if (padsav)
    213        padsav->cd();
    214 
    215    return newobj;
     200  gROOT->SetSelectedPad(NULL);
     201
     202  TObject *newobj = Clone();
     203  newobj->SetBit(kCanDelete);
     204 
     205  if (!newobj)
     206     return 0;
     207
     208  newobj->Draw(opt);
     209  return newobj;
    216210}
    217211 
Note: See TracChangeset for help on using the changeset viewer.