ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
TH1.cxx File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <sstream>
#include "Riostream.h"
#include "TROOT.h"
#include "TClass.h"
#include "TMath.h"
#include "THashList.h"
#include "TH1.h"
#include "TH2.h"
#include "TF2.h"
#include "TF3.h"
#include "TPluginManager.h"
#include "TVirtualPad.h"
#include "TRandom.h"
#include "TVirtualFitter.h"
#include "THLimitsFinder.h"
#include "TProfile.h"
#include "TStyle.h"
#include "TVectorF.h"
#include "TVectorD.h"
#include "TBrowser.h"
#include "TObjString.h"
#include "TError.h"
#include "TVirtualHistPainter.h"
#include "TVirtualFFT.h"
#include "TSystem.h"
#include "HFitInterface.h"
#include "Fit/DataRange.h"
#include "Fit/BinData.h"
#include "Math/GoFTest.h"
#include "Math/MinimizerOptions.h"
#include "Math/QuantFuncMathCore.h"
Include dependency graph for TH1.cxx:

Go to the source code of this file.

Functions

void H1InitGaus ()
 Compute Initial values of parameters for a gaussian. More...
 
void H1InitExpo ()
 Compute Initial values of parameters for an exponential. More...
 
void H1InitPolynom ()
 Compute Initial values of parameters for a polynom. More...
 
void H1LeastSquareFit (Int_t n, Int_t m, Double_t *a)
 Least squares lpolynomial fitting without weights. More...
 
void H1LeastSquareLinearFit (Int_t ndata, Double_t &a0, Double_t &a1, Int_t &ifail)
 Least square linear fit without weights. More...
 
void H1LeastSquareSeqnd (Int_t n, Double_t *a, Int_t idim, Int_t &ifail, Int_t k, Double_t *b)
 Extracted from CERN Program library routine DSEQN. More...
 
 ClassImp (TH1) TH1
 Histogram default constructor. More...
 
static Bool_t AlmostEqual (Double_t a, Double_t b, Double_t epsilon=0.00000001)
 
static Bool_t AlmostInteger (Double_t a, Double_t epsilon=0.00000001)
 
static bool IsEquidistantBinning (const TAxis &axis)
 
 ClassImp (TH1C) TH1C
 Constructor. More...
 
TH1C operator* (Double_t c1, const TH1C &h1)
 Operator *. More...
 
TH1C operator+ (const TH1C &h1, const TH1C &h2)
 Operator +. More...
 
TH1C operator- (const TH1C &h1, const TH1C &h2)
 Operator -. More...
 
TH1C operator* (const TH1C &h1, const TH1C &h2)
 Operator *. More...
 
TH1C operator/ (const TH1C &h1, const TH1C &h2)
 Operator /. More...
 
 ClassImp (TH1S) TH1S
 Constructor. More...
 
TH1S operator* (Double_t c1, const TH1S &h1)
 Operator *. More...
 
TH1S operator+ (const TH1S &h1, const TH1S &h2)
 Operator +. More...
 
TH1S operator- (const TH1S &h1, const TH1S &h2)
 Operator -. More...
 
TH1S operator* (const TH1S &h1, const TH1S &h2)
 Operator *. More...
 
TH1S operator/ (const TH1S &h1, const TH1S &h2)
 Operator /. More...
 
 ClassImp (TH1I) TH1I
 Constructor. More...
 
TH1I operator* (Double_t c1, const TH1I &h1)
 Operator *. More...
 
TH1I operator+ (const TH1I &h1, const TH1I &h2)
 Operator +. More...
 
TH1I operator- (const TH1I &h1, const TH1I &h2)
 Operator -. More...
 
TH1I operator* (const TH1I &h1, const TH1I &h2)
 Operator *. More...
 
TH1I operator/ (const TH1I &h1, const TH1I &h2)
 Operator /. More...
 
 ClassImp (TH1F) TH1F
 Constructor. More...
 
TH1F operator* (Double_t c1, const TH1F &h1)
 Operator *. More...
 
