Changeset 1004 for trunk/MagicSoft/Mars/mhist/MHHillas.cc
- Timestamp:
- 10/29/01 11:35:19 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHHillas.cc
r995 r1004 26 26 { 27 27 // 28 // default constructor29 // creates an a list of histograms for all pixels and both gain channels30 //31 32 //33 28 // set the name and title of this object 34 29 // 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" ; 38 32 39 33 // … … 42 36 // connect all the histogram with the container fHist 43 37 // 44 // FIXME! Make the histograms looking that they can be used for45 // presentations (axis title, ...)46 //47 38 fAlpha = new TH1F("Alpha [deg]", "Alpha of Hillas", 90, 0, 90); 48 39 fWidth = new TH1F("Width [mm]", "Width of Hillas", 100, 0, 300); 49 40 fLength = new TH1F("Length [mm]", "Length of Hillas", 100, 0, 300); 50 41 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); 51 47 52 48 fAlpha->GetXaxis()->SetTitle("Alpha [deg]"); … … 98 94 TObject *MHHillas::DrawClone(Option_t *opt) const 99 95 { 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); 102 98 103 99 gROOT->SetSelectedPad(NULL); … … 107 103 // 108 104 c->cd(1); 109 fAlpha->DrawC lone()->SetBit(kCanDelete);105 fAlpha->DrawCopy(); 110 106 111 107 c->cd(2); 112 fLength->DrawC lone()->SetBit(kCanDelete);108 fLength->DrawCopy(); 113 109 114 110 c->cd(3); 115 fDist->DrawC lone()->SetBit(kCanDelete);111 fDist->DrawCopy(); 116 112 117 113 c->cd(4); 118 fWidth->DrawC lone()->SetBit(kCanDelete);114 fWidth->DrawCopy(); 119 115 120 116 c->Modified(); … … 133 129 { 134 130 if (!gPad) 135 { 136 if (!gROOT->GetMakeDefCanvas()) 137 return; 138 (gROOT->GetMakeDefCanvas())(); 139 } 131 MakeDefCanvas("Hillas", "Histograms of Hillas Parameters"); 140 132 141 //TCanvas *c = new TCanvas("Hillas", "Histograms of Hillas Parameters");142 133 gPad->Divide(2,2); 143 134
Note:
See TracChangeset
for help on using the changeset viewer.