Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TH1.cxx File Reference
#include <array>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <fstream>
#include <limits>
#include <iomanip>
#include "TROOT.h"
#include "TBuffer.h"
#include "TEnv.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 "TError.h"
#include "TVirtualHistPainter.h"
#include "TVirtualFFT.h"
#include "TVirtualPaveStats.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:

Namespaces

namespace  ROOT
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 

Functions

static Bool_t AlmostEqual (Double_t a, Double_t b, Double_t epsilon=0.00000001)
 Test if two double are almost equal.
 
static Bool_t AlmostInteger (Double_t a, Double_t epsilon=0.00000001)
 Test if a double is almost an integer.
 
void H1InitExpo ()
 Compute Initial values of parameters for an exponential.
 
void H1InitGaus ()
 Compute Initial values of parameters for a gaussian.
 
void H1InitPolynom ()
 Compute Initial values of parameters for a polynom.
 
void H1LeastSquareFit (Int_t n, Int_t m, Double_t *a)
 Least squares lpolynomial fitting without weights.
 
void H1LeastSquareLinearFit (Int_t ndata, Double_t &a0, Double_t &a1, Int_t &ifail)
 Least square linear fit without weights.
 
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.
 
static bool IsEquidistantBinning (const TAxis &axis)
 Test if the binning is equidistant.
 
TH1C operator* (const TH1C &h1, const TH1C &h2)
 Operator *.
 
TH1D operator* (const TH1D &h1, const TH1D &h2)
 Operator *.
 
TH1F operator* (const TH1F &h1, const TH1F &h2)
 Operator *.
 
TH1I operator* (const TH1I &h1, const TH1I &h2)
 Operator *.
 
TH1L operator* (const TH1L &h1, const TH1L &h2)
 Operator *.
 
TH1S operator* (const TH1S &h1, const TH1S &h2)
 Operator *.
 
TH1C operator* (Double_t c1, const TH1C &h1)
 Operator *.
 
TH1D operator* (Double_t c1, const TH1D &h1)
 Operator *.
 
TH1F operator* (Double_t c1, const TH1F &h1)
 Operator *.
 
TH1I operator* (Double_t c1, const TH1I &h1)
 Operator *.
 
TH1L operator* (Double_t c1, const TH1L &h1)
 Operator *.
 
TH1S operator* (Double_t c1, const TH1S &h1)
 Operator *.
 
TH1C operator+ (const TH1C &h1, const TH1C &h2)
 Operator +.
 
TH1D operator+ (const TH1D &h1, const TH1D &h2)
 Operator +.
 
TH1F operator+ (const TH1F &h1, const TH1F &h2)
 Operator +.
 
TH1I operator+ (const TH1I &h1, const TH1I &h2)
 Operator +.
 
TH1L operator+ (const TH1L &h1, const TH1L &h2)
 Operator +.
 
TH1S operator+ (const TH1S &h1, const TH1S &h2)
 Operator +.
 
TH1C operator- (const TH1C &h1, const TH1C &h2)
 Operator -.
 
TH1D operator- (const TH1D &h1, const TH1D &h2)
 Operator -.
 
TH1F operator- (const TH1F &h1, const TH1F &h2)
 Operator -.
 
TH1I operator- (const TH1I &h1, const TH1I &h2)
 Operator -.
 
TH1L operator- (const TH1L &h1, const TH1L &h2)
 Operator -.
 
TH1S operator- (const TH1S &h1, const TH1S &h2)
 Operator -.
 
TH1C operator/ (const TH1C &h1, const TH1C &h2)
 Operator /.
 
TH1D operator/ (const TH1D &h1, const TH1D &h2)
 Operator /.
 
TH1F operator/ (const TH1F &h1, const TH1F &h2)
 Operator /.
 
TH1I operator/ (const TH1I &h1, const TH1I &h2)
 Operator /.
 
TH1L operator/ (const TH1L &h1, const TH1L &h2)
 Operator /.
 
TH1S operator/ (const TH1S &h1, const TH1S &h2)
 Operator /.
 
TH1R__H (const char *hname)
 return pointer to histogram with name hname
 
TH1R__H (Int_t hid)
 return pointer to histogram with name hid if id >=0 h_id if id <0
 

Variables

TF1gF1 =nullptr
 

Function Documentation

◆ AlmostEqual()

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

◆ AlmostInteger()

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

Test if a double is almost an integer.

Definition at line 5898 of file TH1.cxx.

◆ H1InitExpo()

void H1InitExpo ( )

Compute Initial values of parameters for an exponential.

Definition at line 4746 of file TH1.cxx.

