Logo ROOT   6.07/09
Reference Guide
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 "TH3.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 "TH1Merger.h"
Include dependency graph for TH1.cxx:

Functions

static Bool_t AlmostEqual (Double_t a, Double_t b, Double_t epsilon=0.00000001)
 Test if two double are almost equal. More...
 
static Bool_t AlmostInteger (Double_t a, Double_t epsilon=0.00000001)
 Test if a double is almost an integer. More...
 
void H1InitExpo ()
 Compute Initial values of parameters for an exponential. More...
 
void H1InitGaus ()
 Compute Initial values of parameters for a gaussian. 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...
 
static bool IsEquidistantBinning (const TAxis &axis)
 Test if the binning is equidistant. More...
 
TH1C operator* (Double_t c1, const TH1C &h1)
 Operator *. More...
 
TH1C operator* (const TH1C &h1, const TH1C &h2)
 Operator *. More...
 
TH1S operator* (Double_t c1, const TH1S &h1)
 Operator *. More...
 
TH1S operator* (const TH1S &h1, const TH1S &h2)
 Operator *. More...
 
TH1I operator* (Double_t c1, const TH1I &h1)
 Operator *. More...
 
TH1I operator* (const TH1I &h1, const TH1I &h2)
 Operator *. More...
 
TH1F operator* (Double_t c1, const TH1F &h1)
 Operator *. More...
 
TH1F operator* (const TH1F &h1, const TH1F &h2)
 Operator *. More...
 
TH1D operator* (Double_t c1, const TH1D &h1)
 Operator *. More...
 
TH1D operator* (const TH1D &h1, const TH1D &h2)
 Operator *. More...
 
TH1C operator+ (const TH1C &h1, const TH1C &h2)
 Operator +. More...
 
TH1S operator+ (const TH1S &h1, const TH1S &h2)
 Operator +. More...
 
TH1I operator+ (const TH1I &h1, const TH1I &h2)
 Operator +. More...
 
TH1F operator+ (const TH1F &h1, const TH1F &h2)
 Operator +. More...
 
TH1D operator+ (const TH1D &h1, const TH1D &h2)
 Operator +. More...
 
TH1C operator- (const TH1C &h1, const TH1C &h2)
 Operator -. More...
 
TH1S operator- (const TH1S &h1, const TH1S &h2)
 Operator -. More...
 
TH1I operator- (const TH1I &h1, const TH1I &h2)
 Operator -. More...
 
TH1F operator- (const TH1F &h1, const TH1F &h2)
 Operator -. More...
 
TH1D operator- (const TH1D &h1, const TH1D &h2)
 Operator -. More...
 
TH1C operator/ (const TH1C &h1, const TH1C &h2)
 Operator /. More...
 
TH1S operator/ (const TH1S &h1, const TH1S &h2)
 Operator /. More...
 
TH1I operator/ (const TH1I &h1, const TH1I &h2)
 Operator /. More...
 
TH1F operator/ (const TH1F &h1, const TH1F &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

Test if two double are almost equal.

Definition at line 5156 of file TH1.cxx.

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

Test if a double is almost an integer.

Definition at line 5164 of file TH1.cxx.

void H1InitExpo ( )

Compute Initial values of parameters for an exponential.

Definition at line 4298 of file TH1.cxx.

void H1InitGaus ( )

Compute Initial values of parameters for a gaussian.

Definition at line 4242 of file TH1.cxx.

void H1InitPolynom ( )

Compute Initial values of parameters for a polynom.

Definition at line 4318 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 4348 of file TH1.cxx.

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 4407 of file TH1.cxx.

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 4453 of file TH1.cxx.

static bool IsEquidistantBinning ( const TAxis axis)
inlinestatic

Test if the binning is equidistant.

Definition at line 5173 of file TH1.cxx.

TH1C operator* ( Double_t  c1,
const TH1C h1 
)

Operator *.

Definition at line 8651 of file TH1.cxx.

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

Operator *.

Definition at line 8684 of file TH1.cxx.

TH1S operator* ( Double_t  c1,
const TH1S h1 
)

Operator *.

Definition at line 8832 of file TH1.cxx.

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

Operator *.

Definition at line 8865 of file TH1.cxx.

TH1I operator* ( Double_t  c1,
const TH1I h1 
)

Operator *.

Definition at line 9014 of file TH1.cxx.

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

Operator *.

Definition at line 9047 of file TH1.cxx.

TH1F operator* ( Double_t  c1,
const TH1F h1 
)

Operator *.

Definition at line 9193 of file TH1.cxx.

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

Operator *.

Definition at line 9226 of file TH1.cxx.

TH1D operator* ( Double_t  c1,
const TH1D h1 
)

Operator *.

Definition at line 9372 of file TH1.cxx.

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

Operator *.

Definition at line 9405 of file TH1.cxx.

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

Operator +.

Definition at line 8662 of file TH1.cxx.

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

Operator +.

Definition at line 8843 of file TH1.cxx.

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

Operator +.

Definition at line 9025 of file TH1.cxx.

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

Operator +.

Definition at line 9204 of file TH1.cxx.

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

Operator +.

Definition at line 9383 of file TH1.cxx.

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

Operator -.

Definition at line 8673 of file TH1.cxx.

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

Operator -.

Definition at line 8854 of file TH1.cxx.

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

Operator -.

Definition at line 9036 of file TH1.cxx.

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

Operator -.

Definition at line 9215 of file TH1.cxx.

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

Operator -.

Definition at line 9394 of file TH1.cxx.

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

Operator /.

Definition at line 8695 of file TH1.cxx.

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

Operator /.

Definition at line 8876 of file TH1.cxx.

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

Operator /.

Definition at line 9058 of file TH1.cxx.

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

Operator /.

Definition at line 9237 of file TH1.cxx.

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

Operator /.

Definition at line 9416 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 9429 of file TH1.cxx.

TH1* R__H ( const char *  hname)

return pointer to histogram with name hname

Definition at line 9440 of file TH1.cxx.

Variable Documentation

TF1* gF1 =0

Definition at line 522 of file TH1.cxx.