Changeset 4966 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 09/13/04 08:57:58 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHEffectiveOnTime.cc
r4927 r4966 208 208 // setup binning 209 209 MBinning btheta("BinningTheta"); 210 btheta.SetEdgesCos(10 1, 0, 60);210 btheta.SetEdgesCos(100, 0, 60); 211 211 212 212 MBinning btime("BinningDeltaT"); … … 448 448 // 449 449 450 // Get x-axis451 TAxis &x = *fHEffOnTime.GetXaxis();452 453 450 // Get number of bins 454 const Int_t n = x.GetNbins();451 const Int_t n = fHEffOnTime.GetNbinsX(); 455 452 456 453 // Enhance binning 457 454 MBinning bins; 458 bins.SetEdges( x);455 bins.SetEdges(fHEffOnTime, 'x'); 459 456 bins.AddEdge(fLastTime.GetAxisTime()); 460 457 bins.Apply(fHEffOnTime); … … 502 499 { 503 500 MBinning bins; 504 bins.SetEdges( 2, time->GetAxisTime()-fNumEvents/200, time->GetAxisTime());501 bins.SetEdges(1, time->GetAxisTime()-fNumEvents/200, time->GetAxisTime()); 505 502 bins.Apply(fHEffOnTime); 506 503 bins.Apply(fHProbTime); … … 543 540 FitThetaBins(); 544 541 FitTimeBin(); 542 MH::RemoveFirstBin(fHEffOnTime); 543 MH::RemoveFirstBin(fHProbTime); 545 544 546 545 fIsFinalized = kTRUE; … … 579 578 { 580 579 TVirtualPad *p=gPad->GetPad(x+1)->GetPad(y+1); 581 if ( (st = (TPaveStats*)p->GetPrimitive("stats")))582 {583 if (st->GetOptStat()==11) 584 continue;585 586 const Double_t y1 = st->GetY1NDC(); 587 const Double_t y2 = st->GetY2NDC();588 const Double_t x1 = st->GetX1NDC();589 const Double_t x2 = st->GetX2NDC();590 591 st->SetY1NDC((y2-y1)/3+y1); 592 st->SetX1NDC((x2-x1)/3+x1);593 st->SetOptStat(11);594 }580 if (!(st = (TPaveStats*)p->GetPrimitive("stats"))) 581 continue; 582 583 if (st->GetOptStat()==11) 584 continue; 585 586 const Double_t y1 = st->GetY1NDC(); 587 const Double_t y2 = st->GetY2NDC(); 588 const Double_t x1 = st->GetX1NDC(); 589 const Double_t x2 = st->GetX2NDC(); 590 591 st->SetY1NDC((y2-y1)/3+y1); 592 st->SetX1NDC((x2-x1)/3+x1); 593 st->SetOptStat(11); 595 594 } 596 595
Note:
See TracChangeset
for help on using the changeset viewer.