ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/Tools/histtools.h
Revision: 1.2
Committed: Fri Jul 8 09:16:48 2011 UTC (13 years, 9 months ago) by fgolf
Content type: text/plain
Branch: MAIN
CVS Tags: ss_summer2011approvalV2, ss_summer2011approval
Changes since 1.1: +18 -28 lines
Log Message:
updates

File Contents

# User Rev Content
1 fgolf 1.1 #ifndef MACROS_histtools_H
2     #define MACROS_histtools_H
3     #include "TList.h"
4     #include "TObjArray.h"
5     #include "TH1.h"
6     #include "TH2.h"
7     #include "TLegend.h"
8     #include "THStack.h"
9     #include "TCanvas.h"
10     #include "TFile.h"
11     #include "TRegexp.h"
12     #include "TKey.h"
13     #include "TString.h"
14     #include <vector>
15     #include <iostream>
16    
17     namespace hist {
18    
19 fgolf 1.2 void add(const char* outHistName, const char* patORpfx);
20 fgolf 1.1
21 fgolf 1.2 void add(const char* outHistName, const char* patORpfx0, const char* patORpfx1, const char* patORpfx2 = 0,
22     const char* patORpfx3 = 0, const char* patORpfx4 = 0, const char* patORpfx5 = 0, const char* patORpfx6 = 0,
23     const char* patORpfx7 = 0, const char* patORpfx8 = 0, const char* patORpfx9 = 0);
24 fgolf 1.1
25 fgolf 1.2 void color(const char* patORpfx, Color_t color);
26 fgolf 1.1
27 fgolf 1.2 TLegend* legend(TCanvas* canvas, Option_t* option = "lpf", Bool_t addColor = kFALSE, Int_t token = -1,
28     Float_t xmin = 0.75, Float_t ymin = 0.75, Float_t xmax = 0.99, Float_t ymax = 0.99);
29 fgolf 1.1
30 fgolf 1.2 void normalize(const char* patORpfx);
31     void scale(const char* patORpfx, Double_t scale);
32     void setrangey(TCanvas* canvas);
33 fgolf 1.1
34 fgolf 1.2 void stack(const char* stackHistName, const char* patORpfx, Bool_t addColor = kFALSE, Option_t* drawOption = "");
35 fgolf 1.1
36 fgolf 1.2 void xaxis(const char* patORpfx, const char* title);
37 fgolf 1.1
38 fgolf 1.2 void yaxis(const char* patORpfx, const char* title);
39 fgolf 1.1
40 fgolf 1.2 TH1F* eff_bg(TH1F* h1, TH1F* h2, TH1F* h3, TH1F* h4, const char* name="eff");
41 fgolf 1.1
42 fgolf 1.2 void deleteHistos();
43 fgolf 1.1
44 fgolf 1.2 void histio();
45     void saveHist(const char* filename, const char* pat = "*");
46     void loadHist(const char* filename, const char* pfx = 0, const char* pat = "*", Bool_t verbose = kFALSE, Bool_t doAdd = kFALSE);
47 fgolf 1.1 }
48    
49     #endif //MACROS_histtools_H