1 /**************************************************************/
3 /* Set of methods to manipulate with canvas */
4 /* its elements etc. */
6 /* ruben.shahoyan@cern.ch */
8 /**************************************************************/
10 #if !defined(__CINT__) || defined(__MAKECINT__)
22 #include <TPaveStats.h>
24 extern TH1* GetBaseHisto(TPad* pad=0);
25 extern TFrame* GetFrame(TPad* pad=0);
26 extern void SetStatPad(TH1* hst,float x1,float x2,float y1,float y2);
27 extern TPaveStats* GetStatPad(TH1* hst);
28 extern void SetHStyle(TH1* hst,int col=kRed,int mark=20,float mrsize=0.7);
29 extern void SetGStyle(TGraph* hst,int col=kRed,int mark=20,float mrsize=0.7);
30 extern TH1* Cumulate(TH1* histo, Bool_t doErr=kTRUE, const char* copyName=0);
31 extern TLatex* AddLabel(const char*txt,float x=0.1,float y=0.9,int color=kBlack,float size=0.04);
32 extern void SaveCanvas(TCanvas* canv,const char* path="canv",const Option_t *option="ecg");
33 extern void wSum(double v1,double v2, double err1=0,double err2=0, double* wv=0,double *we=0);
34 extern void wAv(double v1,double v2, double err1=0,double err2=0, double* wv=0,double *we=0);