ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/macros/TMVAlogon.C
Revision: 1.1
Committed: Thu Nov 20 22:34:49 2008 UTC (16 years, 5 months ago) by kukartse
Content type: text/plain
Branch: MAIN
CVS Tags: V00-03-01, ZMorph_BASE_20100408, gak040610_morphing, V00-02-02, gak011410, gak010310, ejterm2010_25nov2009, V00-02-01, V00-02-00, gak112409, CMSSW_22X_branch_base, segala101609, V00-01-15, V00-01-14, V00-01-13, V00-01-12, V00-01-11, V00-01-10, gak031009, gak030509, gak022309, gak021209, gak040209, gak012809, V00-01-09, V00-01-08, V00-01-07, V00-01-06, V00-01-05, V00-01-04, V00-00-07, V00-00-06, V00-00-05, V00-00-04, V00-01-03, V00-00-02, V00-00-01, HEAD
Branch point for: ZMorph-V00-03-01, CMSSW_22X_branch
Log Message:
created /macros with TMVA scripts in it

File Contents

# User Rev Content
1 kukartse 1.1
2     {
3     // --------- S t y l e ---------------------------
4     const Bool_t UsePaperStyle = 0;
5     // -----------------------------------------------
6    
7     gSystem->Load("libMLP");
8    
9     // load TMVA shared library created in local release
10     //TString libTMVA( "../lib/libTMVA.1" );
11     TString libTMVA( "libTMVA.so" );
12     gSystem->Load( libTMVA );
13    
14     // welcome the user
15     TMVA::Tools::TMVAWelcomeMessage();
16     cout << "TMVAlogon: loaded TMVA library: \"" << libTMVA << "\"" << endl;
17    
18     // some basic style settings
19     TStyle *TMVAStyle = gROOT->GetStyle("Plain"); // our style is based on Plain
20     // new TStyle("TMVA","TMVA plots style");
21     // the pretty color palette of old
22     TMVAStyle->SetPalette(1,0);
23    
24     // use plain black on white colors
25     TMVAStyle->SetFrameBorderMode(0);
26     TMVAStyle->SetCanvasBorderMode(0);
27     TMVAStyle->SetPadBorderMode(0);
28     TMVAStyle->SetPadColor(0);
29     TMVAStyle->SetFillStyle(0);
30    
31     TMVAStyle->SetLegendBorderSize(0);
32    
33     // title properties
34     // TMVAStyle->SetTitleW(.4);
35     // TMVAStyle->SetTitleH(.10);
36     // MVAStyle->SetTitleX(.5);
37     // TMVAStyle->SetTitleY(.9);
38     TMVAStyle->SetTitleFillColor(33 + 150);
39     if (!UsePaperStyle) {
40     TMVAStyle->SetFrameFillColor(19 + 150);
41     TMVAStyle->SetCanvasColor(21 + 150);
42     }
43    
44     // set the paper & margin sizes
45     TMVAStyle->SetPaperSize(20,26);
46     TMVAStyle->SetPadTopMargin(0.10);
47     TMVAStyle->SetPadRightMargin(0.05);
48     TMVAStyle->SetPadBottomMargin(0.11);
49     TMVAStyle->SetPadLeftMargin(0.12);
50    
51     // use bold lines and markers
52     TMVAStyle->SetMarkerStyle(21);
53     TMVAStyle->SetMarkerSize(0.3);
54     TMVAStyle->SetHistLineWidth(1.85);
55     TMVAStyle->SetLineStyleString(2,"[12 12]"); // postscript dashes
56    
57     // do not display any of the standard histogram decorations
58     TMVAStyle->SetOptTitle(1);
59     TMVAStyle->SetTitleH(0.052);
60    
61     TMVAStyle->SetOptStat(0);
62     TMVAStyle->SetOptFit(0);
63    
64     // put tick marks on top and RHS of plots
65     TMVAStyle->SetPadTickX(1);
66     TMVAStyle->SetPadTickY(1);
67    
68     gROOT->SetStyle("Plain");
69     cout << "TMVAlogon: use " << gStyle->GetName() << " style with \"Pretty Color Palette\"" << endl;
70     cout << endl;
71     }