6 |
|
// input: - Input file (result from TMVA), |
7 |
|
// - normal/decorrelated/PCA |
8 |
|
// - use of TMVA plotting TStyle |
9 |
< |
void variables( TString fin = "TMVA.root", TMVAGlob::TypeOfPlot type = TMVAGlob::kNormal, bool useTMVAStyle=kTRUE ) |
9 |
> |
void variables( TString fin = "TMVA.root", TMVAGlob::TypeOfPlot type = TMVAGlob::kNormal, bool useTMVAStyle=kFALSE ) |
10 |
|
{ |
11 |
|
|
12 |
|
const TString directories[3] = { "InputVariables_NoTransform", |
104 |
|
// chop off "signal" |
105 |
|
TString title(sig->GetTitle()); |
106 |
|
title.ReplaceAll("signal",""); |
107 |
< |
sig->SetTitle( TString( titles[type] ) + ": " + title ); |
107 |
> |
//sig->SetTitle( TString( titles[type] ) + ": " + title ); |
108 |
> |
sig->SetTitle( "" ); |
109 |
|
TMVAGlob::SetFrameStyle( sig, 1.2 ); |
110 |
|
|
111 |
|
// normalise both signal and background |
121 |
|
cPad->SetLeftMargin( 0.17 ); |
122 |
|
|
123 |
|
bgd->Draw("histsame"); |
124 |
< |
sig->GetXaxis()->SetTitle( title ); |
124 |
> |
//sig->GetXaxis()->SetTitle( title ); |
125 |
> |
sig->GetXaxis()->SetTitle( "" ); |
126 |
|
sig->GetYaxis()->SetTitleOffset( 1.80 ); |
127 |
< |
sig->GetYaxis()->SetTitle("Normalised"); |
127 |
> |
//sig->GetYaxis()->SetTitle("Normalised"); |
128 |
> |
sig->GetYaxis()->SetTitle(""); |
129 |
|
|
130 |
|
// Draw legend |
131 |
|
if (countPad==2){ |
153 |
|
t->SetNDC(); |
154 |
|
t->SetTextSize( 0.040 ); |
155 |
|
t->SetTextAngle( 90 ); |
156 |
< |
t->AppendPad(); |
156 |
> |
//t->AppendPad(); |
157 |
|
|
158 |
|
// save canvas to file |
159 |
|
if (countPad%noPadPerCanv==0) { |
160 |
< |
TString fname = Form( "plots/%s_c%i", outfname[type].Data(), countCanvas ); |
161 |
< |
TMVAGlob::plot_logo(); |
160 |
> |
//TString fname = Form( "plots/%s_c%i", outfname[type].Data(), countCanvas ); |
161 |
> |
TString fname = Form( "plots/%s_%s", outfname[type].Data(), title.Data() ); |
162 |
> |
//TMVAGlob::plot_logo(); |
163 |
|
TMVAGlob::imgconv( canv, fname ); |
164 |
|
//fname.Append(".eps"); |
165 |
|
//cPad->SaveAs(fname ); |