◆ H1InitGaus()

void H1InitGaus ( )

Compute Initial values of parameters for a gaussian.

Definition at line 4690 of file TH1.cxx.

◆ H1InitPolynom()

void H1InitPolynom ( )

Compute Initial values of parameters for a polynom.

Definition at line 4766 of file TH1.cxx.

◆ H1LeastSquareFit()

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

◆ H1LeastSquareLinearFit()

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

◆ H1LeastSquareSeqnd()

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

◆ IsEquidistantBinning()

static bool IsEquidistantBinning ( const TAxis axis)
inlinestatic

Test if the binning is equidistant.

Definition at line 5907 of file TH1.cxx.

◆ operator*() [1/12]

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

Operator *.

Definition at line 9663 of file TH1.cxx.

◆ operator*() [2/12]

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

Operator *.

Definition at line 10588 of file TH1.cxx.

◆ operator*() [3/12]

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

Operator *.

Definition at line 10406 of file TH1.cxx.

◆ operator*() [4/12]

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

Operator *.

Definition at line 10037 of file TH1.cxx.

◆ operator*() [5/12]

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

Operator *.

Definition at line 10225 of file TH1.cxx.

◆ operator*() [6/12]

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

Operator *.

Definition at line 9849 of file TH1.cxx.

◆ operator*() [7/12]

TH1C operator* ( Double_t  c1,
const TH1C h1 
)

Operator *.

Definition at line 9630 of file TH1.cxx.

◆ operator*() [8/12]

TH1D operator* ( Double_t  c1,
const TH1D h1 
)

Operator *.

Definition at line 10555 of file TH1.cxx.

◆ operator*() [9/12]

TH1F operator* ( Double_t  c1,
const TH1F h1 
)

Operator *.

Definition at line 10373 of file TH1.cxx.

◆ operator*() [10/12]

TH1I operator* ( Double_t  c1,
const TH1I h1 
)

Operator *.

Definition at line 10004 of file TH1.cxx.

◆ operator*() [11/12]

TH1L operator* ( Double_t  c1,
const TH1L h1 
)

Operator *.

Definition at line 10192 of file TH1.cxx.

◆ operator*() [12/12]

TH1S operator* ( Double_t  c1,
const TH1S h1 
)

Operator *.

Definition at line 9816 of file TH1.cxx.

◆ operator+() [1/6]

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

Operator +.

Definition at line 9641 of file TH1.cxx.

◆ operator+() [2/6]

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

Operator +.

Definition at line 10566 of file TH1.cxx.

◆ operator+() [3/6]

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

Operator +.

Definition at line 10384 of file TH1.cxx.

◆ operator+() [4/6]

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

Operator +.

Definition at line 10015 of file TH1.cxx.

◆ operator+() [5/6]

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

Operator +.

Definition at line 10203 of file TH1.cxx.

◆ operator+() [6/6]

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

Operator +.

Definition at line 9827 of file TH1.cxx.

◆ operator-() [1/6]

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

Operator -.

Definition at line 9652 of file TH1.cxx.

◆ operator-() [2/6]

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

Operator -.

Definition at line 10577 of file TH1.cxx.

◆ operator-() [3/6]

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

Operator -.

Definition at line 10395 of file TH1.cxx.

◆ operator-() [4/6]

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

Operator -.

Definition at line 10026 of file TH1.cxx.

◆ operator-() [5/6]

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

Operator -.

Definition at line 10214 of file TH1.cxx.

◆ operator-() [6/6]

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

Operator -.

Definition at line 9838 of file TH1.cxx.

◆ operator/() [1/6]

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

Operator /.

Definition at line 9674 of file TH1.cxx.

◆ operator/() [2/6]

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

Operator /.

Definition at line 10599 of file TH1.cxx.

◆ operator/() [3/6]

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

Operator /.

Definition at line 10417 of file TH1.cxx.

◆ operator/() [4/6]

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

Operator /.

Definition at line 10048 of file TH1.cxx.

◆ operator/() [5/6]

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

Operator /.

Definition at line 10236 of file TH1.cxx.

◆ operator/() [6/6]

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

Operator /.

Definition at line 9860 of file TH1.cxx.

◆ R__H() [1/2]

TH1 * R__H ( const char *  hname)

return pointer to histogram with name hname

Definition at line 10623 of file TH1.cxx.

◆ R__H() [2/2]

TH1 * R__H ( Int_t  hid)

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

Definition at line 10612 of file TH1.cxx.

Variable Documentation

◆ gF1

TF1* gF1 =nullptr

Definition at line 583 of file TH1.cxx.