1 |
benhoob |
1.1 |
{
|
2 |
|
|
|
3 |
|
|
TFile f1("runs/Thu_Dec__3_10:13:17_PST_2009/root/histos_useNewRF_useNewTQ.root");
|
4 |
|
|
TFile f2("runs/Thu_Dec__3_15:48:08_PST_2009/root/histos_useNewRF_useNewTQ.root");
|
5 |
|
|
TFile f3("runs/Thu_Dec__3_18:47:43_PST_2009/root/histos_useNewRF_useNewTQ.root");
|
6 |
|
|
|
7 |
|
|
gROOT->SetStyle("Plain");
|
8 |
|
|
gStyle->SetOptStat(0);
|
9 |
|
|
|
10 |
|
|
TCanvas *c1=new TCanvas("c1","",800,600);
|
11 |
|
|
c1->cd();
|
12 |
|
|
gPad->SetLogy(1);
|
13 |
|
|
|
14 |
|
|
f1.cd();
|
15 |
|
|
QCDpt30_htcmetNew->SetLineColor(2);
|
16 |
|
|
QCDpt30_htcmetNew->SetFillColor(0);
|
17 |
|
|
QCDpt30_htcmetNew->Draw();
|
18 |
|
|
QCDpt30_htcmetNew->SetTitle("QCD p_{T}>30 GeV");
|
19 |
|
|
QCDpt30_htcmetNew->GetXaxis()->SetTitle("MET (GeV)");
|
20 |
|
|
TH1F *h1=(TH1F*)QCDpt30_htcmetNew->Clone();
|
21 |
|
|
|
22 |
|
|
f2.cd();
|
23 |
|
|
QCDpt30_htcmetNew->SetLineColor(4);
|
24 |
|
|
QCDpt30_htcmetNew->SetFillColor(0);
|
25 |
|
|
QCDpt30_htcmetNew->Draw("same");
|
26 |
|
|
TH1F *h2=(TH1F*)QCDpt30_htcmetNew->Clone();
|
27 |
|
|
|
28 |
|
|
f3.cd();
|
29 |
|
|
QCDpt30_htcmetNew->SetLineColor(1);
|
30 |
|
|
QCDpt30_htcmetNew->SetFillColor(0);
|
31 |
|
|
QCDpt30_htcmetNew->Draw("same");
|
32 |
|
|
TH1F *h3=(TH1F*)QCDpt30_htcmetNew->Clone();
|
33 |
|
|
|
34 |
|
|
TLegend *leg=new TLegend(0.5,0.6,0.8,0.8);
|
35 |
|
|
leg->AddEntry(h1,"RM GT");
|
36 |
|
|
leg->AddEntry(h2,"RM low p_{T} GT");
|
37 |
|
|
leg->AddEntry(h3,"NO RM GT");
|
38 |
|
|
leg->SetBorderSize(1);
|
39 |
|
|
leg->SetFillColor(0);
|
40 |
|
|
leg->Draw();
|
41 |
|
|
|
42 |
|
|
}
|