TH1.cxx File Reference

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#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 "Math/MinimizerOptions.h"

Go to the source code of this file.

Classes

class  DifferentNumberOfBins
class  DifferentAxisLimits
class  DifferentBinLimits

Functions

void H1InitGaus ()
void H1InitExpo ()
void H1InitPolynom ()
void H1LeastSquareFit (Int_t n, Int_t m, Double_t *a)
void H1LeastSquareLinearFit (Int_t ndata, Double_t &a0, Double_t &a1, Int_t &ifail)
void H1LeastSquareSeqnd (Int_t n, Double_t *a, Int_t idim, Int_t &ifail, Int_t k, Double_t *b)
 ClassImp (TH1) TH1
bool CheckBinLimits (const TArrayD *h1Array, const TArrayD *h2Array)
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)
 ClassImp (TH1C) TH1C
TH1C operator * (Double_t c1, const TH1C &h1)
TH1C operator+ (const TH1C &h1, const TH1C &h2)
TH1C operator- (const TH1C &h1, const TH1C &h2)
TH1C operator * (const TH1C &h1, const TH1C &h2)
TH1C operator/ (const TH1C &h1, const TH1C &h2)
 ClassImp (TH1S) TH1S
TH1S operator * (Double_t c1, const TH1S &h1)
TH1S operator+ (const TH1S &h1, const TH1S &h2)
TH1S operator- (const TH1S &h1, const TH1S &h2)
TH1S operator * (const TH1S &h1, const TH1S &h2)
TH1S operator/ (const TH1S &h1, const TH1S &h2)
 ClassImp (TH1I) TH1I
TH1I operator * (Double_t c1, const TH1I &h1)
TH1I operator+ (const TH1I &h1, const TH1I &h2)
TH1I operator- (const TH1I &h1, const TH1I &h2)
TH1I operator * (const TH1I &h1, const TH1I &h2)
TH1I operator/ (const TH1I &h1, const TH1I &h2)
 ClassImp (TH1F) TH1F
TH1F operator * (Double_t c1, const TH1F &h1)
TH1F operator+ (const TH1F &h1, const TH1F &h2)
TH1F operator- (const TH1F &h1, const TH1F &h2)
TH1F operator * (const TH1F &h1, const TH1F &h2)
TH1F operator/ (const TH1F &h1, const TH1F &h2)
 ClassImp (TH1D) TH1D
TH1D operator * (Double_t c1, const TH1D &h1)
TH1D operator+ (const TH1D &h1, const TH1D &h2)
TH1D operator- (const TH1D &h1, const TH1D &h2)
TH1D operator * (const TH1D &h1, const TH1D &h2)
TH1D operator/ (const TH1D &h1, const TH1D &h2)
TH1R__H (Int_t hid)
TH1R__H (const char *hname)

Variables

TF1gF1 = 0


Function Documentation

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

Definition at line 4706 of file TH1.cxx.

References TMath::Abs(), and RootCsg::epsilon.

Referenced by AlmostInteger().

static Bool_t AlmostInteger ( Double_t  a,
Double_t  epsilon = 0.00000001 
) [static]

Definition at line 4712 of file TH1.cxx.

References AlmostEqual(), RootCsg::epsilon, and TMath::Floor().

Referenced by TH1::RecomputeAxisLimits().

bool CheckBinLimits ( const TArrayD h1Array,
const TArrayD h2Array 
)

Definition at line 1199 of file TH1.cxx.

References TMath::AreEqualAbs(), E, TArray::fN, TArrayD::GetAt(), and i.

Referenced by TH1::CheckConsistency().

ClassImp ( TH1D   ) 

Definition at line 8914 of file TH1.cxx.

ClassImp ( TH1F   ) 

Definition at line 8675 of file TH1.cxx.

ClassImp ( TH1I   ) 

Definition at line 8433 of file TH1.cxx.

ClassImp ( TH1S   ) 

Definition at line 8191 of file TH1.cxx.

ClassImp ( TH1C   ) 

Definition at line 7947 of file TH1.cxx.

ClassImp ( TH1   ) 

Definition at line 541 of file TH1.cxx.

References fFunctions.

void H1InitExpo (  ) 

Definition at line 3812 of file TH1.cxx.

