Logo ROOT   6.18/05
Reference Guide
THLimitsFinder.h
Go to the documentation of this file.
1// @(#)root/hist:$Id$
2// Author: Rene Brun 30/08/99
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11#ifndef ROOT_THLimitsFinder
12#define ROOT_THLimitsFinder
13
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// THLimitsFinder //
18// //
19// class to find nice axis limits //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23
24#include "TObject.h"
25
26class TH1;
27
28class THLimitsFinder : public TObject {
29
30protected:
31 static THLimitsFinder *fgLimitsFinder; //!Pointer to hist limits finder
32
33public:
35 virtual ~THLimitsFinder();
39
40 static void Optimize(Double_t A1, Double_t A2, Int_t nold
41 ,Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BWID, Option_t *option="");
42 static void OptimizeLimits(Int_t nbins, Int_t &newbins, Double_t &xmin, Double_t &xmax, Bool_t isInteger);
44 static void SetLimitsFinder(THLimitsFinder *finder);
45
46 ClassDef(THLimitsFinder,0) //Class to find best axis limits
47};
48
49#endif
#define h(i)
Definition: RSha256.hxx:106
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:326
float xmin
Definition: THbookFile.cxx:93
float ymin
Definition: THbookFile.cxx:93
float xmax
Definition: THbookFile.cxx:93
float ymax
Definition: THbookFile.cxx:93
The TH1 histogram class.
Definition: TH1.h:56
Class to compute nice axis limits.
static void SetLimitsFinder(THLimitsFinder *finder)
This static function can be used to specify a finder derived from THLimitsFinder.
virtual ~THLimitsFinder()
static THLimitsFinder * GetLimitsFinder()
Return pointer to the current finder.
static void OptimizeLimits(Int_t nbins, Int_t &newbins, Double_t &xmin, Double_t &xmax, Bool_t isInteger)
Optimize axis limits.
static THLimitsFinder * fgLimitsFinder
virtual Int_t FindGoodLimits(TH1 *h, Double_t xmin, Double_t xmax)
Compute the best axis limits for the X axis.
THLimitsFinder()
Pointer to hist limits finder.
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 function to compute reasonable axis limits.
Mother of all ROOT objects.
Definition: TObject.h:37