HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
MakeNiceHisto.h File Reference
#include "TStyle.h"
#include "TFile.h"
#include "TROOT.h"
#include "TMath.h"
#include "TH1.h"
#include "TH2.h"
#include "TVirtualPad.h"
#include "TCanvas.h"
#include "TF1.h"
#include "TObject.h"
#include "TGraphErrors.h"
#include "TError.h"
#include "TClonesArray.h"
#include <iostream>

Go to the source code of this file.

Functions

TH1F * HistLog (const char *name, const char *title, Int_t nBins, Double_t xMin, Double_t xMax)
 
TH2F * HistLogLog (const char *name, const char *title, Int_t nBinsX, Double_t xMinX, Double_t xMaxX, Int_t nBinsY, Double_t xMinY, Double_t xMaxY)
 
TH2F * HistLogLin (const char *name, const char *title, Int_t nBinsX, Double_t xMinX, Double_t xMaxX, Int_t nBinsY, Double_t xMinY, Double_t xMaxY)
 
TH2F * HistLinLog (const char *name, const char *title, Int_t nBinsX, Double_t xMinX, Double_t xMaxX, Int_t nBinsY, Double_t xMinY, Double_t xMaxY)
 
TH1F * HistInvert (TH1 *hist)
 
const Double_t * MakeLogBinning (Int_t nbins, Double_t xmin, Double_t xmax)
 
TH1F * MakeNiceGraph (TGraph *hist, TVirtualPad *c1=0, const char *opt="*")
 
TVirtualPad * MakeNiceHisto (TH1 *hist, TVirtualPad *c1=0, const char *opt="", Bool_t copy=1)
 
void MakeNice1dHisto (TH1 *hist, TVirtualPad *c1=0, const char *opt="", Bool_t copy=1)
 
void MakeNice2dHisto (TH2 *hist, TVirtualPad *c1=0, const char *opt="", Bool_t copy=1)
 
void MakeNiceHistoPad (TH1 *hist, TVirtualPad *c1=0, Double_t scaleX=1, Double_t scaleY=1, const char *opt="", Bool_t copy=1)
 
void MakeNiceHistoPad (TH1 *hist, TVirtualPad *c, Int_t i, Int_t j, Double_t scaleX=1, Double_t scaleY=1, const char *opt="", Bool_t copy=1)
 
void MakeNice1dHistoPad (TH1 *hist, TVirtualPad *c1=0, Double_t scaleX=1, Double_t scaleY=1, const char *opt="", Bool_t copy=1)
 
void MakeNice2dHistoPad (TH2 *hist, TVirtualPad *c1=0, Double_t scaleX=1, Double_t scaleY=1, const char *opt="", Bool_t copy=1)
 
TCanvas * FindCanvas (const char *canvasName, Int_t xwidth=700, Int_t ywidth=500)
 
Double_t IntegralDerivative (TF1 *func, Double_t xlow, Double_t xhigh, Double_t stepsize, Int_t parameter, Double_t epsilon)
 
Double_t FunctionDerivative (TF1 *func, Double_t x, Int_t parameter, Double_t epsilon)
 
void SetHistMaximum (TH1 *hist, Float_t factor)
 
TH1F * GetHistogramFromGraph (TGraphErrors *graph, const char *histName)
 
TGraph * GetGraphFromHistogram (TH1 *hist)
 
TClonesArray * CanvasPartition (TVirtualPad *C, const Int_t Nx=2, const Int_t Ny=1, Float_t lMargin=0.15, Float_t rMargin=0.03, Float_t bMargin=0.15, Float_t tMargin=0.03)
 
void SetHistStyle (TH1 *hist)
 
void ForceScale (TH1 *h, Double_t scale)
 
TH1F * ForceRatio (TH1F *h1, TH1F *h2)
 
void NormaliseBins (TH1 *h)
 
TGraphErrors * ScaleGraph (TGraph *g, Double_t scale)
 
TGraphErrors * DistGraph (TGraph *g1, TGraph *g2)
 
TGraphErrors * DivideGraph (TGraph *g1, TGraph *g2)
 
TGraphErrors * ExtrapolateGraph (TGraph *g1, TGraph *g2)
 
TGraphErrors * AddGraph (TGraph *g1, TGraph *g2, Double_t val=1)
 

Function Documentation

TGraphErrors* AddGraph ( TGraph *  g1,
TGraph *  g2,
Double_t  val = 1 
)

Definition at line 1011 of file MakeNiceHisto.cxx.

Here is the call graph for this function:

TClonesArray* CanvasPartition ( TVirtualPad *  C,
const Int_t  Nx = 2,
const Int_t  Ny = 1,
Float_t  lMargin = 0.15,
Float_t  rMargin = 0.03,
Float_t  bMargin = 0.15,
Float_t  tMargin = 0.03 
)

Definition at line 781 of file MakeNiceHisto.cxx.

Here is the caller graph for this function:

TGraphErrors* DistGraph ( TGraph *  g1,
TGraph *  g2 
)

Definition at line 1042 of file MakeNiceHisto.cxx.

TGraphErrors* DivideGraph ( TGraph *  g1,
TGraph *  g2 
)

Definition at line 960 of file MakeNiceHisto.cxx.

Here is the call graph for this function:

TGraphErrors* ExtrapolateGraph ( TGraph *  g1,
TGraph *  g2 
)

Definition at line 1075 of file MakeNiceHisto.cxx.

Here is the caller graph for this function:

TCanvas* FindCanvas ( const char *  canvasName,
Int_t  xwidth = 700,
Int_t  ywidth = 500 
)

Definition at line 551 of file MakeNiceHisto.cxx.

TH1F* ForceRatio ( TH1F *  h1,
TH1F *  h2 
)

Definition at line 904 of file MakeNiceHisto.cxx.

void ForceScale ( TH1 *  h,
Double_t  scale 
)

Definition at line 879 of file MakeNiceHisto.cxx.

Double_t FunctionDerivative ( TF1 *  func,
Double_t  x,
Int_t  parameter,
Double_t  epsilon 
)

Definition at line 692 of file MakeNiceHisto.cxx.

TGraph* GetGraphFromHistogram ( TH1 *  hist)

Definition at line 759 of file MakeNiceHisto.cxx.

TH1F* GetHistogramFromGraph ( TGraphErrors *  graph,
const char *  histName 
)

Definition at line 723 of file MakeNiceHisto.cxx.

TH1F* HistInvert ( TH1 *  hist)

Definition at line 75 of file MakeNiceHisto.cxx.

TH2F* HistLinLog ( const char *  name,
const char *  title,
Int_t  nBinsX,
Double_t  xMinX,
Double_t  xMaxX,
Int_t  nBinsY,
Double_t  xMinY,
Double_t  xMaxY 
)

Definition at line 147 of file MakeNiceHisto.cxx.

TH1F* HistLog ( const char *  name,
const char *  title,
Int_t  nBins,
Double_t  xMin,
Double_t  xMax 
)

Definition at line 99 of file MakeNiceHisto.cxx.

Here is the caller graph for this function:

TH2F* HistLogLin ( const char *  name,
const char *  title,
Int_t  nBinsX,
Double_t  xMinX,
Double_t  xMaxX,
Int_t  nBinsY,
Double_t  xMinY,
Double_t  xMaxY 
)

Definition at line 164 of file MakeNiceHisto.cxx.

TH2F* HistLogLog ( const char *  name,
const char *  title,
Int_t  nBinsX,
Double_t  xMinX,
Double_t  xMaxX,
Int_t  nBinsY,
Double_t  xMinY,
Double_t  xMaxY 
)

Definition at line 120 of file MakeNiceHisto.cxx.

Double_t IntegralDerivative ( TF1 *  func,
Double_t  xlow,
Double_t  xhigh,
Double_t  stepsize,
Int_t  parameter,
Double_t  epsilon 
)

Definition at line 655 of file MakeNiceHisto.cxx.

const Double_t* MakeLogBinning ( Int_t  nbins,
Double_t  xmin,
Double_t  xmax 
)

Definition at line 523 of file MakeNiceHisto.cxx.

Here is the caller graph for this function:

void MakeNice1dHisto ( TH1 *  hist,
TVirtualPad *  c1 = 0,
const char *  opt = "",
Bool_t  copy = 1 
)

Definition at line 277 of file MakeNiceHisto.cxx.

Here is the caller graph for this function:

void MakeNice1dHistoPad ( TH1 *  hist,
TVirtualPad *  c1 = 0,
Double_t  scaleX = 1,
Double_t  scaleY = 1,
const char *  opt = "",
Bool_t  copy = 1 
)

Definition at line 410 of file MakeNiceHisto.cxx.

Here is the caller graph for this function:

void MakeNice2dHisto ( TH2 *  hist,
TVirtualPad *  c1 = 0,
const char *  opt = "",
Bool_t  copy = 1 
)

Definition at line 304 of file MakeNiceHisto.cxx.

Here is the caller graph for this function:

void MakeNice2dHistoPad ( TH2 *  hist,
TVirtualPad *  c1 = 0,
Double_t  scaleX = 1,
Double_t  scaleY = 1,
const char *  opt = "",
Bool_t  copy = 1 
)

Definition at line 451 of file MakeNiceHisto.cxx.

Here is the caller graph for this function:

TH1F* MakeNiceGraph ( TGraph *  hist,
TVirtualPad *  c1 = 0,
const char *  opt = "*" 
)

Definition at line 198 of file MakeNiceHisto.cxx.

Here is the call graph for this function:

TVirtualPad* MakeNiceHisto ( TH1 *  hist,
TVirtualPad *  c1 = 0,
const char *  opt = "",
Bool_t  copy = 1 
)

Definition at line 221 of file MakeNiceHisto.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void MakeNiceHistoPad ( TH1 *  hist,
TVirtualPad *  c1 = 0,
Double_t  scaleX = 1,
Double_t  scaleY = 1,
const char *  opt = "",
Bool_t  copy = 1 
)

Definition at line 353 of file MakeNiceHisto.cxx.

Here is the call graph for this function:

void MakeNiceHistoPad ( TH1 *  hist,
TVirtualPad *  c,
Int_t  i,
Int_t  j,
Double_t  scaleX = 1,
Double_t  scaleY = 1,
const char *  opt = "",
Bool_t  copy = 1 
)

Definition at line 371 of file MakeNiceHisto.cxx.

Here is the call graph for this function:

void NormaliseBins ( TH1 *  h)

Definition at line 935 of file MakeNiceHisto.cxx.

Here is the caller graph for this function:

TGraphErrors* ScaleGraph ( TGraph *  g,
Double_t  scale 
)

Definition at line 991 of file MakeNiceHisto.cxx.

void SetHistMaximum ( TH1 *  hist,
Float_t  factor 
)

Definition at line 183 of file MakeNiceHisto.cxx.

void SetHistStyle ( TH1 *  hist)

Definition at line 240 of file MakeNiceHisto.cxx.

Here is the caller graph for this function: