Changeset 7618 for trunk/MagicSoft/Mars/mhflux/MHPhi.cc
- Timestamp:
- 03/20/06 18:05:27 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHPhi.cc
r7594 r7618 297 297 h1->Draw("same"); 298 298 299 AppendPad("result1"); 300 299 301 // -------------------------- 300 302 … … 341 343 h1->Draw("same"); 342 344 345 AppendPad("result4"); 346 343 347 // -------------------------- 344 345 pad->cd();346 AppendPad("result");347 348 } 348 349 … … 454 455 } 455 456 456 void MHPhi::PaintResult() const457 {458 TVirtualPad *pad = gPad;459 460 pad->cd(1);461 PaintText(fHPhi);462 463 pad->cd(4);464 TH1D *res = gPad ? dynamic_cast<TH1D*>(gPad->FindObject("Result")) : NULL;465 if (res)466 PaintText(*res);467 }468 469 457 void MHPhi::Paint(Option_t *o) 470 458 { … … 472 460 if (opt=="update") 473 461 PaintUpdate(); 474 if (opt=="result") 475 PaintResult(); 462 if (opt=="result1") 463 PaintText(fHPhi); 464 if (opt=="result4") 465 { 466 TH1D *res = gPad ? dynamic_cast<TH1D*>(gPad->FindObject("Result")) : NULL; 467 if (res) 468 PaintText(*res); 469 } 476 470 } 477 471
Note:
See TracChangeset
for help on using the changeset viewer.