]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG0/multVScentPbPb/SaveCanvas.h
Coding conventions (Ruben)
[u/mrichter/AliRoot.git] / PWG0 / multVScentPbPb / SaveCanvas.h
CommitLineData
c79a7c1c 1/**************************************************************/
2/* */
3/* Set of methods to manipulate with canvas */
4/* its elements etc. */
5/* Author: */
6/* ruben.shahoyan@cern.ch */
7/* */
8/**************************************************************/
9
7c11f313 10#if !defined(__CINT__) || defined(__MAKECINT__)
11#include <TCanvas.h>
12#include <TString.h>
13#include <TLatex.h>
14#include <TMath.h>
15#include <TPad.h>
16#include <TList.h>
17#include <TH1.h>
18#include <TGraph.h>
19#include <TF1.h>
20#include <TStyle.h>
21#include <TFrame.h>
22#include <TPaveStats.h>
23
24extern TH1* GetBaseHisto(TPad* pad=0);
25extern TFrame* GetFrame(TPad* pad=0);
26extern void SetStatPad(TH1* hst,float x1,float x2,float y1,float y2);
27extern TPaveStats* GetStatPad(TH1* hst);
28extern void SetHStyle(TH1* hst,int col=kRed,int mark=20,float mrsize=0.7);
29extern void SetGStyle(TGraph* hst,int col=kRed,int mark=20,float mrsize=0.7);
30extern TH1* Cumulate(TH1* histo, Bool_t doErr=kTRUE, const char* copyName=0);
31extern TLatex* AddLabel(const char*txt,float x=0.1,float y=0.9,int color=kBlack,float size=0.04);
32extern void SaveCanvas(TCanvas* canv,const char* path="canv",const Option_t *option="ecg");
33extern void wSum(double v1,double v2, double err1=0,double err2=0, double* wv=0,double *we=0);
34extern void wAv(double v1,double v2, double err1=0,double err2=0, double* wv=0,double *we=0);
35
36#endif