THLimitsFinder.h

Go to the documentation of this file.
00001 // @(#)root/hist:$Id: THLimitsFinder.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   30/08/99
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 #ifndef ROOT_THLimitsFinder
00012 #define ROOT_THLimitsFinder
00013 
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 // THLimitsFinder                                                       //
00018 //                                                                      //
00019 // class to find nice axis limits                                       //
00020 //                                                                      //
00021 //////////////////////////////////////////////////////////////////////////
00022 
00023 
00024 #ifndef ROOT_TObject
00025 #include "TObject.h"
00026 #endif
00027 
00028 class TH1;
00029 
00030 class THLimitsFinder : public TObject {
00031 
00032 protected:
00033    static THLimitsFinder *fgLimitsFinder;   //!Pointer to hist limits finder
00034 
00035 public:
00036    THLimitsFinder();
00037    virtual ~THLimitsFinder();
00038    virtual Int_t      FindGoodLimits(TH1 *h, Double_t xmin, Double_t xmax);
00039    virtual Int_t      FindGoodLimits(TH1 *h, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax);
00040    virtual Int_t      FindGoodLimits(TH1 *h, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax);
00041 
00042    static  void       Optimize(Double_t A1,  Double_t A2,  Int_t nold
00043                       ,Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BWID, Option_t *option="");
00044    static void        OptimizeLimits(Int_t nbins, Int_t &newbins, Double_t &xmin, Double_t &xmax, Bool_t isInteger);
00045    static THLimitsFinder *GetLimitsFinder();
00046    static  void       SetLimitsFinder(THLimitsFinder *finder);
00047 
00048    ClassDef(THLimitsFinder,0)  //Class to find best axis limits
00049 };
00050 
00051 #endif

Generated on Tue Jul 5 14:22:53 2011 for ROOT_528-00b_version by  doxygen 1.5.1