ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/tcmet/scripts/plotMET2.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

# Content
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=false;
9
10 string filename1="runs/trial11/root/histos.root";
11 string filename2="runs/trial12/root/histos.root";
12
13 TCanvas *c1=new TCanvas("c1","",1200,600);
14 c1->Divide(3,2);
15
16 TFile file1(filename1.c_str());
17 file1.cd();
18
19 TH1F *DYmm1=(TH1F*)DYmm_htcmetNew->Clone();
20 TH1F *DYee1=(TH1F*)DYee_htcmetNew->Clone();
21 TH1F *QCD1 =(TH1F*)QCDpt30_htcmetNew->Clone();
22 TH1F *tt1 =(TH1F*)TTbar_hdeltatcmetNew->Clone();
23 TH1F *ttphi1 =(TH1F*)TTbar_hdeltatcmetphiNew->Clone();
24
25 TFile file2(filename2.c_str());
26 file2.cd();
27
28 TH1F *DYmm2=(TH1F*)DYmm_htcmetNew->Clone();
29 TH1F *DYee2=(TH1F*)DYee_htcmetNew->Clone();
30 TH1F *QCD2 =(TH1F*)QCDpt30_htcmetNew->Clone();
31 TH1F *tt2 =(TH1F*)TTbar_hdeltatcmetNew->Clone();
32 TH1F *ttphi2 =(TH1F*)TTbar_hdeltatcmetphiNew->Clone();
33
34 c1->cd(1);
35 plotMETHistos1(DYmm1,DYmm2,
36 "low p_{T} corr","no low p_{T} corr",
37 "DY#rightarrow#mu^{+}#mu^{-}","MET (GeV)",0.1,true,true);
38
39 c1->cd(2);
40 plotMETHistos1(DYee1,DYee2,
41 "low p_{T} corr","no low p_{T} corr",
42 "DY#rightarrow e^{+}e^{-}","MET (GeV)",0.1,true,true);
43
44 c1->cd(3);
45 plotMETHistos1(QCD1,QCD2,
46 "low p_{T} corr","no low p_{T} corr",
47 "QCD p_{T}>30 GeV","MET (GeV)",0.1,true,true);
48
49 c1->cd(4);
50 plotDeltaMETHistos1(tt1,tt2,
51 "low p_{T} corr","no low p_{T} corr",
52 "t#bar{t}","MET^{RECO}-MET^{GEN} (GeV)",0.1,true,true);
53
54 c1->cd(5);
55 plotDeltaMETHistos1(ttphi1,ttphi2,
56 "low p_{T} corr","no low p_{T} corr",
57 "t#bar{t}","#phi^{RECO}_{MET}-#phi^{GEN}_{MET}",0.1,true,true);
58
59
60
61 if(plotgif){
62 string giffile1="plots/met_lowptcorr.gif";
63 c1->Print(giffile1.c_str());
64 }
65
66
67
68 }
69
70
71 /*
72 TCanvas *c2=new TCanvas("c2","",1200,800);
73 c2->Divide(2,2);
74
75 c2->cd(2);
76 QCDpt30_correctedJetEta->Draw();
77 QCDpt30_correctedJetEta->GetXaxis()->SetTitle("#eta_{JET}");
78 QCDpt30_correctedJetEta->SetTitle("QCD p_{T}>30 GeV");
79
80 c2->cd(3);
81 DYee_correctedJetEta->Draw();
82 DYee_correctedJetEta->GetXaxis()->SetTitle("#eta_{JET}");
83 DYee_correctedJetEta->SetTitle("DY#rightarrow e^{+}e^{-}");
84
85 c2->cd(4);
86 DYmm_correctedJetEta->Draw();
87 DYmm_correctedJetEta->GetXaxis()->SetTitle("#eta_{JET}");
88 DYmm_correctedJetEta->SetTitle("DY#rightarrow #mu^{+}#mu^{-}");
89 */