ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/tcmet/scripts/plotHighMET.C
Revision: 1.1
Committed: Fri Jan 22 09:58:14 2010 UTC (15 years, 3 months ago) by benhoob
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 benhoob 1.1 {
2     gStyle->SetOptStat(0);
3     gROOT->SetStyle("Plain");
4     gROOT->LoadMacro("scripts/plotMETHistos1.C");
5     gROOT->LoadMacro("scripts/plotDeltaMETHistos1.C");
6     gROOT->LoadMacro("scripts/drawLeg1.C");
7    
8     bool plotgif=true;
9    
10     TFile f0("runs/trial0/root/histos.root");
11     f0.cd();
12     TH1F *DYmm0= (TH1F*)DYmm_htcmetNew->Clone();
13     TH1F *DYee0= (TH1F*)DYee_htcmetNew->Clone();
14     TH1F *QCD0= (TH1F*)QCDpt30_htcmetNew->Clone();
15     TH1F *TTbar0=(TH1F*)TTbar_hdeltatcmetNew->Clone();
16     TH1F *TTbar0phi=(TH1F*)TTbar_hdeltatcmetphiNew->Clone();
17    
18     TFile f8("runs/trial8/root/histos.root");
19     f8.cd();
20     TH1F *DYmm8= (TH1F*)DYmm_htcmetNew->Clone();
21     TH1F *DYee8= (TH1F*)DYee_htcmetNew->Clone();
22     TH1F *QCD8= (TH1F*)QCDpt30_htcmetNew->Clone();
23     TH1F *TTbar8=(TH1F*)TTbar_hdeltatcmetNew->Clone();
24     TH1F *TTbar8phi=(TH1F*)TTbar_hdeltatcmetphiNew->Clone();
25    
26     TFile f10("runs/trial10/root/histos.root");
27     TH1F *DYmm10= (TH1F*)DYmm_htcmetNew->Clone();
28     TH1F *DYee10= (TH1F*)DYee_htcmetNew->Clone();
29     TH1F *QCD10= (TH1F*)QCDpt30_htcmetNew->Clone();
30     TH1F *TTbar10=(TH1F*)TTbar_hdeltatcmetNew->Clone();
31     TH1F *TTbar10phi=(TH1F*)TTbar_hdeltatcmetphiNew->Clone();
32    
33     TCanvas *c1=new TCanvas("c1","",1200,600);
34     c1->Divide(3,2);
35    
36     c1->cd(1);
37     plotMETHistos1(DYmm0,DYmm8,DYmm10,
38     "STD","RM TRANS","TYPE1",
39     "DY#rightarrow#mu^{+}#mu^{-}","MET (GeV)",0.1,true,false);
40    
41     c1->cd(2);
42     plotMETHistos1(DYee0,DYee8,DYee10,
43     "STD","RM TRANS","TYPE1",
44     "DY#rightarrow e^{+}e^{-}","MET (GeV)",0.1,true,false);
45    
46     c1->cd(3);
47     plotMETHistos1(QCD0,QCD8,QCD10,
48     "STD","RM TRANS","TYPE1",
49     "QCD p_{T}>30 GeV","MET (GeV)",0.1,true,false);
50    
51     c1->cd(4);
52     plotDeltaMETHistos1(TTbar0,TTbar8,TTbar10,
53     "STD","RM TRANS","TYPE1",
54     "t#bar{t}","MET^{RECO}-MET^{GEN} (GeV)",0.1,true,false);
55    
56     c1->cd(5);
57     plotDeltaMETHistos1(TTbar0phi,TTbar8phi,TTbar10phi,
58     "STD","RM TRANS","TYPE1",
59     "t#bar{t}","#phi^{RECO}_{MET}-#phi^{GEN}_{MET}",0.1,true,false);
60    
61    
62    
63     if(plotgif){
64     string giffile1="runs/"+dir+"/plots/met.gif";
65     c1->Print(giffile1.c_str());
66     }
67    
68    
69    
70     }
71    
72    
73     /*
74     TCanvas *c2=new TCanvas("c2","",1200,800);
75     c2->Divide(2,2);
76    
77     c2->cd(2);
78     QCDpt30_correctedJetEta->Draw();
79     QCDpt30_correctedJetEta->GetXaxis()->SetTitle("#eta_{JET}");
80     QCDpt30_correctedJetEta->SetTitle("QCD p_{T}>30 GeV");
81    
82     c2->cd(3);
83     DYee_correctedJetEta->Draw();
84     DYee_correctedJetEta->GetXaxis()->SetTitle("#eta_{JET}");
85     DYee_correctedJetEta->SetTitle("DY#rightarrow e^{+}e^{-}");
86    
87     c2->cd(4);
88     DYmm_correctedJetEta->Draw();
89     DYmm_correctedJetEta->GetXaxis()->SetTitle("#eta_{JET}");
90     DYmm_correctedJetEta->SetTitle("DY#rightarrow #mu^{+}#mu^{-}");
91     */