ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/macros/variables.C
(Generate patch)

Comparing UserCode/LJMet/MultivariateAnalysis/macros/variables.C (file contents):
Revision 1.1 by kukartse, Thu Nov 20 22:34:50 2008 UTC vs.
Revision 1.5 by kukartse, Sat Jul 4 17:59:56 2009 UTC

# Line 6 | Line 6
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",
# Line 54 | Line 54 | void variables( TString fin = "TMVA.root
54     case 4:
55        xPad = 2; yPad = 2; width = 600; height = width; break;
56     default:
57 <      xPad = 3; yPad = 2; width = 800; height = 0.55*width; break;
57 >      //xPad = 3; yPad = 2; width = 800; height = 0.55*width; break;
58 >      xPad = 1; yPad = 1; width = 800; height = 0.75*width; break;
59     }
60     Int_t noPadPerCanv = xPad * yPad ;
61  
# Line 103 | Line 104 | void variables( TString fin = "TMVA.root
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
# Line 119 | Line 121 | void variables( TString fin = "TMVA.root
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){
# Line 149 | Line 153 | void variables( TString fin = "TMVA.root
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 );
166        }
167 <
167 >      
168     }
169 +  
170  
171     return;
172   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines