Changeset 1965 for trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
- Timestamp:
- 04/19/03 18:39:05 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r1940 r1965 211 211 TObject *MHHillasSrc::DrawClone(Option_t *opt) const 212 212 { 213 TCanvas *c = MakeDefCanvas(this, 700, 500); 214 c->Divide(2, 2); 215 216 // FIXME: Display Source position 217 218 gROOT->SetSelectedPad(NULL); 219 220 // 221 // This is necessary to get the expected bahviour of DrawClone 222 // 223 c->cd(1); 224 fAlpha->DrawCopy(); 225 226 c->cd(2); 227 fDist->DrawCopy(); 228 229 c->cd(3); 230 fHeadTail->DrawCopy(); 231 232 c->cd(4); 233 gPad->SetLogy(); 234 fCosDA->DrawCopy(); 235 236 c->Modified(); 237 c->Update(); 238 239 return c; 213 return MH::DrawClone(opt, 700, 500); 240 214 } 241 215 … … 248 222 void MHHillasSrc::Draw(Option_t *) 249 223 { 250 if (!gPad) 251 MakeDefCanvas(this, 700, 500); 224 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this, 700, 500); 225 pad->SetBorderMode(0); 226 227 AppendPad(""); 252 228 253 229 // FIXME: Display Source position 254 230 255 gPad->Divide(2, 2); 256 257 gPad->cd(1); 231 pad->Divide(2, 2); 232 233 pad->cd(1); 234 gPad->SetBorderMode(0); 258 235 fAlpha->Draw(); 259 236 260 gPad->cd(2); 237 pad->cd(2); 238 gPad->SetBorderMode(0); 261 239 fDist->Draw(); 262 240 263 gPad->cd(1); 241 pad->cd(3); 242 gPad->SetBorderMode(0); 264 243 fHeadTail->Draw(); 265 244 266 gPad->cd(2); 245 pad->cd(4); 246 gPad->SetBorderMode(0); 267 247 gPad->SetLogy(); 268 248 fCosDA->Draw(); 269 249 270 gPad->Modified();271 gPad->Update();250 pad->Modified(); 251 pad->Update(); 272 252 } 273 253
Note:
See TracChangeset
for help on using the changeset viewer.