Changeset 1880 for trunk/MagicSoft/Mars/mhist/MH.cc
- Timestamp:
- 03/31/03 10:37:56 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MH.cc
r1879 r1880 59 59 #include <TLegend.h> 60 60 #include <TPaveStats.h> 61 #if ROOT_VERSION_CODE > ROOT_VERSION(3,04,01) 62 #include <THLimitsFinder.h> 63 #endif 61 64 62 65 #include "MLog.h" … … 469 472 void MH::FindGoodLimits(Int_t nbins, Int_t &newbins, Double_t &xmin, Double_t &xmax, Bool_t isInteger) 470 473 { 474 #if ROOT_VERSION_CODE > ROOT_VERSION(3,04,01) 475 THLimitsFinder::OptimizeLimits(nbins, newbins, xmin, xmax, isInteger); 476 #else 471 477 //*-*-*-*-*-*-*-*-*Find reasonable bin values*-*-*-*-*-*-*-*-*-*-*-*-*-*-* 472 478 //*-* ========================== … … 486 492 Double_t binwidth=0; 487 493 488 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,01)489 494 TGaxis::Optimize(umin, umax, nbins, binlow, binhigh, nbins, binwidth, ""); 490 #else491 gLog << all << "*********************************************************" << endl;492 gLog << all << "ERROR, because Abelardo removed TGaxis::Optimize from" << endl;493 gLog << all << " MH::FindGoodLimits to be able to compile Mars with newer" << endl;494 gLog << all << " root versions, whatever you are trying to do will fail!!!" << endl;495 gLog << all << "*********************************************************" << endl;496 #endif497 495 498 496 if (binwidth <= 0 || binwidth > 1.e+39) … … 532 530 533 531 newbins = nbins; 532 #endif 534 533 } 535 534
Note:
See TracChangeset
for help on using the changeset viewer.