Changeset 4923 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 09/10/04 14:56:07 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHEffectiveOnTime.cc
r4920 r4923 39 39 40 40 #include <TF1.h> 41 #include <TMinuit.h> 42 #include <TRandom.h> 43 41 44 #include <TLatex.h> 42 45 #include <TCanvas.h> 43 #include <TMinuit.h> 44 #include <TRandom.h> 46 #include <TPaveStats.h> 45 47 46 48 #include "MTime.h" … … 486 488 { 487 489 TH1D *h=0; 490 TPaveStats *st=0; 488 491 489 492 TString o(opt); … … 491 494 { 492 495 TVirtualPad *pad = gPad; 496 497 for (int x=0; x<2; x++) 498 for (int y=0; y<3; y++) 499 { 500 TVirtualPad *p=gPad->GetPad(x+1)->GetPad(y+1); 501 if ((st = (TPaveStats*)p->GetPrimitive("stats"))) 502 { 503 if (st->GetOptStat()==11) 504 continue; 505 506 const Double_t y1 = st->GetY1NDC(); 507 const Double_t y2 = st->GetY2NDC(); 508 const Double_t x1 = st->GetX1NDC(); 509 const Double_t x2 = st->GetX2NDC(); 510 511 st->SetY1NDC((y2-y1)/3+y1); 512 st->SetX1NDC((x2-x1)/3+x1); 513 st->SetOptStat(11); 514 } 515 } 493 516 494 517 pad->GetPad(1)->cd(1); … … 568 591 gPad->SetBorderMode(0); 569 592 fHProbTime.Draw(); 593 AppendPad("paint"); 570 594 571 595 pad->GetPad(1)->cd(3);
Note:
See TracChangeset
for help on using the changeset viewer.