ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/SFramePlotter/SteerPlotter.h
Revision: 1.3
Committed: Fri Nov 9 16:22:58 2012 UTC (12 years, 5 months ago) by rkogler
Content type: text/plain
Branch: MAIN
Changes since 1.2: +5 -1 lines
Log Message:
complete rewrite of the plotter, three new classes and a much simplified structure. some features are still missing, like plotting of 2D histograms - they should come soon

File Contents

# User Rev Content
1 rkogler 1.1 #ifndef STEERPLOTTER__
2     #define STEERPLOTTER__
3    
4     #include <TObjArray.h>
5     #include <TArrayI.h>
6     #include <TArrayF.h>
7     #include <TString.h>
8     #include "BaseSteer.h"
9    
10    
11     class SteerPlotter: public BaseSteer {
12    
13     public:
14     SteerPlotter();
15     virtual ~SteerPlotter();
16    
17 rkogler 1.3 virtual void Print(Option_t* option="") const;
18 rkogler 1.1
19     void SetShapeNorm(Bool_t flag);
20     Bool_t GetShapeNorm();
21    
22     void SetLumiNorm(Bool_t flag);
23     Bool_t GetLumiNorm();
24    
25     void SetRatioPlot(Bool_t flag);
26     Bool_t GetRatioPlot();
27    
28     void SetPortrait(Bool_t flag);
29     Bool_t GetPortrait();
30    
31     void SetFitPtBalanceHists(Bool_t flag);
32     Bool_t GetFitPtBalanceHists();
33    
34     void SetJetShapesPerSlice(Bool_t flag);
35     Bool_t GetJetShapesPerSlice();
36    
37     void SetDrawEntries(Bool_t flag);
38     Bool_t GetDrawEntries();
39    
40     void SetSampleNames(const char* in);
41     TObjArray* GetSampleNames();
42    
43     void SetInputFiles(const char* in);
44     TObjArray* GetInputFiles();
45    
46    
47     void SetOutputPsFile(const char* in);
48     const char* GetOutputPsFile();
49    
50     void SetCycleName(const char* in);
51     const char* GetCycleName();
52    
53     void SetLegStrings(const char* in);
54     TObjArray* GetLegStrings();
55    
56     void SetHistColors(const char* in);
57     TArrayI GetHistColors();
58    
59     void SetHistMarkers(const char* in);
60     TArrayI GetHistMarkers();
61    
62     void SetSamplesToStack(const char* in);
63     TObjArray* GetSamplesToStack();
64    
65     void SetSamplesWeight(const char* in);
66     TArrayF GetSamplesWeight();
67    
68     void SetSubstractBkgd(Bool_t flag);
69     Bool_t GetSubstractBkgd();
70    
71 peiffer 1.2 void SetDrawLumi(Bool_t flag);
72     Bool_t GetDrawLumi();
73    
74 rkogler 1.3 void SetDrawLegend(Bool_t flag);
75     Bool_t GetDrawLegend();
76    
77 rkogler 1.1
78     private:
79    
80     Bool_t bShapeNorm; // Shape normalization?
81     Bool_t bLumiNorm; // Lumi normalization?
82     Bool_t bRatioPlot; // plot ratios?
83     Bool_t bPortrait; // portrait or landscape
84     Bool_t bDrawEntries; // draw the number of entries?
85 peiffer 1.2 Bool_t bDrawLumi; // draw the lumi information?
86 rkogler 1.3 Bool_t bDrawLegend; // draw the legend everywhere?
87 rkogler 1.1 Bool_t bFitPtBalanceHists; // fit Pt-balance histograms?
88     Bool_t bJetShapesPerSlice; // plot each slide of the jet shape histograms?
89     Int_t fNumOfSamples; // how many analysis samples should be plotted
90     TObjArray fSampleNames; // all sample name
91    
92     TObjArray fSamplesToStack; // name of samples that should be stacked on top of each other
93     Int_t fNumOfSamplesToStack; // how many samples should be stacked
94     Bool_t bSubstractBkgd; // substract all background samples?
95    
96     TArrayF fSamplesWeight; // weights for the different samples
97    
98     TObjArray fInputFiles; // input filenames
99     TString fCycleName; // name of the cycle, can be used as prefix for the filenames
100     TString fOutputPsFile; // name of the resulting ps file
101    
102     TArrayI fHistColors; // the histogram colors
103     TArrayI fHistMarkers; // the histogram markers
104    
105     TObjArray fLegStrings; // legend entries
106    
107     ClassDef(SteerPlotter,0) // steering class for the SFrame Plotter
108    
109     };
110    
111     #endif