Changeset 959 for trunk/MagicSoft/Mars/mhist/MHHillas.cc
- Timestamp:
- 10/02/01 14:46:56 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHHillas.cc
r957 r959 132 132 void MHHillas::Draw(Option_t *) 133 133 { 134 if (!gPad) 135 { 136 if (!gROOT->GetMakeDefCanvas()) 137 return; 138 (gROOT->GetMakeDefCanvas())(); 139 } 134 140 135 // 136 // Fixme! Check for an existing canvas. 137 // And create one if no canvas exists only! 138 // 139 TCanvas *c = new TCanvas("Hillas", "Histograms of Hillas Parameters"); 140 c->Divide(2,2); 141 //TCanvas *c = new TCanvas("Hillas", "Histograms of Hillas Parameters"); 142 gPad->Divide(2,2); 141 143 142 c->cd(1);144 gPad->cd(1); 143 145 fAlpha->Draw(); 144 146 145 c->cd(2);147 gPad->cd(2); 146 148 fLength->Draw(); 147 149 148 c->cd(3);150 gPad->cd(3); 149 151 fDist->Draw(); 150 152 151 c->cd(4);153 gPad->cd(4); 152 154 fWidth->Draw(); 153 155 154 c->Modified();155 c->Update();156 gPad->Modified(); 157 gPad->Update(); 156 158 }
Note:
See TracChangeset
for help on using the changeset viewer.