TH1F operator+ (const TH1F &h1, const TH1F &h2)
 Operator +. More...
 
TH1F operator- (const TH1F &h1, const TH1F &h2)
 Operator -. More...
 
TH1F operator* (const TH1F &h1, const TH1F &h2)
 Operator *. More...
 
TH1F operator/ (const TH1F &h1, const TH1F &h2)
 Operator /. More...
 
 ClassImp (TH1D) TH1D
 Constructor. More...
 
TH1D operator* (Double_t c1, const TH1D &h1)
 Operator *. More...
 
TH1D operator+ (const TH1D &h1, const TH1D &h2)
 Operator +. More...
 
TH1D operator- (const TH1D &h1, const TH1D &h2)
 Operator -. More...
 
TH1D operator* (const TH1D &h1, const TH1D &h2)
 Operator *. More...
 
TH1D operator/ (const TH1D &h1, const TH1D &h2)
 Operator /. More...
 
TH1R__H (Int_t hid)
 return pointer to histogram with name hid if id >=0 h_id if id <0 More...
 
TH1R__H (const char *hname)
 return pointer to histogram with name hname More...
 

Variables

TF1gF1 =0
 

Function Documentation

static Bool_t AlmostEqual ( Double_t  a,
Double_t  b,
Double_t  epsilon = 0.00000001 
)
inlinestatic

Definition at line 5149 of file TH1.cxx.

Referenced by AlmostInteger().

static Bool_t AlmostInteger ( Double_t  a,
Double_t  epsilon = 0.00000001 
)
inlinestatic

Definition at line 5157 of file TH1.cxx.

Referenced by TH1::RecomputeAxisLimits().

ClassImp ( TH1  )

Histogram default constructor.

Definition at line 550 of file TH1.cxx.

ClassImp ( TH1C  )

Constructor.

Definition at line 8799 of file TH1.cxx.

ClassImp ( TH1S  )

Constructor.

Definition at line 9000 of file TH1.cxx.

ClassImp ( TH1I  )

Constructor.

Definition at line 9199 of file TH1.cxx.

ClassImp ( TH1F  )

Constructor.

Definition at line 9399 of file TH1.cxx.

ClassImp ( TH1D  )

Constructor.

Definition at line 9596 of file TH1.cxx.

void H1InitExpo ( )

Compute Initial values of parameters for an exponential.

Definition at line 4291 of file TH1.cxx.

void H1InitGaus ( )

Compute Initial values of parameters for a gaussian.

Definition at line 4234 of file TH1.cxx.

void H1InitPolynom ( )

Compute Initial values of parameters for a polynom.

Definition at line 4312 of file TH1.cxx.

void H1LeastSquareFit ( Int_t  n,
Int_t  m,
Double_t a 
)

Least squares lpolynomial fitting without weights.

Parameters
[in]nnumber of points to fit
[in]mnumber of parameters
[in]aarray of parameters

based on CERNLIB routine LSQ: Translated to C++ by Rene Brun (E.Keil. revised by B.Schorr, 23.10.1981.)

Definition at line 4343 of file TH1.cxx.

Referenced by H1InitPolynom().

void H1LeastSquareLinearFit ( Int_t  ndata,
Double_t a0,
Double_t a1,
Int_t ifail 
)

Least square linear fit without weights.

extracted from CERNLIB LLSQ: Translated to C++ by Rene Brun (added to LSQ by B. Schorr, 15.02.1982.)

Definition at line 4403 of file TH1.cxx.

Referenced by H1InitExpo(), and H1LeastSquareFit().

void H1LeastSquareSeqnd ( Int_t  n,
Double_t a,
Int_t  idim,
Int_t ifail,
Int_t  k,
Double_t b 
)

Extracted from CERN Program library routine DSEQN.

: Translated to C++ by Rene Brun

Definition at line 4450 of file TH1.cxx.

Referenced by H1LeastSquareFit(), TMultiGraph::LeastSquareFit(), and TGraph::LeastSquareFit().

static bool IsEquidistantBinning ( const TAxis axis)
inlinestatic

