1 |
rkogler |
1.1 |
#ifndef STEERPLOTTER__
|
2 |
|
|
#define STEERPLOTTER__
|
3 |
pturner |
1.5 |
#include <cstdlib>
|
4 |
rkogler |
1.1 |
#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 |
|
|
void SetOutputPsFile(const char* in);
|
47 |
|
|
const char* GetOutputPsFile();
|
48 |
|
|
|
49 |
|
|
void SetCycleName(const char* in);
|
50 |
|
|
const char* GetCycleName();
|
51 |
|
|
|
52 |
|
|
void SetLegStrings(const char* in);
|
53 |
|
|
TObjArray* GetLegStrings();
|
54 |
|
|
|
55 |
|
|
void SetHistColors(const char* in);
|
56 |
|
|
TArrayI GetHistColors();
|
57 |
|
|
|
58 |
|
|
void SetHistMarkers(const char* in);
|
59 |
|
|
TArrayI GetHistMarkers();
|
60 |
|
|
|
61 |
|
|
void SetSamplesToStack(const char* in);
|
62 |
|
|
TObjArray* GetSamplesToStack();
|
63 |
|
|
|
64 |
|
|
void SetSamplesWeight(const char* in);
|
65 |
|
|
TArrayF GetSamplesWeight();
|
66 |
|
|
|
67 |
|
|
void SetSubstractBkgd(Bool_t flag);
|
68 |
|
|
Bool_t GetSubstractBkgd();
|
69 |
|
|
|
70 |
peiffer |
1.2 |
void SetDrawLumi(Bool_t flag);
|
71 |
|
|
Bool_t GetDrawLumi();
|
72 |
|
|
|
73 |
rkogler |
1.3 |
void SetDrawLegend(Bool_t flag);
|
74 |
|
|
Bool_t GetDrawLegend();
|
75 |
|
|
|
76 |
rkogler |
1.4 |
void SetLumi(Float_t lumi);
|
77 |
|
|
Float_t GetLumi();
|
78 |
|
|
|
79 |
rkogler |
1.1 |
|
80 |
|
|
private:
|
81 |
|
|
|
82 |
|
|
Bool_t bShapeNorm; // Shape normalization?
|
83 |
|
|
Bool_t bLumiNorm; // Lumi normalization?
|
84 |
|
|
Bool_t bRatioPlot; // plot ratios?
|
85 |
|
|
Bool_t bPortrait; // portrait or landscape
|
86 |
|
|
Bool_t bDrawEntries; // draw the number of entries?
|
87 |
peiffer |
1.2 |
Bool_t bDrawLumi; // draw the lumi information?
|
88 |
rkogler |
1.3 |
Bool_t bDrawLegend; // draw the legend everywhere?
|
89 |
rkogler |
1.1 |
Bool_t bFitPtBalanceHists; // fit Pt-balance histograms?
|
90 |
|
|
Bool_t bJetShapesPerSlice; // plot each slide of the jet shape histograms?
|
91 |
|
|
Int_t fNumOfSamples; // how many analysis samples should be plotted
|
92 |
rkogler |
1.4 |
Float_t fLumi; // integrated luminosity of sample
|
93 |
rkogler |
1.1 |
TObjArray fSampleNames; // all sample name
|
94 |
|
|
|
95 |
|
|
TObjArray fSamplesToStack; // name of samples that should be stacked on top of each other
|
96 |
|
|
Int_t fNumOfSamplesToStack; // how many samples should be stacked
|
97 |
|
|
Bool_t bSubstractBkgd; // substract all background samples?
|
98 |
|
|
|
99 |
|
|
TArrayF fSamplesWeight; // weights for the different samples
|
100 |
|
|
|
101 |
|
|
TObjArray fInputFiles; // input filenames
|
102 |
|
|
TString fCycleName; // name of the cycle, can be used as prefix for the filenames
|
103 |
|
|
TString fOutputPsFile; // name of the resulting ps file
|
104 |
|
|
|
105 |
|
|
TArrayI fHistColors; // the histogram colors
|
106 |
|
|
TArrayI fHistMarkers; // the histogram markers
|
107 |
|
|
|
108 |
|
|
TObjArray fLegStrings; // legend entries
|
109 |
|
|
|
110 |
|
|
ClassDef(SteerPlotter,0) // steering class for the SFrame Plotter
|
111 |
|
|
|
112 |
|
|
};
|
113 |
|
|
|
114 |
|
|
#endif
|