ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/root/plot.C
Revision: 1.1
Committed: Wed Jan 21 18:36:10 2009 UTC (16 years, 3 months ago) by kukartse
Content type: text/plain
Branch: MAIN
CVS Tags: 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
Log Message:
after JTerm status update

File Contents

# User Rev Content
1 kukartse 1.1 {
2     TChain chain("ttljets");
3     //chain . Add("./ttlj_chowder_muon.root");
4     chain . Add("./ttlj_chowder_electron.root");
5     chain . Add("./ttlj_gumbo_electron.root");
6     //chain . Add("./ttlj_gumbo_muon.root");
7    
8     gROOT->Macro("./cuts.C");
9    
10     TH1F h_id("h_id","Track Isolation",60,0, 60);
11     h_id . SetFillColor(2);
12    
13     TH1F h_track_iso("h_track_iso","Track Isolation",100,0, 3);
14     TH1F h_track_iso_2("h_track_iso_2","Track Isolation",100,0, 3);
15     h_track_iso . SetFillColor(2);
16     h_track_iso_2 . SetFillColor(3);
17    
18     TH1F h_calo_iso("h_calo_iso","Calorimeter Isolation",100,0, 6);
19     TH1F h_calo_iso_2("h_calo_iso_2","Calorimeter Isolation",100,0, 6);
20     h_calo_iso . SetFillColor(2);
21     h_calo_iso_2 . SetFillColor(3);
22    
23     TH1F h_apl("h_apl","Aplanarity",100,0, 0.5);
24     TH1F h_apl_2("h_apl_2","Aplanarity",100,0, 0.5);
25     h_apl . SetFillColor(2);
26     h_apl_2 . SetFillColor(3);
27    
28     TH1F h_et3("h_et3","Et3",100,0, 300);
29     TH1F h_et3_2("h_et3_2","Et3",100,0, 300);
30     h_et3 . SetFillColor(2);
31     h_et3_2 . SetFillColor(3);
32    
33     TH1F h_ht2p("h_ht2p","Ht2p",100,0, 3);
34     TH1F h_ht2p_2("h_ht2p_2","Ht2p",100,0, 3);
35     h_ht2p . SetFillColor(2);
36     h_ht2p_2 . SetFillColor(3);
37    
38     TH1F h_sphericity("h_sphericity","Sphericity",100,0, 1);
39     TH1F h_sphericity_2("h_sphericity_2","Sphericity",100,0, 1);
40     h_sphericity . SetFillColor(2);
41     h_sphericity_2 . SetFillColor(3);
42    
43     TCut sig_cut = ttbar;
44     TCut bg_cut = wzjets;
45    
46     //TCanvas c("canvas", "canvas", 770, 595);
47     TCanvas c("canvas", "canvas", 800, 400);
48    
49     //chain . Draw("process_id>>h_id", weight);
50     //chain . Draw("process_id>>h_id_2", weight*sig_cut, "same");
51     h_id . SetMarkerSize(1.5);
52     chain . Draw("process_id>>h_id", weight, "TEXT");
53    
54     //chain . Draw("aplanarity>>h_apl", weight*(sig_cut || bg_cut));
55     //chain . Draw("aplanarity>>h_apl_2", weight*sig_cut, "same");
56    
57     //chain . Draw("et3>>h_et3", weight*(!ttbar));
58     //chain . Draw("et3>>h_et3_2", weight*ttbar, "same");
59    
60     //chain . Draw("ht2p>>h_ht2p", weight*(!ttbar));
61     //chain . Draw("ht2p>>h_ht2p_2", weight*ttbar, "same");
62    
63     //chain . Draw("sphericity>>h_sphericity", weight*(!ttbar));
64     //chain . Draw("sphericity>>h_sphericity_2", weight*ttbar, "same");
65    
66     //c.GetPad(0)->SetLogy();
67     //chain . Draw("lepton_track_iso>>h_track_iso", weight*(ttbar||wzjets) );
68     //chain . Draw("lepton_track_iso>>h_track_iso_2", weight*wzjets, "same");
69    
70     //c.GetPad(0)->SetLogy();
71     //chain . Draw("lepton_calo_iso>>h_calo_iso", weight*ttbar );
72     //chain . Draw("lepton_calo_iso>>h_calo_iso_2", weight*wzjets, "same");
73     }