Definition at line 5163 of file TH1.cxx.

Referenced by TH1::RecomputeAxisLimits().

TH1C operator* ( Double_t  c1,
const TH1C h1 
)

Operator *.

Definition at line 8937 of file TH1.cxx.

Referenced by operator*().

TH1C operator* ( const TH1C h1,
const TH1C h2 
)

Operator *.

Definition at line 8973 of file TH1.cxx.

TH1S operator* ( Double_t  c1,
const TH1S h1 
)

Operator *.

Definition at line 9137 of file TH1.cxx.

TH1S operator* ( const TH1S h1,
const TH1S h2 
)

Operator *.

Definition at line 9173 of file TH1.cxx.

TH1I operator* ( Double_t  c1,
const TH1I h1 
)

Operator *.

Definition at line 9337 of file TH1.cxx.

TH1I operator* ( const TH1I h1,
const TH1I h2 
)

Operator *.

Definition at line 9373 of file TH1.cxx.

TH1F operator* ( Double_t  c1,
const TH1F h1 
)

Operator *.

Definition at line 9533 of file TH1.cxx.

TH1F operator* ( const TH1F h1,
const TH1F h2 
)

Operator *.

Definition at line 9569 of file TH1.cxx.

TH1D operator* ( Double_t  c1,
const TH1D h1 
)

Operator *.

Definition at line 9730 of file TH1.cxx.

TH1D operator* ( const TH1D h1,
const TH1D h2 
)

Operator *.

Definition at line 9766 of file TH1.cxx.

TH1C operator+ ( const TH1C h1,
const TH1C h2 
)

Operator +.

Definition at line 8949 of file TH1.cxx.

TH1S operator+ ( const TH1S h1,
const TH1S h2 
)

Operator +.

Definition at line 9149 of file TH1.cxx.

TH1I operator+ ( const TH1I h1,
const TH1I h2 
)

Operator +.

Definition at line 9349 of file TH1.cxx.

TH1F operator+ ( const TH1F h1,
const TH1F h2 
)

Operator +.

Definition at line 9545 of file TH1.cxx.

TH1D operator+ ( const TH1D h1,
const TH1D h2 
)

Operator +.

Definition at line 9742 of file TH1.cxx.

TH1C operator- ( const TH1C h1,
const TH1C h2 
)

Operator -.

Definition at line 8961 of file TH1.cxx.

TH1S operator- ( const TH1S h1,
const TH1S h2 
)

Operator -.

Definition at line 9161 of file TH1.cxx.

TH1I operator- ( const TH1I h1,
const TH1I h2 
)

Operator -.

Definition at line 9361 of file TH1.cxx.

TH1F operator- ( const TH1F h1,
const TH1F h2 
)

Operator -.

Definition at line 9557 of file TH1.cxx.

TH1D operator- ( const TH1D h1,
const TH1D h2 
)

Operator -.

Definition at line 9754 of file TH1.cxx.

TH1C operator/ ( const TH1C h1,
const TH1C h2 
)

Operator /.

Definition at line 8985 of file TH1.cxx.

TH1S operator/ ( const TH1S h1,
const TH1S h2 
)

Operator /.

Definition at line 9185 of file TH1.cxx.

TH1I operator/ ( const TH1I h1,
const TH1I h2 
)

Operator /.

Definition at line 9385 of file TH1.cxx.

TH1F operator/ ( const TH1F h1,
const TH1F h2 
)

Operator /.

Definition at line 9581 of file TH1.cxx.

TH1D operator/ ( const TH1D h1,
const TH1D h2 
)

Operator /.

Definition at line 9778 of file TH1.cxx.

TH1* R__H ( Int_t  hid)

return pointer to histogram with name hid if id >=0 h_id if id <0

Definition at line 9792 of file TH1.cxx.

TH1* R__H ( const char *  hname)

return pointer to histogram with name hname

Definition at line 9804 of file TH1.cxx.

Variable Documentation

TF1* gF1 =0

Definition at line 529 of file TH1.cxx.