AliPhysics  d37ed96 (d37ed96)
SaveCanvas.C File Reference
#include <TCanvas.h>
#include <TString.h>
#include <TLatex.h>
#include <TMath.h>
#include <TPad.h>
#include <TList.h>
#include <TH1.h>
#include <TH2.h>
#include <TGraph.h>
#include <TF1.h>
#include <TStyle.h>
#include <TFrame.h>
#include <TPaveStats.h>
Include dependency graph for SaveCanvas.C:

Go to the source code of this file.

Functions

TH1GetBaseHisto (TPad *pad=0)
 
TFrame * GetFrame (TPad *pad=0)
 
TPaveStats * SetStatPad (TH1 *hst, float x1, float x2, float y1, float y2, Int_t stl=-1, Int_t col=-1)
 
TPaveStats * GetStatPad (TH1 *hst)
 
void SetHStyle (TH1 *hst, int col=kRed, int mark=20, float mrsize=0.7)
 
void SetGStyle (TGraph *hst, int col=kRed, int mark=20, float mrsize=0.7)
 
TH1Cumulate (TH1 *histo, Bool_t doErr=kTRUE, const char *copyName=0)
 
TLatex * AddLabel (const char *txt, float x=0.1, float y=0.9, int color=kBlack, float size=0.04)
 
void wAv (double v1, double v2, double err1=0, double err2=0, double *wv=0, double *we=0)
 
void wSum (double v1, double v2, double err1=0, double err2=0, double *wv=0, double *we=0)
 
void SaveCanvas (TCanvas *canv, const char *path="canv", const Option_t *option="ecn")
 
Double_tdefLogAx (double xMn, double xMx, int nbin)
 
TH2manip2d (TH2 *histo, Bool_t cumul, const char *newname, Bool_t over, Bool_t under)
 

Function Documentation

TLatex * AddLabel ( const char *  txt,
float  x = 0.1,
float  y = 0.9,
int  color = kBlack,
float  size = 0.04 
)

Definition at line 61 of file SaveCanvas.C.

Referenced by PlotAlphaBeta(), and PlotDNDEta().

TH1 * Cumulate ( TH1 histo,
Bool_t  doErr = kTRUE,
const char *  copyName = 0 
)

Definition at line 178 of file SaveCanvas.C.

Double_t * defLogAx ( double  xMn,
double  xMx,
int  nbin 
)

Definition at line 234 of file SaveCanvas.C.

TH1 * GetBaseHisto ( TPad *  pad = 0)

Definition at line 71 of file SaveCanvas.C.

TFrame * GetFrame ( TPad *  pad = 0)

Definition at line 86 of file SaveCanvas.C.

Referenced by SaveCanvas().

TPaveStats * GetStatPad ( TH1 hst)

Definition at line 101 of file SaveCanvas.C.

Referenced by SetStatPad().

TH2* manip2d ( TH2 histo,
Bool_t  cumul,
const char *  newname,
Bool_t  over,
Bool_t  under 
)

Definition at line 248 of file SaveCanvas.C.

void SaveCanvas ( TCanvas *  canv,
const char *  path = "canv",
const Option_t option = "ecn" 
)

Definition at line 28 of file SaveCanvas.C.

Referenced by PlotAlphaBeta(), PlotDNDEta(), and PlotSpecies().

void SetGStyle ( TGraph hst,
int  col = kRed,
int  mark = 20,
float  mrsize = 0.7 
)

Definition at line 154 of file SaveCanvas.C.

void SetHStyle ( TH1 hst,
int  col = kRed,
int  mark = 20,
float  mrsize = 0.7 
)

Definition at line 130 of file SaveCanvas.C.

Referenced by PlotDNDEta(), and PlotSpecies().

TPaveStats * SetStatPad ( TH1 hst,
float  x1,
float  x2,
float  y1,
float  y2,
Int_t  stl = -1,
Int_t  col = -1 
)

Definition at line 115 of file SaveCanvas.C.

void wAv ( double  v1,
double  v2,
double  err1 = 0,
double  err2 = 0,
double *  wv = 0,
double *  we = 0 
)

Definition at line 203 of file SaveCanvas.C.

void wSum ( double  v1,
double  v2,
double  err1 = 0,
double  err2 = 0,
double *  wv = 0,
double *  we = 0 
)

Definition at line 222 of file SaveCanvas.C.