ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/tcmet/scripts/plotDeltaMET.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
Error occurred while calculating annotation data.
Log Message:
*** empty log message ***

File Contents

# Content
1 {
2 gStyle->SetOptStat(1);
3 gROOT->SetStyle("Plain");
4 gROOT->LoadMacro("scripts/plotDeltaMETHistos1.C");
5
6 bool plotgif=false;
7
8 string dir="trial6";
9 string filename="runs/"+dir+"/root/histos.root";
10
11
12 //string filename="rootfiles/histos.root";
13
14 TCanvas *c1=new TCanvas("c1","",1200,400);
15 c1->Divide(2,1);
16
17 TFile file(filename.c_str());
18 file.cd();
19
20 c1->cd(1);
21
22 plotDeltaMETHistos1(TTbar_hdeltamumet,TTbar_hdeltatcmet,TTbar_hdeltatcmetNew,
23 "t#bar{t}","MET^{RECO}-MET^{GEN} (GeV)",0.1,true);
24
25 c1->cd(2);
26 plotDeltaMETHistos1(TTbar_hdeltamumetphi,TTbar_hdeltatcmetphi,TTbar_hdeltatcmetphiNew,
27 "t#bar{t}","#phi^{RECO}_{MET}-#phi^{GEN}_{MET}",0.1,true);
28
29
30 if(plotgif){
31 string giffile="runs/"+dir+"/plots/deltamet.gif";
32 c1->Print(giffile.c_str());
33 }
34
35 }