]>
Commit | Line | Data |
---|---|---|
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 | ||
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); | |
35 | ||
36 | #endif |