Ignore:
Timestamp:
03/27/01 16:05:54 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r698 r706  
    1111#include <TH1.h>
    1212#include <TPad.h>
     13#include <TCanvas.h>
    1314
    1415#include "MHillas.h"
     
    3637    //
    3738    fAlpha  = new TH1F("Alpha [deg]", "Alpha of Hillas",   90, 0,  90);
    38     fWidth  = new TH1F("Width [mm]",  "Width of Hillas",  150, 0, 150);
    39     fLength = new TH1F("Length [mm]", "Length of Hillas", 150, 0, 150);
    40     fDist   = new TH1F("Dist [mm]",   "Dist of Hillas",   200, 0, 200);
     39    fWidth  = new TH1F("Width [mm]",  "Width of Hillas",  100, 0, 300);
     40    fLength = new TH1F("Length [mm]", "Length of Hillas", 100, 0, 300);
     41    fDist   = new TH1F("Dist [mm]",   "Dist of Hillas",   100, 0, 300);
    4142}
    4243
     
    5152void MHHillas::Fill(MHillas *par)
    5253{
    53     fAlpha ->Fill(par->GetAlpha());
     54    fAlpha ->Fill(fabs(par->GetAlpha()));
    5455    fWidth ->Fill(par->GetWidth());
    5556    fLength->Fill(par->GetLength());
     
    5758}
    5859
    59 #include <TCanvas.h>
    6060void MHHillas::Draw(Option_t *)
    6161{
    6262
     63    //
     64    // Fixme! Check for an existing canvas.
     65    // And create one if no canvas exists only!
     66    //
    6367    TCanvas *c = new TCanvas("Hillas", "Histograms of Hillas Parameters");
    6468    c->Divide(2,2);
Note: See TracChangeset for help on using the changeset viewer.