References TVirtualFitter::GetFitter(), TVirtualFitter::GetUserFunc(), TVirtualFitter::GetXfirst(), TVirtualFitter::GetXlast(), H1LeastSquareLinearFit(), and TFormula::SetParameter().

void H1InitGaus (  ) 

Definition at line 3755 of file TH1.cxx.

References TMath::Abs(), TH1::GetBinCenter(), TH1::GetBinContent(), TH1::GetBinWidth(), TVirtualFitter::GetFitter(), TVirtualFitter::GetObjectFit(), TVirtualFitter::GetUserFunc(), TH1::GetXaxis(), TVirtualFitter::GetXfirst(), TVirtualFitter::GetXlast(), TAxis::GetXmax(), TAxis::GetXmin(), TFormula::SetParameter(), TF1::SetParLimits(), TMath::Sqrt(), val, x, xmax, and xmin.

void H1InitPolynom (  ) 

Definition at line 3833 of file TH1.cxx.

References TVirtualFitter::GetFitter(), TFormula::GetNpar(), TVirtualFitter::GetObjectFit(), TH1::GetSumOfWeights(), TVirtualFitter::GetUserFunc(), TVirtualFitter::GetXfirst(), TVirtualFitter::GetXlast(), H1LeastSquareFit(), i, and TFormula::SetParameter().

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

Definition at line 3857 of file TH1.cxx.

References b, TH1::GetBinCenter(), TH1::GetBinContent(), TVirtualFitter::GetFitter(), TVirtualFitter::GetObjectFit(), TVirtualFitter::GetXfirst(), TVirtualFitter::GetXlast(), H1LeastSquareLinearFit(), H1LeastSquareSeqnd(), i, k, and l.

Referenced by H1InitPolynom().

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

Definition at line 3922 of file TH1.cxx.

References TMath::Abs(), TH1::GetBinCenter(), TH1::GetBinContent(), TVirtualFitter::GetFitter(), TVirtualFitter::GetObjectFit(), TVirtualFitter::GetXfirst(), TVirtualFitter::GetXlast(), i, TMath::Log(), and n.

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 
)

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

Definition at line 9124 of file TH1.cxx.

TH1D operator * ( Double_t  c1,
const TH1D h1 
)

Definition at line 9091 of file TH1.cxx.

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

Definition at line 8886 of file TH1.cxx.

TH1F operator * ( Double_t  c1,
const TH1F h1 
)

Definition at line 8853 of file TH1.cxx.

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

Definition at line 8648 of file TH1.cxx.

TH1I operator * ( Double_t  c1,
const TH1I h1 
)

Definition at line 8615 of file TH1.cxx.

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

Definition at line 8406 of file TH1.cxx.

TH1S operator * ( Double_t  c1,
const TH1S h1 
)

Definition at line 8373 of file TH1.cxx.

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

Definition at line 8163 of file TH1.cxx.

TH1C operator * ( Double_t  c1,
const TH1C h1 
)

Definition at line 8130 of file TH1.cxx.

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

Definition at line 9102 of file TH1.cxx.

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

Definition at line 8864 of file TH1.cxx.

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

Definition at line 8626 of file TH1.cxx.

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

Definition at line 8384 of file TH1.cxx.

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

Definition at line 8141 of file TH1.cxx.

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

Definition at line 9113 of file TH1.cxx.

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

Definition at line 8875 of file TH1.cxx.

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

Definition at line 8637 of file TH1.cxx.

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

Definition at line 8395 of file TH1.cxx.

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

Definition at line 8152 of file TH1.cxx.

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

Definition at line 9135 of file TH1.cxx.

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

Definition at line 8897 of file TH1.cxx.

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

Definition at line 8659 of file TH1.cxx.

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

Definition at line 8417 of file TH1.cxx.

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

Definition at line 8174 of file TH1.cxx.

TH1* R__H ( const char *  hname  ) 

Definition at line 9159 of file TH1.cxx.

References gDirectory, and TDirectory::Get().

TH1* R__H ( Int_t  hid  ) 

Definition at line 9146 of file TH1.cxx.


Variable Documentation

TF1* gF1 = 0

Definition at line 522 of file TH1.cxx.


Generated on Tue Jul 5 16:01:10 2011 for ROOT_528-00b_version by  doxygen 1.5.1