ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/root/DrawSuperimposeROC.C
Revision: 1.1
Committed: Tue Apr 28 18:27:13 2009 UTC (16 years ago) by kukartse
Content type: text/plain
Branch: MAIN
CVS Tags: V00-01-14, V00-01-13
Log Message:
*** empty log message ***

File Contents

# Content
1 { gROOT->SetStyle("Plain");
2 gStyle->SetOptStat(00000);
3 gStyle->SetPalette(1);
4 TString tmp = "./TMVA.root";
5 TFile * f1 = new TFile(tmp);
6 TString tmp = "../test_21/TMVA.root";
7 TFile * f2 = new TFile("../test_21/TMVA.root","READ");
8 TFile * f17 = new TFile("../test_17/TMVA.root","READ");
9 TFile * f11 = new TFile("../test_11/TMVA.root","READ");
10 TFile * f10 = new TFile("../test_10/TMVA.root","READ");
11 TFile * f9 = new TFile("../test_9/TMVA.root","READ");
12 TH1F *hROC_all;
13 TH1F *hROC_sel;
14
15 hROC_all =(TH1F*) f1->Get("Method_BDT/BDT/MVA_BDT_rejBvsS");
16 hROC_sel =(TH1F*)f2->Get("Method_BDT/BDT/MVA_BDT_rejBvsS");
17 hROC_17 =(TH1F*)f17->Get("Method_BDT/BDT/MVA_BDT_rejBvsS");
18 hROC_11 =(TH1F*)f11->Get("Method_BDT/BDT/MVA_BDT_rejBvsS");
19 hROC_10 =(TH1F*)f10->Get("Method_BDT/BDT/MVA_BDT_rejBvsS");
20 hROC_9 =(TH1F*)f9->Get("Method_BDT/BDT/MVA_BDT_rejBvsS");
21
22
23 TCanvas *c1 = new TCanvas("ROC","ROC",900,600);
24 c1->cd();
25 gPad->SetGrid();
26 TLegend *leg = new TLegend(0.3,0.3,0.65,0.5);
27 hROC_all->SetLineColor(4);
28 hROC_all->SetLineWidth(2);
29 hROC_sel->SetLineColor(2);
30 hROC_sel->SetLineWidth(3);
31 hROC_17->SetLineColor(4);
32 hROC_17->SetLineWidth(2);
33 hROC_11->SetLineColor(4);
34 hROC_11->SetLineWidth(2);
35 hROC_10->SetLineColor(4);
36 hROC_10->SetLineWidth(2);
37 hROC_9->SetLineColor(4);
38 hROC_9->SetLineWidth(2);
39 hROC_all->Draw("C");
40 hROC_sel->Draw("Csame");
41 hROC_17->Draw("Csame");
42 hROC_11->Draw("Csame");
43 hROC_10->Draw("Csame");
44 hROC_9->Draw("Csame");
45 tmp = " Various subsets of variables ";
46 leg->AddEntry(hROC_all,tmp,"L");
47 tmp = " Chosen 21 Variables ";
48 leg->AddEntry(hROC_sel,tmp,"L");
49 leg->SetFillColor(0);
50 leg->SetLineColor(0);
51 leg->Draw();
52 }