source: huonglan/ANA2011/superposition_signal_background.C

Last change on this file was 6, checked in by huonglan, 13 years ago

first full version of 2011 analysis

File size: 1.1 KB
Line 
1{
2  gROOT->SetStyle("Plain");
3
4  TFile *fileS = TFile::Open("res_24Mars_Signal.root");
5  TFile *fileB = TFile::Open("res_24Mars_ttbar.root");
6  TFile *fileW = TFile::Open("res_24Mars_Wen2p.root");
7
8  //TH1F *hS = (TH1F*)fileS->Get("mtophadNEW_all_nasty_cat2");
9  //TH1F *hB = (TH1F*)fileB->Get("mtophadNEW_all_nasty_cat2");
10  //TH1F *hW = (TH1F*)fileW->Get("mtophadNEW_all_nasty_cat2");
11
12  TH1F *hS = (TH1F*)fileS->Get("dRqqWall_nasty");
13  TH1F *hB = (TH1F*)fileB->Get("dRqqWall_nasty");
14  TH1F *hW = (TH1F*)fileW->Get("dRqqWall_nasty");
15
16  //TH1F *hS = (TH1F*)fileS->Get("mtophadgood");
17  //TH1F *hB = (TH1F*)fileB->Get("mtophadgood");
18
19  //double lumiS = 9886/1000;
20  //double lumiB = 19986/126000;
21
22  double kS = 1/1000./9986.;
23  double kB = 126/1000./39982.;
24  double kW = 378/1000./511658.;
25
26  hS->SetLineColor(2);
27  hS->SetFillColor(2);
28  hS->SetFillStyle(3001);
29  hS->Scale(kS);
30
31  hB->SetLineColor(4);
32  hB->SetLineStyle(2);
33  hB->SetFillColor(4);
34  hB->SetFillStyle(3001);
35  hB->Scale(kB);
36
37  hW->SetLineColor(3);
38  hW->SetLineStyle(2);
39  hW->SetFillColor(3);
40  hW->SetFillStyle(3001);
41  hW->Scale(kW);
42 
43  hB->Draw();
44  hS->Draw("same");
45  hW->Draw("same");
46}
Note: See TracBrowser for help on using the repository browser.