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

Comparing UserCode/LJMet/MultivariateAnalysis/root/DrawSuperimposeROC.C (file contents):
Revision 1.1 by kukartse, Tue Apr 28 18:27:13 2009 UTC vs.
Revision 1.2 by jindal, Thu May 21 16:23:37 2009 UTC

# Line 1 | Line 1
1   { gROOT->SetStyle("Plain");
2    gStyle->SetOptStat(00000);
3    gStyle->SetPalette(1);
4 <  TString  tmp = "./TMVA.root";
4 >  TString  tmp = "BDT_wjets-el-70var/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");
6 >  TString  tmp = "BDT_wjets-el-20var-v2/TMVA.root";
7 >  TFile * f2 = new TFile(tmp);
8    TH1F *hROC_all;
9    TH1F *hROC_sel;
10  
11    hROC_all =(TH1F*) f1->Get("Method_BDT/BDT/MVA_BDT_rejBvsS");
12    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");
13  
14  
15    TCanvas *c1 = new TCanvas("ROC","ROC",900,600);
16    c1->cd();
17    gPad->SetGrid();
18    TLegend  *leg = new TLegend(0.3,0.3,0.65,0.5);
19 <  hROC_all->SetLineColor(4);
20 <  hROC_all->SetLineWidth(2);
21 <  hROC_sel->SetLineColor(2);
19 >  hROC_all->SetLineColor(2);
20 >  hROC_all->SetLineWidth(3);
21 >  hROC_sel->SetLineColor(4);
22    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);
23    hROC_all->Draw("C");
24    hROC_sel->Draw("Csame");
25 <  hROC_17->Draw("Csame");
26 <  hROC_11->Draw("Csame");
27 <  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 ";
25 > tmp = " All Variables ";
26 >  leg->AddEntry(hROC_all,tmp,"L");
27 > tmp = " Chosen 20 Variables ";
28    leg->AddEntry(hROC_sel,tmp,"L");
29    leg->SetFillColor(0);
30    leg->SetLineColor(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines