ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/Tools/histtools.h
(Generate patch)

Comparing UserCode/FGolf/Tools/histtools.h (file contents):
Revision 1.1 by fgolf, Sun Aug 29 18:39:12 2010 UTC vs.
Revision 1.2 by fgolf, Fri Jul 8 09:16:48 2011 UTC

# Line 16 | Line 16
16  
17   namespace hist {
18    
19 <  void add(const char* outHistName, const char* patORpfx);
19 >    void add(const char* outHistName, const char* patORpfx);
20  
21 <  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);
21 >    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    
25 <  void color(const char* patORpfx, Color_t color);
25 >    void color(const char* patORpfx, Color_t color);
26    
27 <  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);
27 >    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    
30 <  TLegend* legend(THStack* stack, Option_t* option = "lpf", Bool_t addColor = kFALSE, Int_t token = -1,
31 <                  Float_t xmin = 0.75, Float_t ymin = 0.65, Float_t xmax = 0.99, Float_t ymax = 0.99,
32 <                  TH1F* hdata = NULL);
33 <  
34 <   void normalize(const char* patORpfx);
35 <   void scale(const char* patORpfx, Double_t scale);
36 <   void setrangey(TCanvas* canvas);
37 <
38 <   void stack(const char* stackHistName, const char* patORpfx, Bool_t addColor = kFALSE, Option_t* drawOption = "",
39 <              Int_t orderScheme = 0, const char* bsmName =0, bool doRefPats = false, std::string prefixToSkip = "");//, float yMinimum=1e-3);
40 <   void xaxis(const char* patORpfx, const char* title);
30 >    void normalize(const char* patORpfx);
31 >    void scale(const char* patORpfx, Double_t scale);
32 >    void setrangey(TCanvas* canvas);
33  
34 <   void yaxis(const char* patORpfx, const char* title);
34 >    void stack(const char* stackHistName, const char* patORpfx, Bool_t addColor = kFALSE, Option_t* drawOption = "");
35  
36 <   TH1F* eff(TH1F* h1, TH1F* h2, const char* name="eff");
45 <   TH1F* eff(const char* name1, const char* name2, const char* name="eff");
36 >    void xaxis(const char* patORpfx, const char* title);
37  
38 <   TH1F* eff_bg(TH1F* h1, TH1F* h2, TH1F* h3, TH1F* h4, const char* name="eff");
38 >    void yaxis(const char* patORpfx, const char* title);
39  
40 <   void deleteHistos();
40 >    TH1F* eff_bg(TH1F* h1, TH1F* h2, TH1F* h3, TH1F* h4, const char* name="eff");
41  
42 <   void histio();
52 <   void saveHist(const char* filename, const char* pat="*");
53 <   void loadHist(const char* filename, const char* pfx=0, const char* pat="*", Bool_t doAdd=kFALSE);
42 >    void deleteHistos();
43  
44 <   void combineHists(const std::vector<TString> v_prfxsToCombine, const TString outPrefix);
44 >    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   }
48  
58
49   #endif //MACROS_histtools_H

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines