Ignore:
Timestamp:
10/29/01 11:35:19 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHHillas.cc

    r995 r1004  
    2626{
    2727    //
    28     //  default constructor
    29     //  creates an a list of histograms for all pixels and both gain channels
    30     //
    31 
    32     //
    3328    //   set the name and title of this object
    3429    //
    35    
    36     *fName  = name  ? name  : "MHHillas" ;
    37     *fTitle = title ? title : "Container for Hillas histograms" ;
     30    fName  = name  ? name  : "MHHillas" ;
     31    fTitle = title ? title : "Container for Hillas histograms" ;
    3832
    3933    //
     
    4236    // connect all the histogram with the container fHist
    4337    //
    44     // FIXME! Make the histograms looking that they can be used for
    45     //        presentations (axis title, ...)
    46     //
    4738    fAlpha  = new TH1F("Alpha [deg]", "Alpha of Hillas",   90, 0,  90);
    4839    fWidth  = new TH1F("Width [mm]",  "Width of Hillas",  100, 0, 300);
    4940    fLength = new TH1F("Length [mm]", "Length of Hillas", 100, 0, 300);
    5041    fDist   = new TH1F("Dist [mm]",   "Dist of Hillas",   100, 0, 300);
     42
     43    fAlpha->SetDirectory(NULL);
     44    fLength->SetDirectory(NULL);
     45    fDist->SetDirectory(NULL);
     46    fWidth->SetDirectory(NULL);
    5147
    5248    fAlpha->GetXaxis()->SetTitle("Alpha [deg]");
     
    9894TObject *MHHillas::DrawClone(Option_t *opt) const
    9995{
    100     TCanvas *c = new TCanvas("Hillas", "Histograms of Hillas Parameters");
    101     c->Divide(2,2);
     96    TCanvas *c = MakeDefCanvas("Hillas", "Histograms of Hillas Parameters");
     97    c->Divide(2, 2);
    10298
    10399    gROOT->SetSelectedPad(NULL);
     
    107103    //
    108104    c->cd(1);
    109     fAlpha->DrawClone()->SetBit(kCanDelete);
     105    fAlpha->DrawCopy();
    110106
    111107    c->cd(2);
    112     fLength->DrawClone()->SetBit(kCanDelete);
     108    fLength->DrawCopy();
    113109
    114110    c->cd(3);
    115     fDist->DrawClone()->SetBit(kCanDelete);
     111    fDist->DrawCopy();
    116112
    117113    c->cd(4);
    118     fWidth->DrawClone()->SetBit(kCanDelete);
     114    fWidth->DrawCopy();
    119115
    120116    c->Modified();
     
    133129{
    134130    if (!gPad)
    135     {
    136         if (!gROOT->GetMakeDefCanvas())
    137             return;
    138         (gROOT->GetMakeDefCanvas())();
    139     }
     131        MakeDefCanvas("Hillas", "Histograms of Hillas Parameters");
    140132
    141     //TCanvas *c = new TCanvas("Hillas", "Histograms of Hillas Parameters");
    142133    gPad->Divide(2,2);
    143134
Note: See TracChangeset for help on using the changeset viewer.