Ignore:
Timestamp:
03/31/03 10:37:56 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MH.cc

    r1879 r1880  
    5959#include <TLegend.h>
    6060#include <TPaveStats.h>
     61#if ROOT_VERSION_CODE > ROOT_VERSION(3,04,01)
     62#include <THLimitsFinder.h>
     63#endif
    6164
    6265#include "MLog.h"
     
    469472void MH::FindGoodLimits(Int_t nbins, Int_t &newbins, Double_t &xmin, Double_t &xmax, Bool_t isInteger)
    470473{
     474#if ROOT_VERSION_CODE > ROOT_VERSION(3,04,01)
     475    THLimitsFinder::OptimizeLimits(nbins, newbins, xmin, xmax, isInteger);
     476#else
    471477//*-*-*-*-*-*-*-*-*Find reasonable bin values*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    472478//*-*              ==========================
     
    486492    Double_t binwidth=0;
    487493
    488 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,01)
    489494    TGaxis::Optimize(umin, umax, nbins, binlow, binhigh, nbins, binwidth, "");
    490 #else
    491     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 #endif
    497495
    498496    if (binwidth <= 0 || binwidth > 1.e+39)
     
    532530
    533531    newbins = nbins;
     532#endif
    534533}
    535534
Note: See TracChangeset for help on using the changeset viewer.