ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/claudioc/ScansICHEP2012/code/B1_lipstick.C
Revision: 1.1
Committed: Mon Jul 2 04:42:05 2012 UTC (12 years, 10 months ago) by claudioc
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
lipstick

File Contents

# User Rev Content
1 claudioc 1.1 {
2     //=========Macro generated from canvas: c1_n4/c1_n4
3     //========= (Fri Apr 27 20:29:57 2012) by ROOT version5.30/02
4     TCanvas *c1_n4 = new TCanvas("c1_n4", "c1_n4",0,0,700,500);
5     gStyle->SetOptStat(0);
6     gStyle->SetOptTitle(0);
7     c1_n4->Range(207.5645,60.44304,473.6242,326.2658);
8     c1_n4->SetFillColor(0);
9     c1_n4->SetBorderMode(0);
10     c1_n4->SetBorderSize(2);
11     c1_n4->SetTickx(1);
12     c1_n4->SetTicky(1);
13     c1_n4->SetLeftMargin(0.1407035);
14     c1_n4->SetRightMargin(0.07);
15     c1_n4->SetTopMargin(0.08);
16     c1_n4->SetBottomMargin(0.13);
17     c1_n4->SetFrameBorderMode(0);
18     c1_n4->SetFrameBorderMode(0);
19    
20     TH2F *empty = new TH2F("empty","B1 model",21,245,455,21,95,305);
21     empty->SetStats(0);
22     empty->GetXaxis()->SetTitle("m(#tilde{b}_{1}) GeV");
23     empty->GetXaxis()->SetTitleSize(0.060);
24     empty->GetXaxis()->SetLabelSize(0.060);
25     empty->GetYaxis()->SetTitle("m(#tilde{#chi}_{1}^{#pm}) GeV");
26     empty->GetYaxis()->SetTitleSize(0.060);
27     empty->GetYaxis()->SetLabelSize(0.060);
28     empty->GetYaxis()->SetTitleOffset(1.2);
29     empty->Draw("");
30     TLatex * tex = new TLatex(266,313.4,"CMS Preliminary, #sqrt{s} = 8 TeV, L_{int} = 3.95 fb^{-1}");
31     tex->SetTextSize(0.055);
32     tex->SetLineWidth(2);
33     tex->Draw();
34     tex = new TLatex(253,288.2,"Same Sign dileptons with btag selection");
35     tex->SetTextSize(0.055);
36     tex->SetLineWidth(2);
37     tex->Draw();
38     tex = new TLatex(253,239.,"m(#tilde{#chi}_{1}^{0}) = 50 GeV");
39     tex->SetTextSize(0.055);
40     tex->SetLineWidth(2);
41     tex->Draw();
42     tex = new TLatex(280,271.6,"Observed Limit #sigma^{prod} = #sigma^{NLO+NLL} #pm 1 #sigma");
43     tex->SetTextSize(0.055);
44     tex->SetLineWidth(2);
45     tex->Draw();
46     tex = new TLatex(280,255,"Expected Limit #pm 1 stat. #sigma");
47     tex->SetTextSize(0.055);
48     tex->SetLineWidth(2);
49     tex->Draw();
50    
51     TLine *line22 = new TLine(253, 260, 277, 260);
52     line22->SetLineWidth(2);
53     line22->SetLineColor(2);
54     line22->SetLineStyle(2);
55     line22->Draw();
56    
57     TLine *line23 = new TLine(253, 264, 277, 264);
58     line23->SetLineWidth(2);
59     line23->SetLineColor(2);
60     line23->SetLineStyle(3);
61     line23->Draw();
62    
63     TLine *line24 = new TLine(253, 256, 277, 256);
64     line24->SetLineWidth(2);
65     line24->SetLineColor(2);
66     line24->SetLineStyle(3);
67     line24->Draw();
68    
69    
70    
71    
72     Double_t *dum = 0;
73     TPolyLine *pline = new TPolyLine(4,dum,dum,"");
74    
75     Int_t ci; // for color index setting
76     ci = TColor::GetColor("#0000ff");
77     pline->SetFillColor(kCyan-10);
78     // pline->SetFillStyle(3244);
79    
80     // Averaged limit is 407.5
81     // the cross-section error is about 3 GeV
82     ci = TColor::GetColor("#0000ff");
83     float mtop=175.;
84     pline->SetLineColor(kCyan-10);
85     pline->SetPoint(0,408.5, 95);
86     pline->SetPoint(1,408.5, 408.5-mtop);
87     pline->SetPoint(2,414.5, 414.5-mtop);
88     pline->SetPoint(3,414.5,95);
89     pline->Draw("fl");
90    
91     float obslim = 411.5;
92     TLine *line1 = new TLine(obslim, 95, obslim, obslim-mtop);
93     line1->SetLineWidth(2);
94     line1->SetLineColor(4);
95     line1->Draw();
96    
97     // the expected limit is 10 gev lower
98     float explim = obslim - 10;
99     TLine *line10 = new TLine(explim, 95, explim, explim-mtop);
100     line10->SetLineWidth(2);
101     line10->SetLineColor(2);
102     line10->SetLineStyle(2);
103     line10->Draw();
104    
105     // in can be 20 gev better
106     float explimLucky = explim + 20;
107     TLine *line20 = new TLine(explimLucky, 95, explimLucky, explimLucky-mtop);
108     line20->SetLineWidth(2);
109     line20->SetLineColor(2);
110     line20->SetLineStyle(3);
111     line20->Draw();
112    
113     // in can be 25 gev worse
114     float explimUnLucky = explim - 25;
115     TLine *line30 = new TLine(explimUnLucky, 95, explimUnLucky, explimUnLucky-mtop);
116     line30->SetLineWidth(2);
117     line30->SetLineColor(2);
118     line30->SetLineStyle(3);
119     line30->Draw();
120    
121     Double_t *dum = 0;
122     pline = new TPolyLine(8,dum,dum,"");
123    
124     ci = TColor::GetColor("#0000ff");
125     pline->SetFillColor(kCyan-10);
126     // pline->SetFillStyle(3244);
127    
128     ci = TColor::GetColor("#0000ff");
129     pline->SetLineColor(kCyan-10);
130     pline->SetPoint(0,253,271.);
131     pline->SetPoint(1,277,271.);
132     pline->SetPoint(2,277,281);
133     pline->SetPoint(3,253,281);
134     pline->SetPoint(4,253,281);
135     pline->Draw("fl");
136    
137     TLine *line2 = new TLine(253, 276, 277, 276);
138     line2->SetLineWidth(2);
139     line2->SetLineColor(4);
140     line2->Draw();
141    
142    
143     TLine *line = new TLine(270,95,455,280);
144     line->SetLineWidth(2);
145     line->Draw();
146    
147    
148    
149     c1_n4->Modified();
150     c1_n4->cd();
151     c1_n4->SetSelected(c1_n4);
152     }