Changeset 706 for trunk/MagicSoft/Mars/mdatacheck/MHHillas.cc
- Timestamp:
- 03/27/01 16:05:54 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdatacheck/MHHillas.cc
r698 r706 11 11 #include <TH1.h> 12 12 #include <TPad.h> 13 #include <TCanvas.h> 13 14 14 15 #include "MHillas.h" … … 36 37 // 37 38 fAlpha = new TH1F("Alpha [deg]", "Alpha of Hillas", 90, 0, 90); 38 fWidth = new TH1F("Width [mm]", "Width of Hillas", 1 50, 0, 150);39 fLength = new TH1F("Length [mm]", "Length of Hillas", 1 50, 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); 41 42 } 42 43 … … 51 52 void MHHillas::Fill(MHillas *par) 52 53 { 53 fAlpha ->Fill( par->GetAlpha());54 fAlpha ->Fill(fabs(par->GetAlpha())); 54 55 fWidth ->Fill(par->GetWidth()); 55 56 fLength->Fill(par->GetLength()); … … 57 58 } 58 59 59 #include <TCanvas.h>60 60 void MHHillas::Draw(Option_t *) 61 61 { 62 62 63 // 64 // Fixme! Check for an existing canvas. 65 // And create one if no canvas exists only! 66 // 63 67 TCanvas *c = new TCanvas("Hillas", "Histograms of Hillas Parameters"); 64 68 c->Divide(2,2);
Note:
See TracChangeset
for help on using the changeset viewer.