Changeset 8709 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 08/25/07 16:30:26 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mhbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MH.cc
r8696 r8709 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.3 5 2007-08-22 18:22:49tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.36 2007-08-25 15:30:24 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 1398 1398 //const Double_t rc = ((1-2*w)*e1*e1+w*w*e2*e2)/(b2*b2); 1399 1399 1400 if (b2==0) 1401 { 1402 hres.SetBinError(binx, 0); 1403 continue; 1404 } 1405 1400 1406 const Double_t c = c2==0 ? 1 : c1/c2; 1401 1407 const Double_t u = b2==0 ? 0 : b1/b2; -
trunk/MagicSoft/Mars/mhbase/MH3.cc
r8698 r8709 574 574 } 575 575 576 void MH3::HandleLogAxis(TAxis &axe) const 577 { 578 if (axe.GetXmax()>3000*axe.GetXmin()) 579 return; 580 581 axe.SetMoreLogLabels(); 582 if (axe.GetXmax()<5000) 583 axe.SetNoExponent(); 584 } 585 576 586 // -------------------------------------------------------------------------- 577 587 // … … 582 592 // PROFY: Draw a y-profile into the histogram (for 2D histograms only) 583 593 // ONLY: Draw the profile histogram only (for 2D histograms only) 584 // BLUE: Draw the profile in blue color instead of the histograms line color 594 // BLUE: Draw the profile in blue color instead of the histograms 595 // line color 585 596 // 586 597 // If the kIsLog?-Bit is set the axis is displayed lkogarithmically. … … 597 608 pad->SetGridy(); 598 609 599 if (fHist->TestBit(kIsLogx)) pad->SetLogx(); 600 if (fHist->TestBit(kIsLogy)) pad->SetLogy(); 601 if (fHist->TestBit(kIsLogz)) pad->SetLogz(); 610 if (fHist->TestBit(kIsLogx)) 611 { 612 pad->SetLogx(); 613 HandleLogAxis(*fHist->GetXaxis()); 614 } 615 if (fHist->TestBit(kIsLogy)) 616 { 617 pad->SetLogy(); 618 HandleLogAxis(*fHist->GetYaxis()); 619 } 620 if (fHist->TestBit(kIsLogz)) 621 { 622 pad->SetLogz(); 623 HandleLogAxis(*fHist->GetZaxis()); 624 } 602 625 603 626 fHist->SetFillStyle(4000); -
trunk/MagicSoft/Mars/mhbase/MH3.h
r8698 r8709 27 27 Double_t fScale[3]; // Scale for the three axis (eg unit) 28 28 Byte_t fStyleBits; // Set the range of a histogram automatically in Finalize 29 30 void HandleLogAxis(TAxis &axe) const; 29 31 30 32 void StreamPrimitive(ostream &out) const; -
trunk/MagicSoft/Mars/mhbase/MHn.cc
r8698 r8709 410 410 411 411 case 2: // 2 412 pad->Divide(1,2 );412 pad->Divide(1,2, 1e-5, 1e-5); 413 413 break; 414 414 case 3: // 3 415 pad->Divide(2,2 );415 pad->Divide(2,2, 1e-5, 1e-5); 416 416 delete pad->GetPad(4); 417 417 break; 418 418 case 4: // 4 419 pad->Divide(2,2 );419 pad->Divide(2,2, 1e-5, 1e-5); 420 420 break; 421 421 case 5: // 5 422 pad->Divide(3,2 );422 pad->Divide(3,2, 1e-5, 1e-5); 423 423 delete pad->GetPad(6); 424 424 break; 425 425 case 6: // 6 426 pad->Divide(3,2 );426 pad->Divide(3,2, 1e-5, 1e-5); 427 427 break; 428 428 429 429 case 12: // 2 430 pad->Divide(2,1 );430 pad->Divide(2,1, 1e-5, 1e-5); 431 431 break; 432 432 case 13: // 3 433 433 break; 434 434 case 14: // 4 435 pad->Divide(2,2 );435 pad->Divide(2,2, 1e-5, 1e-5); 436 436 break; 437 437 case 15: // 5 438 pad->Divide(2,3 );438 pad->Divide(2,3, 1e-5, 1e-5); 439 439 pad->GetPad(4)->SetPad(0.51, 0.01, 0.99, 0.65); 440 440 delete pad->GetPad(6);
Note:
See TracChangeset
for help on using the changeset viewer.