ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/claudioc/ScansICHEP2012/code/B2_300_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/c1
3     //========= (Fri Apr 27 20:31:51 2012) by ROOT version5.30/02
4     TCanvas *c1 = new TCanvas("c1", "c1",0,0,700,500);
5     gStyle->SetOptStat(0);
6     gStyle->SetOptTitle(0);
7     c1->Range(210.2564,99.99999,1107.692,1100);
8     c1->SetFillColor(0);
9     c1->SetBorderMode(0);
10     c1->SetBorderSize(2);
11     c1->SetTickx(1);
12     c1->SetTicky(1);
13     // c1->SetRightMargin(0.12);
14    
15     c1->SetLeftMargin(0.1407035);
16     c1->SetRightMargin(0.07);
17     c1->SetTopMargin(0.08);
18     c1->SetBottomMargin(0.13);
19     c1->SetFrameBorderMode(0);
20     c1->SetFrameBorderMode(0);
21    
22    
23     c1->SetFrameBorderMode(0);
24     c1->SetFrameBorderMode(0);
25    
26     TH2F *empty = new TH2F("empty","Gluino Sbottom model",100,300,1000,100,200,1000);
27     empty->SetStats(0);
28     empty->GetXaxis()->SetTitle("m(#tilde{g}) GeV");
29     empty->GetXaxis()->SetTitleSize(0.060);
30     empty->GetXaxis()->SetLabelSize(0.060);
31     empty->GetYaxis()->SetTitle("m(#tilde{b}_{1}) GeV");
32     empty->GetYaxis()->SetTitleSize(0.060);
33     empty->GetYaxis()->SetTitleOffset(1.2);
34     empty->GetYaxis()->SetLabelSize(0.060);
35     empty->Draw("");
36    
37    
38     Double_t *dum = 0;
39     TPolyLine *pline = new TPolyLine(16,dum,dum,"");
40    
41     ci = TColor::GetColor("#ff0000");
42     pline->SetFillColor(kCyan-10);
43     // pline->SetFillStyle(3244);
44     // pline->SetFillStyle(3305);
45    
46     ci = TColor::GetColor("#ff0000");
47     int kk=0;
48     float mb=5.;
49     pline->SetLineColor(kCyan-10);
50     pline->SetPoint(kk++,918,475);
51     pline->SetPoint(kk++,930,550);
52     pline->SetPoint(kk++,943,650);
53     pline->SetPoint(kk++,953,750);
54     pline->SetPoint(kk++,883,883-mb);
55     pline->SetPoint(kk++,833,833-mb);
56     pline->SetPoint(kk++,888,750);
57     pline->SetPoint(kk++,888,550);
58     pline->SetPoint(kk++,863,475);
59     pline->SetPoint(kk++,918,475);
60     pline->Draw("fl");
61     pline->Draw();
62    
63    
64     // a line down the middle
65     Float_t x[10],y[10];
66     x[0] = (863+918)/2;
67     x[1] = (888+930)/2;
68     x[2] = (888+953)/2;
69     x[3] = (833+883)/2;
70     y[0] = 475;
71     y[1] = 550;
72     y[2] = 750;
73     y[3] = x[3] - mb;
74     TGraph* gr00 = new TGraph(4,x,y);
75     gr00->SetLineColor(4);
76     gr00->SetLineWidth(2);
77     gr00->Draw();
78    
79     // the expected line is shifted by about 7 gev
80     for (int i=0; i<4; i++) {
81     x[i] = x[i] + 7;
82     }
83     y[3] = x[3] - mb;
84     TGraph* gr01 = new TGraph(4,x,y);
85     gr01->SetLineColor(2);
86     gr01->SetLineWidth(2);
87     gr01->SetLineStyle(2);
88     gr01->Draw();
89    
90     // the +1 sigma is 40 gev off the expected
91     for (int i=0; i<4; i++) {
92     x[i] = x[i] - 40;
93     }
94     y[3] = x[3] - mb;
95     TGraph* gr02 = new TGraph(4,x,y);
96     gr02->SetLineColor(2);
97     gr02->SetLineWidth(2);
98     gr02->SetLineStyle(3);
99     gr02->Draw();
100    
101     // the -1 sigma is 65 GeV is higher
102     for (int i=0; i<4; i++) {
103     x[i] = x[i] + 65;
104     }
105     y[3] = x[3] - mb;
106     TGraph* gr03 = new TGraph(4,x,y);
107     gr03->SetLineColor(2);
108     gr03->SetLineWidth(2);
109     gr03->SetLineStyle(3);
110     gr03->Draw();
111    
112    
113     Double_t *dum = 0;
114     pline = new TPolyLine(16,dum,dum,"");
115    
116     ci = TColor::GetColor("#0000ff");
117     pline->SetFillColor(ci);
118     // pline->SetFillStyle(3344);
119     pline->SetFillStyle(3395);
120    
121     Double_t *dum2 = 0;
122     TPolyLine *pline2 = new TPolyLine(16,dum2,dum2,"");
123     pline2->SetPoint(0, 325, 876);
124     pline2->SetPoint(1, 375, 876);
125     pline2->SetPoint(2, 375, 916);
126     pline2->SetPoint(3, 325, 916);
127     pline2->SetPoint(0, 325, 876);
128     pline2->SetFillColor(kCyan-10);
129     pline2->Draw("fl");
130     TLine * blah = new TLine(325,896,375,896);
131     blah->SetLineColor(4);
132     blah->SetLineWidth(2);
133     blah->Draw();
134    
135     TLine * blah2 = new TLine(325,825,375,825);
136     blah2->SetLineColor(2);
137     blah2->SetLineStyle(2);
138     blah2->SetLineWidth(2);
139     blah2->Draw();
140    
141     TLine * blah3 = new TLine(325,845,375,845);
142     blah3->SetLineColor(2);
143     blah3->SetLineStyle(3);
144     blah3->SetLineWidth(2);
145     blah3->Draw();
146    
147     TLine * blah4 = new TLine(325,805,375,805);
148     blah4->SetLineColor(2);
149     blah4->SetLineStyle(3);
150     blah4->SetLineWidth(2);
151     blah4->Draw();
152    
153    
154     tex = new TLatex(380,876,"Observed Limit #sigma^{prod} = #sigma^{NLO+NLL} #pm 1 #sigma");
155     tex->SetTextSize(0.055);
156     tex->SetLineWidth(2);
157     tex->Draw();
158    
159     tex = new TLatex(380,810,"Expected Limit #pm 1 stat. #sigma");
160     tex->SetTextSize(0.055);
161     tex->SetLineWidth(2);
162     tex->Draw();
163    
164    
165    
166     TLatex * tex = new TLatex(370,1032,"CMS Preliminary, #sqrt{s} = 8 TeV, L_{int} = 3.95 fb^{-1}");
167     tex->SetTextSize(0.055);
168     tex->SetLineWidth(2);
169     tex->Draw();
170     tex = new TLatex(330,936,"Same Sign dileptons with btag selection");
171     tex->SetTextSize(0.055);
172     tex->SetLineWidth(2);
173     tex->Draw();
174     tex = new TLatex(330,750,"m(#tilde{#chi}^{0}_{1}) = 50 GeV");
175     tex->SetTextSize(0.055);
176     tex->SetLineWidth(2);
177     tex->Draw();
178    
179     tex = new TLatex(330,660,"#color[1]{m(#tilde{#chi}_{1}^{+}) = 300 GeV}");
180     tex->SetTextSize(0.055);
181     tex->SetLineWidth(2);
182     tex->Draw();
183     tex = new TLatex(540,435,"#color[1]{m(#tilde{#chi}_{1}^{+}) = 300 GeV}");
184     tex->SetTextSize(0.055);
185     tex->SetLineWidth(2);
186     /// tex->Draw();
187    
188    
189     line = new TLine(480,475,1000,475);
190     line->SetLineStyle(1);
191     line->SetLineWidth(2);
192    
193     ci = TColor::GetColor("#ff0000");
194     line->SetLineColor(1);
195     line->Draw();
196     line = new TLine(480,475,1000,995);
197     line->SetLineStyle(1);
198    
199     ci = TColor::GetColor("#ff0000");
200     line->SetLineColor(1);
201     line->SetLineWidth(2);
202     line->Draw();
203    
204    
205    
206     c1->Modified();
207     c1->cd();
208     c1->SetSelected(c1);
209     }