41 |
|
|
42 |
|
private: |
43 |
|
|
44 |
< |
map< string, TCanvas* > canvases_; |
45 |
< |
map< string, TCanvas* > pads_; |
44 |
> |
map< string, TCanvas* > canvases_; |
45 |
> |
map< string, TCanvas* > pads_; |
46 |
|
|
47 |
< |
void setCanvas(TCanvas* thisCanvas); |
48 |
< |
void setStats(TCanvas* thisCanvas, TPaveStats* thisStatsBox, TH1* thisHist, int counter); |
49 |
< |
void setColor(TH1* thisHist, int counter); |
50 |
< |
void setMathLabels(TH1* thisHist); |
51 |
< |
void setPalette(TCanvas* thisCanvas, TPaletteAxis* palette); |
52 |
< |
void setHistMax(TCanvas* thisCanvas, double maxEntry); |
53 |
< |
void setLegend(TCanvas* thisCanvas, TLegend* thisLeg, int counter); |
54 |
< |
void createColors(); |
47 |
> |
void setCanvas(TCanvas* thisCanvas); |
48 |
> |
void setStats(TCanvas* thisCanvas, TPaveStats* thisStatsBox, TH1* thisHist, |
49 |
> |
int counter); |
50 |
> |
void setColor(TH1* thisHist, int counter); |
51 |
> |
void setMathLabels(TH1* thisHist); |
52 |
> |
void setPalette(TCanvas* thisCanvas, TPaletteAxis* palette); |
53 |
> |
void setHistMax(TCanvas* thisCanvas, double maxEntry); |
54 |
> |
void setLegend(TCanvas* thisCanvas, TLegend* thisLeg, int counter); |
55 |
> |
void createColors(); |
56 |
|
|
57 |
|
public: |
58 |
|
|
59 |
< |
PlotTool(); |
60 |
< |
~PlotTool(){}; |
59 |
> |
PlotTool(); |
60 |
> |
~PlotTool() { |
61 |
> |
} |
62 |
> |
; |
63 |
> |
|
64 |
> |
int init(string fileName = "", |
65 |
> |
string dirPath = "/scratch/hh/current/cms/user/schum/", |
66 |
> |
string treeName = "Events", string fileLabel=""); |
67 |
> |
int plot(int chainIndex, string histName, string cutName= "", |
68 |
> |
int nEntries= -1, string drwOpt = ""); |
69 |
> |
int loop(vector<string> _histName, vector<string> _cutName, |
70 |
> |
int nEntries= -1, string drwOpt = "", bool correspond = false); |
71 |
> |
int loop(vector<string> _histName, string cutName= "", int nEntries= -1, |
72 |
> |
string drwOpt = ""); |
73 |
> |
int loop(string histName, vector<string> _cutName, int nEntries= -1, |
74 |
> |
string drwOpt = ""); |
75 |
> |
int loop(string histName, string cutName = "", int nEntries= -1, |
76 |
> |
string drwOpt = ""); |
77 |
> |
|
78 |
> |
bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees, |
79 |
> |
sameCanv_vars, sameCanv_cuts; |
80 |
> |
bool showLegend, logY, addTrackJets; |
81 |
> |
float* TrackJetKT; |
82 |
> |
vector<string> fileNames; |
83 |
> |
|
84 |
> |
int saveCanvases(string type=".ps", |
85 |
> |
string path="/afs/naf.desy.de/group/cms/scratch/schum/"); |
86 |
> |
int updatePads(); |
87 |
> |
int fillCanvases(); |
88 |
|
|
89 |
+ |
void showChainInfo(); |
90 |
|
|
62 |
– |
int init(string fileName = "", string dirPath = "/scratch/hh/current/cms/user/schum/", string treeName = "Events"); |
63 |
– |
int plot(int chainIndex, string histName, string cutName= "", int nEntries= -1, string drwOpt = ""); |
64 |
– |
int loop(vector<string> _histName, vector<string> _cutName, int nEntries= -1, string drwOpt = "", bool correspond = false); |
65 |
– |
int loop(vector<string> _histName, string cutName= "", int nEntries= -1, string drwOpt = ""); |
66 |
– |
int loop(string histName, vector<string> _cutName, int nEntries= -1, string drwOpt = ""); |
67 |
– |
int loop(string histName, string cutName, int nEntries= -1, string drwOpt = ""); |
91 |
|
|
92 |
< |
bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees, sameCanv_vars, sameCanv_cuts; |
70 |
< |
bool showLegend, logY; |
71 |
< |
float* TrackJetKT; |
72 |
< |
vector<string> fileNames; |
92 |
> |
ClassDef(PlotTool,4) |
93 |
|
|
74 |
– |
int saveCanvases(string type=".ps", string path="/afs/naf.desy.de/group/cms/scratch/schum/"); |
75 |
– |
int updatePads(); |
76 |
– |
int fillCanvases(); |
77 |
– |
|
78 |
– |
|
79 |
– |
ClassDef(PlotTool,4) |
94 |
|
|
95 |
|
}; |
96 |
|
|