ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/tcmet/scripts/responseFunction.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
3 gROOT->SetStyle("Plain");
4 gStyle->SetOptStat(0);
5 gStyle->SetPalette(1);
6
7 gROOT->LoadMacro("scripts/getResponseFunctionOld.C");
8 gROOT->LoadMacro("scripts/getResponseFunctionNew.C");
9
10 TH2* hrfOld=getResponseFunctionOld();
11 TH2* hrfNew=getResponseFunctionNew();
12
13 TCanvas *c1=new TCanvas("c1","",1200,600);
14 c1->Divide(2,1);
15 c1->cd(1);
16 hrfOld->Draw("colz");
17 hrfOld->SetTitle("Old RF");
18 hrfOld->GetXaxis()->SetTitle("#eta");
19 hrfOld->GetYaxis()->SetTitle("p_{T} (GeV)");
20 c1->cd(2);
21 hrfNew->Draw("colz");
22 hrfNew->SetTitle("New RF");
23 hrfNew->GetXaxis()->SetTitle("#eta");
24 hrfNew->GetYaxis()->SetTitle("p_{T} (GeV)");
25
26
27
28
29
30
31 }