library: libHist #include "THLimitsFinder.h" |
THLimitsFinder
class description - header file - source file - inheritance tree (.pdf)
public:
THLimitsFinder()
THLimitsFinder(const THLimitsFinder&)
virtual ~THLimitsFinder()
static TClass* Class()
virtual Int_t FindGoodLimits(TH1* h, Double_t xmin, Double_t xmax)
virtual Int_t FindGoodLimits(TH1* h, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
virtual Int_t FindGoodLimits(TH1* h, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax)
static THLimitsFinder* GetLimitsFinder()
virtual TClass* IsA() const
THLimitsFinder& operator=(const THLimitsFinder&)
static void Optimize(Double_t A1, Double_t A2, Int_t nold, Double_t& BinLow, Double_t& BinHigh, Int_t& nbins, Double_t& BWID, Option_t* option = "")
static void OptimizeLimits(Int_t nbins, Int_t& newbins, Double_t& xmin, Double_t& xmax, Bool_t isInteger)
static void SetLimitsFinder(THLimitsFinder* finder)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
static THLimitsFinder* fgLimitsFinder !Pointer to hist limits finder
Int_t FindGoodLimits(TH1 *h, Double_t xmin, Double_t xmax)
compute the best axis limits for the X axis.
If the bit kIsInteger is set, the number of channels is also recomputed.
The axis parameters are replaced by the optimized parameters
example:
With the input parameters xmin=-1.467 and xmax=2.344, the function
will compute better limits -1.8 and 2.7 and store them in the axis.
Int_t FindGoodLimits(TH1 *h, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
compute the best axis limits for the X and Y axis.
If the bit kIsInteger is set, the number of channels is also recomputed.
The axis parameters are replaced by the optimized parameters
void Optimize(Double_t A1, Double_t A2, Int_t nold ,Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BinWidth, Option_t *option)
static function to compute reasonable axis limits
Input parameters:
A1,A2 : Old WMIN,WMAX .
BinLow,BinHigh : New WMIN,WMAX .
nold : Old NDIV .
nbins : New NDIV .
Author: Rene Brun 14/01/2002
Last update: root/hist:$Name: $:$Id: THLimitsFinder.cxx,v 1.10 2005/12/04 10:51:27 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.