Changeset 2015 for trunk/MagicSoft/Mars/mhist/MHFlux.cc
- Timestamp:
- 04/28/03 09:52:57 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHFlux.cc
r1992 r2015 503 503 // ------------------------------------------------------------------------- 504 504 // 505 // Draw copies of the histograms506 //507 TObject *MHFlux::DrawClone(Option_t *opt) const508 {509 TCanvas &c = *MakeDefCanvas("flux", "Orig - Unfold - Flux plots");510 c.Divide(2, 2);511 512 gROOT->SetSelectedPad(NULL);513 514 c.cd(1);515 ((TH2*)&fHOrig)->DrawCopy("");516 gPad->SetLogx();517 518 c.cd(2);519 ((TH2*)&fHUnfold)->DrawCopy("");520 gPad->SetLogx();521 522 c.cd(3);523 ((TH2*)&fHFlux)->DrawCopy("");524 gPad->SetLogx();525 526 c.Modified();527 c.Update();528 529 return &c;530 }531 532 // -------------------------------------------------------------------------533 //534 505 // Draw the histograms 535 506 // 536 507 void MHFlux::Draw(Option_t *opt) 537 508 { 538 if (!gPad) 539 MakeDefCanvas("flux", "orig-unfold-flux plots"); 540 541 gPad->Divide(2,2); 542 543 gPad->cd(1); 509 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fHist); 510 pad->SetBorderMode(0); 511 512 AppendPad(""); 513 514 pad->Divide(2,2); 515 516 pad->cd(1); 517 gPad->SetBorderMode(0); 544 518 fHOrig.Draw(opt); 545 519 546 gPad->cd(2); 520 pad->cd(2); 521 gPad->SetBorderMode(0); 547 522 fHUnfold.Draw(opt); 548 523 549 gPad->cd(3); 524 pad->cd(3); 525 gPad->SetBorderMode(0); 550 526 fHFlux.Draw(opt); 551 527 552 gPad->Modified();553 gPad->Update();528 pad->Modified(); 529 pad->Update(); 554 530 } 555 531
Note:
See TracChangeset
for help on using the changeset viewer.