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.2 by kukartse, Thu May 7 00:33:26 2009 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 104 | 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 120 | 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 150 | 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 );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines