AliPhysics  608b256 (608b256)
SaveCanvas.h
Go to the documentation of this file.
1 #if !defined(__CINT__) || defined(__MAKECINT__)
2 #include <TCanvas.h>
3 #include <TString.h>
4 #include <TLatex.h>
5 #include <TMath.h>
6 #include <TPad.h>
7 #include <TList.h>
8 #include <TH1.h>
9 #include <TGraph.h>
10 #include <TF1.h>
11 #include <TStyle.h>
12 #include <TFrame.h>
13 #include <TPaveStats.h>
14 
15 extern TH1* GetBaseHisto(TPad* pad=0);
16 extern TFrame* GetFrame(TPad* pad=0);
17 extern TPaveStats* SetStatPad(TH1* hst,float x1,float x2,float y1,float y2,Int_t stl=-1,Int_t col=-1);
18 extern TPaveStats* GetStatPad(TH1* hst);
19 extern void SetHStyle(TH1* hst,int col=kRed,int mark=20,float mrsize=0.7);
20 extern void SetGStyle(TGraph* hst,int col=kRed,int mark=20,float mrsize=0.7);
21 extern TH1* Cumulate(TH1* histo, Bool_t doErr=kTRUE, const char* copyName=0);
22 extern TLatex* AddLabel(const char*txt,float x=0.1,float y=0.9,int color=kBlack,float size=0.04);
23 extern void SaveCanvas(TCanvas* canv,const char* path="canv",const Option_t *option="ecg");
24 extern void wSum(double v1,double v2, double err1=0,double err2=0, double* wv=0,double *we=0);
25 extern void wAv(double v1,double v2, double err1=0,double err2=0, double* wv=0,double *we=0);
26 extern Double_t* defLogAx(double xMn,double xMx, int nbin);
27 extern TH2* manip2d(TH2* histo, Bool_t cumul=kFALSE, const char* newname=0, Bool_t over=kTRUE,Bool_t under=kTRUE);
28 extern Double_t* defLogAx(double xMn,double xMx, int nbin);
29 #endif
Int_t color[]
print message on plot with ok/not ok
void SaveCanvas(TCanvas *canv, const char *path="canv", const Option_t *option="ecg")
Definition: SaveCanvas.C:28
double Double_t
Definition: External.C:58
TPaveStats * GetStatPad(TH1 *hst)
Definition: SaveCanvas.C:101
void SetGStyle(TGraph *hst, int col=kRed, int mark=20, float mrsize=0.7)
Definition: SaveCanvas.C:154
void wAv(double v1, double v2, double err1=0, double err2=0, double *wv=0, double *we=0)
Definition: SaveCanvas.C:203
TH2 * manip2d(TH2 *histo, Bool_t cumul=kFALSE, const char *newname=0, Bool_t over=kTRUE, Bool_t under=kTRUE)
Definition: SaveCanvas.C:248
int Int_t
Definition: External.C:63
Double_t * defLogAx(double xMn, double xMx, int nbin)
Definition: SaveCanvas.C:234
void SetHStyle(TH1 *hst, int col=kRed, int mark=20, float mrsize=0.7)
Definition: SaveCanvas.C:130
void wSum(double v1, double v2, double err1=0, double err2=0, double *wv=0, double *we=0)
Definition: SaveCanvas.C:222
TPaveStats * SetStatPad(TH1 *hst, float x1, float x2, float y1, float y2, Int_t stl=-1, Int_t col=-1)
Definition: SaveCanvas.C:115
TLatex * AddLabel(const char *txt, float x=0.1, float y=0.9, int color=kBlack, float size=0.04)
Definition: SaveCanvas.C:61
TH1 * GetBaseHisto(TPad *pad=0)
Definition: SaveCanvas.C:71
TFrame * GetFrame(TPad *pad=0)
Definition: SaveCanvas.C:86
Definition: External.C:220
TH1 * Cumulate(TH1 *histo, Bool_t doErr=kTRUE, const char *copyName=0)
Definition: SaveCanvas.C:178
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
Definition: External.C:196