ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/auterman/SusyScan/PlotScript/plot50tb.cc
(Generate patch)

Comparing UserCode/auterman/SusyScan/PlotScript/plot50tb.cc (file contents):
Revision 1.1 by auterman, Wed Feb 9 08:51:32 2011 UTC vs.
Revision 1.7 by auterman, Thu Mar 10 20:59:52 2011 UTC

# Line 4 | Line 4
4   #include "PlotTools.h"
5   #include "TheLimits.h"
6   #include "GlobalFunctions.h"
7 + #include "StyleSettings.h"
8  
9   #include "TRint.h"
10   #include "TROOT.h"
# Line 37 | Line 38 | int plot(int argc, char** argv)
38        return 1;
39     }  
40  
41 +   /*
42     //Style stuff
43     gStyle->SetHistFillColor(0);
44     gStyle->SetPalette(1);
# Line 68 | Line 70 | int plot(int argc, char** argv)
70     gStyle->SetLabelSize(0.03,"X");
71     gStyle->SetLabelSize(0.03,"Y");
72     gStyle->SetLabelSize(0.03,"Z");
73 +   */
74 +   util::StyleSettings::paper();
75 +   gStyle->SetPadBottomMargin(0.18);
76  
77     //gROOT->SetStyle("MyStyle");
78     TCanvas * c1 = new TCanvas("c1","c1",600,600);
79 <   c1->SetFillStyle   ( 4000 );
80 <   c1->SetLeftMargin  ( 0.15 );
81 <   c1->SetRightMargin ( 0.15 );
82 <   c1->SetBottomMargin( 0.10 );
79 >   //c1->SetFillStyle   ( 4000 );
80 >   //c1->SetLeftMargin  ( 0.15 );
81 >   //c1->SetRightMargin ( 0.15 );
82 >   //c1->SetBottomMargin( 0.10 );
83     c1->cd();
84    
85     //Get limits and generator masses ---------------------------------------------------
86     TheLimits * genpoints = new TheLimits();
87     //genpoints->Fill(argc, argv);
88 <   genpoints->Fill("limits_MHT_tb50/filelist.txt");
88 >   //genpoints->Fill("limits_MHT_tb50_20110303/filelist.txt");
89 >   genpoints->Fill("limits_MHT_20110310/filelist_tb50.txt");
90  
91     TheLimits * genpointsHT = new TheLimits();
92 <   genpointsHT->Fill("limits_HT_tb50/filelist.txt");
92 >   //genpointsHT->Fill("limits_HT_tb50_20110303/filelist.txt");
93 >   genpointsHT->Fill("limits_HT_20110310/filelist_tb50.txt");
94  
95    
96     //Replace read limits with specific numbers
97     //genpoints->OverwriteLimits("ABCD_MHT");
98    
99 <   genpoints->FillGeneratorMasses("tb50_mu1_a0_massscan.dat");
99 >   genpoints->FillGeneratorMasses("GenScan_tb50.dat");
100     genpoints->match();
101 <   genpointsHT->FillGeneratorMasses("tb50_mu1_a0_massscan.dat");
101 >   genpointsHT->FillGeneratorMasses("GenScan_tb50.dat");
102     genpointsHT->match();
103  
104     //the plotting ----------------------------------------------------------------------
# Line 166 | Line 173 | int plot(int argc, char** argv)
173     hexplimitnsig->Draw("colz");
174     c1->SaveAs("results_tb50/ExpLimitOnNSig_m0_m12_tb50.pdf");
175    
176 +   // Charged LSP in M0 - M1/2
177 +   c1->SetRightMargin ( 0.15 );
178 +   c1->SetLogz(0);
179 +   TH2F*hchargedLSP = new TH2F("explimitnsig",";m_{0} [GeV]; m_{1/2} [GeV]; Charged LSP",
180 +                     40,200,600,26,140,400);
181 +   plotTools->Area(hchargedLSP, Mzero, Mhalf, ChargedLSP);
182 +   //hchargedLSP->SetMinimum(-0.01);
183 +   //hchargedLSP->SetMaximum(1.1);
184 +   hchargedLSP->Draw("colz");
185 +   c1->SaveAs("results_tb50/ChargedLSP_m0_m12_tb50.pdf");
186 +  
187 +   TH2F*hnLSP = new TH2F("explimitnsig",";m_{0} [GeV]; m_{1/2} [GeV]; Neutral LSP",
188 +                     40,200,600,26,140,400);
189 +   plotTools->Area(hnLSP, Mzero, Mhalf, MChi1);
190 +   //hchargedLSP->SetMinimum(-0.01);
191 +   //hchargedLSP->SetMaximum(1.1);
192 +   hnLSP->Draw("colz");
193 +   c1->SaveAs("results_tb50/NeutralLSP_m0_m12_tb50.pdf");
194 +  
195     // Obs. Limit on Number of Signal Events in M0 - M1/2
196     TH2F*hobslimitnsig = new TH2F("obslimitnsig",";m_{0} [GeV]; m_{1/2} [GeV]; 95% CL obs. limit signal events [# ]",
197                       40,200,600,26,140,400);
# Line 197 | Line 223 | int plot(int argc, char** argv)
223     hPLobsexcl->Draw("colz");
224     c1->SaveAs("results_tb50/PL_ObsExclusion_m0_m12_tb50.pdf");
225  
226 +   c1->SetRightMargin ( 0.1 );
227     // TestContours in M0 - M1/2
228     TH2F*texcl = new TH2F("texcl",";m_{0} [GeV]; m_{1/2} [GeV]; 95% CL Expected Exclusion",
229                       40,200,600,26,140,400);
230     TH2F*texpexcl=(TH2F*)texcl->Clone();
231 <   plotTools->Area(texpexcl, Mzero, Mhalf, MCMCExpExclusion);
205 <   TH2F*tobsexcl=(TH2F*)texcl->Clone();
206 <   plotTools->Area(tobsexcl, Mzero, Mhalf, MCMCObsExclusion);
231 >   plotToolsHT->Area(texpexcl, Mzero, Mhalf, NLOExpExclCLp1sigma);
232     std::vector<TGraph*> contours = plotTools->GetContours(texpexcl,3);
208   //std::vector<TGraph*> contours = plotTools->GetContours(tobsexcl,3);
209   //hPLexpexcl
210   //hexcl->Draw("colz");
211   //hexpexcl->Draw("colz");
212   //hobsexcl->Draw("colz");
233     texpexcl->Draw("colz");
234     int col=kBlue-10;
235     for (std::vector<TGraph*>::iterator cont=contours.begin(); cont!=contours.end(); ++cont){
# Line 229 | Line 249 | int plot(int argc, char** argv)
249  
250     // Exclusion in M0 - M1/2
251     TH2F*hexcl = new TH2F("hexcl",";m_{0} [GeV]; m_{1/2} [GeV]; 95% CL Expected Exclusion",
252 <                     40,200,600,26,140,400);
253 <   TGraph * gexpexcl         = plotTools     ->GetContour(hexcl,Mzero,Mhalf,ExpExclCL,       3,0, 2,2);
254 <   TGraph * gobsexcl         = plotTools     ->GetContour(hexcl,Mzero,Mhalf,ObsExclCL,       3,0, 2,1);
255 <   TGraph * gMCMCexpexcl     = plotToolsHT   ->GetContour(hexcl,Mzero,Mhalf,MCMCExpExclusion,3,0, 3,2);
256 <   TGraph * gMCMCobsexcl     = plotToolsHT   ->GetContour(hexcl,Mzero,Mhalf,MCMCObsExclusion,3,0, 3,1);
257 <   TGraph * gCLsExpExclHT    = plotToolsHT   ->GetContour(hexcl,Mzero,Mhalf,ExpExclCL,       3,0, 1,2);
258 <   TGraph * gCLsObsExclHT    = plotToolsHT   ->GetContour(hexcl,Mzero,Mhalf,ObsExclCL,       3,0, 1,1);
259 <   TGraph * gCLsExpExclHTm1  = plotToolsHT   ->GetContour(hexcl,Mzero,Mhalf,ExpExclCLm1sigma,3,0, 5,2);
260 <   TGraph * gCLsExpExclHTp1  = plotToolsHT   ->GetContour(hexcl,Mzero,Mhalf,ExpExclCLp1sigma,3,0, 5,2);
261 <   TGraph * gCLsExp1Sigma    = MakeBand(gCLsExpExclHTp1, gCLsExpExclHTm1);
262 <   hexcl->Draw("colz");  
263 <   if (gCLsExp1Sigma)    gCLsExp1Sigma->Draw("lf");
264 <   if (gexpexcl)         gexpexcl->Draw("l");
265 <   if (gCLsExpExclHT)    gCLsExpExclHT->Draw("l");
266 <   if (gMCMCexpexcl)     gMCMCexpexcl->Draw("l");
267 <   if (gCLsObsExclHT)    gCLsObsExclHT->Draw("l");
268 <   //if (gobsexcl)       gobsexcl->Draw("l");
269 <   //if (gPLobsexcl)     gPLobsexcl->Draw("l");
270 <   //if (gFCobsexcl)     gFCobsexcl->Draw("l");
271 <   //if (gMCMCobsexcl)   gMCMCobsexcl->Draw("l");
272 <   //if (gFCexpexcl)     gFCexpexcl->Draw("l");
273 <   //if (gPLexpexcl)     gPLexpexcl->Draw("l");
274 <   //if (gFCexpexcl)     gFCexpexcl->Draw("l");
252 >                     40,200,600,26,140,450);
253 >   TH2F*hs = new TH2F("hs","",40,200,600,26,140,400);
254 >   TGraph * gexpexcl         = plotTools  ->GetContour(hs,Mzero,Mhalf,NLOExpExclCL,       3,0, 2,2);
255 >   TGraph * gexpexcl_LO      = plotTools  ->GetContour(hs,Mzero,Mhalf,ExpExclCL,          3,0, 2,4);
256 >   TGraph * gobsexcl         = plotTools  ->GetContour(hs,Mzero,Mhalf,NLOObsExclCL,       3,0, 2,1);
257 >   TGraph * gobsexcl_LO      = plotTools  ->GetContour(hs,Mzero,Mhalf,ObsExclCL,          3,0, 2,1);
258 >   TGraph * gMCMCexpexcl     = plotToolsHT->GetContour(hs,Mzero,Mhalf,MCMCExpExclusion,   3,0, 3,2);
259 >   TGraph * gMCMCobsexcl     = plotToolsHT->GetContour(hs,Mzero,Mhalf,MCMCObsExclusion,   3,0, 3,1);
260 >   TGraph * gFCexpexclHT     = plotToolsHT->GetContour(hs,Mzero,Mhalf,NLOFCExpExclusion,  3,0, 3,2);
261 >   TGraph * gFCexpexclHT_LO  = plotToolsHT->GetContour(hs,Mzero,Mhalf,FCExpExclusion,     3,0, 3,4);
262 >   TGraph * gFCexpexclMHT    = plotTools->GetContour(hs,Mzero,Mhalf,NLOFCExpExclusion,    3,0, 3,2);
263 >   TGraph * gFCexpexclMHT_LO = plotTools->GetContour(hs,Mzero,Mhalf,FCExpExclusion,       3,0, 3,4);
264 >   TGraph * gFCobsexclHT     = plotToolsHT->GetContour(hs,Mzero,Mhalf,NLOFCObsExclusion,  3,0, 3,1);
265 >   TGraph * gFCobsexclMHT    = plotToolsHT->GetContour(hs,Mzero,Mhalf,NLOFCObsExclusion,  3,0, 3,1);
266 >   TGraph * gCLsExpExclHT    = plotToolsHT->GetContour(hs,Mzero,Mhalf,NLOExpExclCL,       3,0, 1,2);
267 >   TGraph * gCLsObsExclHT    = plotToolsHT->GetContour(hs,Mzero,Mhalf,NLOObsExclCL,       3,0, 1,1);
268 >   TGraph * gCLsExpExclHT_LO = plotToolsHT->GetContour(hs,Mzero,Mhalf,ExpExclCL,          3,0, 1,4);
269 >   TGraph * gCLsObsExclHT_LO = plotToolsHT->GetContour(hs,Mzero,Mhalf,ObsExclCL,          3,0, 2,1);
270 >   TGraph * gCLsExpExclHTm1  = plotToolsHT->GetContour(hs,Mzero,Mhalf,NLOExpExclCLm1sigma,3,0, 5,2);
271 >   TGraph * gCLsExpExclHTp1  = plotToolsHT->GetContour(hs,Mzero,Mhalf,NLOExpExclCLp1sigma,3,0, 5,2);
272 >   TGraph * gCLsExpExclMHTm1 = plotTools  ->GetContour(hs,Mzero,Mhalf,NLOExpExclCLm1sigma,  3,0, 5,2);
273 >   TGraph * gCLsExpExclMHTp1 = plotTools  ->GetContour(hs,Mzero,Mhalf,NLOExpExclCLp1sigma,  3,0, 5,2);
274 >   TGraph * gCheck1 = (TGraph*)gobsexcl->Clone();
275 >   TGraph * gCheck2 = (TGraph*)gexpexcl->Clone();
276 >   Smooth( gCLsObsExclHT, 27); gCLsObsExclHT->SetLineWidth( 3 );
277 >   Smooth( gCLsExpExclHT, 27 ); gCLsExpExclHT->SetLineWidth( 3 );
278 >   Smooth( gCLsObsExclHT_LO, 27); gCLsObsExclHT_LO->SetLineWidth( 2 );
279 >   Smooth( gCLsExpExclHT_LO, 27 ); gCLsExpExclHT_LO->SetLineWidth( 3 );
280 >   Smooth( gexpexcl, 27 );
281 >   Smooth( gobsexcl_LO, 27 );gobsexcl_LO->SetLineWidth( 2 );
282 >   //Smooth( gobsexcl, 27 );
283 >   Smooth( gobsexcl, 27 );
284 >   Smooth( gexpexcl_LO, 27 );
285 >   Smooth( gFCexpexclHT, 27 );
286 >   Smooth( gFCexpexclHT_LO, 27 );gFCexpexclHT_LO->SetLineWidth( 3 );
287 >   Smooth( gFCexpexclMHT, 27 );
288 >   Smooth( gFCexpexclMHT_LO, 27 );
289 >   Smooth( gFCobsexclHT, 27 );gFCobsexclHT->SetLineWidth( 3 );
290 >   Smooth( gFCobsexclMHT, 27 );
291 >   Smooth( gCLsExpExclHTm1, 27 );
292 >   Smooth( gCLsExpExclHTp1, 27 );
293 >   Smooth( gCLsExpExclMHTm1, 27 );
294 >   Smooth( gCLsExpExclMHTp1, 27 );
295 >   TGraph * CLsObsNLO = plotToolsHT->ChooseBest(gCLsObsExclHT,gobsexcl, gCLsObsExclHT,gobsexcl);
296 >   TGraph * CLsObsLO  = plotToolsHT->ChooseBest(gCLsObsExclHT_LO,gobsexcl_LO, gCLsObsExclHT_LO,gobsexcl_LO);
297 >   TGraph * CLsExpNLO = plotToolsHT->ChooseBest(gCLsExpExclHT,gexpexcl, gCLsExpExclHT,gexpexcl);
298 >   TGraph * CLsExpLO  = plotToolsHT->ChooseBest(gCLsExpExclHT_LO,gexpexcl_LO, gCLsExpExclHT_LO,gexpexcl_LO);
299 >   TGraph * FCExpLO   = plotToolsHT->ChooseBest(gFCexpexclHT_LO,gFCexpexclMHT_LO,gFCexpexclHT_LO,gFCexpexclMHT_LO);
300 >   TGraph * FCExpNLO  = plotToolsHT->ChooseBest(gFCexpexclHT,gFCexpexclMHT,gFCexpexclHT,gFCexpexclMHT);
301 >   TGraph * FCObsNLO  = plotToolsHT->ChooseBest(gFCobsexclHT,gFCobsexclMHT,gFCobsexclHT,gFCobsexclMHT);
302 >   TGraph * gCLsExpExclp1 = plotToolsHT->ChooseBest(gCLsExpExclHTp1,gCLsExpExclMHTp1, gCLsExpExclHTp1,gCLsExpExclMHTp1);
303 >   TGraph * gCLsExpExclm1 = plotToolsHT->ChooseBest(gCLsExpExclHTm1,gCLsExpExclMHTm1, gCLsExpExclHTm1,gCLsExpExclMHTm1);
304 >   TGraph * gCLsExp1Sigma    = MakeBand(gCLsExpExclp1, gCLsExpExclm1);
305 >   hexcl->GetYaxis()->SetTitleOffset(1.3);
306 >   hexcl->GetXaxis()->SetTitleOffset(0.92);
307 >   hexcl->Draw("colz");
308 >   //gCLsExpExclHTp1->Draw("l");
309 >   //gCLsExpExclMHTp1->Draw("l");
310 >   //gCLsExpExclHTm1->Draw("l");
311 >   //gCLsExpExclMHTm1->Draw("l");
312 >   gCLsExp1Sigma->Draw("f");
313     //set old exclusion Limits
314 <   TGraph* LEP_ch = set_lep_ch();
315 <   TGraph* LEP_sl = set_lep_sl();//slepton curve
316 <   TGraph* TEV_sg_cdf = set_tev_sg_cdf();//squark gluino cdf
317 <   TGraph* TEV_sg_d0 = set_tev_sg_d0();//squark gluino d0
318 <   TGraph* TEV_tlp_cdf = set_tev_tlp_cdf();//trilepton cdf
319 <   TGraph* TEV_tlp_d0 = set_tev_tlp_d0();//trilepton d0
320 <   TGraph* stau = set_tev_stau();//stau
321 <   TGraph* TEV_sn_d0_1 = set_sneutrino_d0_1();
322 <   TGraph* TEV_sn_d0_2 = set_sneutrino_d0_2();
323 <   TGraphErrors* First = getObserved_NLOunc();
324 <   TGraphErrors* Second = getExpected_NLOunc();//getLO_jetMultis();
325 <   TGraphErrors* Third = getLO_signalCont();
314 >   TGraph* Atlas = Atlas_m0_m12_tb3_obs();
315 >   Atlas->SetLineColor( 28 );
316 >   TGraph* LEP_ch = set_lep_ch(50);
317 >   TGraph* LEP_sl = set_lep_sl(50);//slepton curve
318 >   TGraph* TEV_sg_cdf = set_tev_sg_cdf(50);//squark gluino cdf
319 >   TGraph* TEV_sg_d0 = set_tev_sg_d0(50);//squark gluino d0
320 >   //TGraph* TEV_tlp_cdf = set_tev_tlp_cdf(10);//trilepton cdf
321 >   //TGraph* TEV_tlp_d0 = set_tev_tlp_d0(10);//trilepton d0
322 >   TGraph* stau = set_tev_stau(50);//stau
323 >   TGraph* TEV_sn_d0_1 = set_sneutrino_d0_1(50);
324 >   TGraph* TEV_sn_d0_2 = set_sneutrino_d0_2(50);
325 >   TGraphErrors* First  = getObserved_NLO_tanBeta50();
326 >   TGraphErrors* Second = getExpected_NLO_tanBeta50();//getLO_jetMultis();
327 >   TGraphErrors* Third  = getLO_tanBeta50();
328     First->GetXaxis()->SetRangeUser(0,505);
329     First->GetYaxis()->SetRangeUser(80,500);
330     First->GetXaxis()->SetTitle("m_{0} (GeV)");
331     First->GetYaxis()->SetTitle("m_{1/2} (GeV)");
332     TSpline3 *sFirst = new TSpline3("sFirst",First);
333     sFirst->SetLineColor(kBlue);
334 <   sFirst->SetLineWidth(3);
334 >   //sFirst->SetLineWidth(3);
335     TSpline3 *sSecond = new TSpline3("sSecond",Second);
336     sSecond->SetLineColor(kBlue);
337     sSecond->SetLineStyle(2);
338 <   sSecond->SetLineWidth(3);
338 >   //sSecond->SetLineWidth(3);
339     TSpline3 *sThird = new TSpline3("sThird",Third);
340 <   sThird->SetLineColor(kGreen+2);
340 >   sThird->SetLineColor(kBlue);
341     sThird->SetLineStyle(4);
342 <   sThird->SetLineWidth(3);
343 <   TEV_sn_d0_1->Draw("fsame");
344 <   TEV_sn_d0_2->Draw("fsame");
285 <   TEV_sg_d0->Draw("fsame");
286 <   TEV_sg_cdf->Draw("fsame");
342 >   //sThird->SetLineWidth(3);
343 >   //TEV_sn_d0_1->Draw("fsame");
344 >   //TEV_sn_d0_2->Draw("fsame"); //only for tb=3
345     LEP_ch->Draw("fsame");
346     LEP_sl->Draw("fsame");
347 <   stau->Draw("fsame");
347 >   //TEV_sg_cdf->Draw("fsame");
348 >   //TEV_sg_cdf->Draw("lsame");
349 >   //TEV_sg_d0->Draw("fsame");
350     sFirst->Draw("same");
351 <   sSecond->Draw("same");
351 >   //sSecond->Draw("same");
352 >   //sThird->Draw("same");
353 >   Atlas->Draw("c,same");
354     TLatex b; b.SetTextSize(0.02); b.SetTextColor(1);
355 <   //b.DrawLatex( 10,420,"#tilde{#tau} LSP");
356 <   //b.DrawLatex(  6,150,"LEP2");
357 <   //b.DrawLatex( 22,138,"#tilde{l}^{#pm}");
358 <   //b.DrawLatex(360,110,"LEP2 #tilde{#chi}^{#pm}");
359 <   //b.DrawLatex(100,140,"CDF");
360 <   b.DrawLatex(230,145,"D0 #tilde{g}, #tilde{q}");
361 <   //b.DrawLatex( 80,180,"D0 #tilde{#nu}");
362 <   TLegend * leg = new TLegend(0.45,0.7,0.85,0.89);
363 <   leg->SetBorderSize(0);leg->SetFillColor(0);
364 <   //if (gobsexcl) leg->AddEntry(gobsexcl,"Observed (MHT, CLs, TLimit)","l");
365 <   if (gexpexcl) leg->AddEntry(gexpexcl,"LO Expected (MHT, CLs, TLimit)","l");
366 <   if (gCLsObsExclHT) leg->AddEntry(gCLsObsExclHT,"LO Observed (HT, CLs, TLimit)","l");
367 <   if (gCLsExpExclHT) leg->AddEntry(gCLsExpExclHT,"LO Expected (HT, CLs, TLimit)","l");
368 <   //if (gPLobsexcl) leg->AddEntry(gPLobsexcl,"Observed (PL, RooStat)","l");
369 <   //if (gPLexpexcl) leg->AddEntry(gPLexpexcl,"Expected (PL, RooStat)","l");
370 <   //if (gFCobsexcl) leg->AddEntry(gFCobsexcl,"Observed (FC, RooStat)","l");
371 <   //if (gFCexpexcl) leg->AddEntry(gFCexpexcl,"Expected (FC, RooStat)","l");
372 <   //if (gMCMCobsexcl) leg->AddEntry(gMCMCobsexcl,"Observed (MHT, MCMC, RooStat)","l");
373 <   if (gMCMCexpexcl) leg->AddEntry(gMCMCexpexcl,"LO Expected (HT, MCMC, RooStat)","l");
374 <   if (sFirst)  leg->AddEntry(sFirst, "RA1 NLO Observed");
375 <   if (sSecond) leg->AddEntry(sSecond,"RA1 NLO Expected");
355 >   TLatex ms; ms.SetTextSize(0.025); ms.SetTextFont(42);//ms.SetTextColor(12);
356 >   ms.DrawLatex(490,458,"tan#beta=50, #mu>0, A_{0}=0");
357 >   TLegend* legexp = new TLegend(0.69,0.77,0.93,0.92,NULL,"brNDC");
358 >   legexp->SetFillColor(0);legexp->SetShadowColor(0);legexp->SetFillStyle(4000);legexp->SetTextFont(42);legexp->SetTextSize(0.025);legexp->SetBorderSize(0);
359 >   //TEV_sg_cdf.SetLineColor(1);  
360 >   legexp->SetHeader("CMS preliminary");
361 >   //legexp->AddEntry(TEV_sg_cdf,"CDF  #tilde{#font[12]{g}}, #tilde{#font[12]{q}}, #scale[0.8]{tan#beta=5, #mu<0}","f");
362 >   //legexp->AddEntry(TEV_sg_d0,"D0   #tilde{#font[12]{g}}, #tilde{#font[12]{q}}, #scale[0.8]{tan#beta=3, #mu<0}","f");  
363 >   //ch_gr.SetLineColor(1);
364 >   legexp->AddEntry(LEP_ch,"LEP2   #tilde{#chi}_{1}^{#pm}","f");  
365 >   //sl_gr.SetLineColor(1);
366 >   //legexp->AddEntry(LEP_sl,"LEP2   #tilde{#font[12]{l}}^{#pm}","f"); //NOT FOR tb=50!
367 >   //if(tanbeta == 3)
368 >   //legexp->AddEntry(TEV_sn_d0_1,"D0  #chi^{#pm}_{1}, #chi^{0}_{2}","f");  
369 >   legexp->AddEntry(sFirst, "CMS #alpha_{T}");
370 >   legexp->AddEntry(Atlas,  "Atlas, #scale[0.8]{tan#beta=3}","l");
371 >   legexp->Draw();
372 >  
373 >   CLsObsNLO->Draw("l");
374 >   CLsObsLO->Draw("l");
375 >   CLsExpNLO->Draw("l");
376 >   //FCExpNLO->Draw("l");
377 >   stau->Draw("fsame");
378 >   b.DrawLatex( 220,420,"#tilde{#tau} LSP");
379 >
380 >   //constant ssqquark and gluino lines
381 >   TF1* lnsq[4];
382 >   TF1* lngl[4];
383 >   TLatex sqt; sqt.SetTextSize(0.02); sqt.SetTextAngle(-22);sqt.SetTextColor(kGray+2);
384 >   sqt.DrawLatex(270,180,"#font[92]{#tilde{q}(500)GeV}");
385 >   sqt.DrawLatex(327,255,"#font[92]{#tilde{q}(650)GeV}");
386 >   sqt.DrawLatex(390,348,"#font[92]{#tilde{q}(800)GeV}");
387 >   TLatex glt; glt.SetTextSize(0.02); sqt.SetTextAngle(-4); glt.SetTextColor(kGray+2);
388 >   glt.DrawLatex(528,195,"#font[92]{#tilde{g}(500)GeV}");
389 >   glt.DrawLatex(528,258,"#font[92]{#tilde{g}(650)GeV}");
390 >   glt.DrawLatex(528,322,"#font[92]{#tilde{g}(800)GeV}");
391 >   int tanBeta_=50;
392 >   for(int i = 0; i < 4; i++){
393 >    lnsq[i] = constant_squark(tanBeta_,i);
394 >    lngl[i] = constant_gluino(tanBeta_,i);
395 >    lngl[i]->Draw("same");  
396 >    lnsq[i]->Draw("same");
397 >   }
398 >   TLegend * leg = new TLegend(0.38,0.8,0.73,0.92);
399 >   leg->SetBorderSize(0);leg->SetFillColor(0);leg->SetFillStyle(4000);leg->SetTextFont(42);legexp->SetTextSize(0.025);
400 >   TGraph * expLeg = (TGraph*)CLsExpNLO->Clone();expLeg->SetFillStyle(gCLsExp1Sigma->GetFillStyle());expLeg->SetFillColor(gCLsExp1Sigma->GetFillColor());
401 >   leg->SetHeader("L_{int} = 36/pb, #sqrt{s} = 7 TeV");
402 >   leg->AddEntry(CLsObsNLO,"Observed, NLO","l");
403 >   leg->AddEntry(CLsObsLO, "Observed, LO","l");
404 >   leg->AddEntry(expLeg,   "Expected #pm 1#sigma, NLO","lf");
405 >   //leg->AddEntry(FCExpLO,  "Expected, FC, NLO","l");
406     leg->Draw();
407     gPad->RedrawAxis();
408 <   c1->SaveAs("results_tb50/Exclusion_m0_m12_tb50.pdf");
408 >   c1->SaveAs("results/Exclusion_m0_m12_tb50.pdf");
409 >
410 >
411 >   hexcl->Draw("");
412 >   gCLsExp1Sigma->SetName("CLsNLO_Exp1SigmaUncertaintyTb50");
413 >   CLsObsNLO->SetName("CLsNLO_ObservedTb50");
414 >   CLsExpNLO->SetName("CLsNLO_ExpectedTb50");
415 >   CLsExpLO->SetName("CLsLO_ExpectedTb50");
416 >   gCLsExp1Sigma->Draw("l");
417 >   CLsObsNLO->Draw("l");
418 >   CLsExpNLO->Draw("l");
419 >   CLsObsLO->Draw("l");
420 >   c1->SaveAs("results/LimitContours_tb50.C");
421 >
422 >
423  
424     // Signal Contamination in M0 - M1/2
425     c1->SetLogz(0);
# Line 337 | Line 443 | int plot(int argc, char** argv)
443     if (gobsexcl)    gobsexcl->Draw("l");
444     c1->SaveAs("results_tb50/SignalContamination_MHT_m0_m12_tb50.pdf");
445    
446 +   // Signal JEC Uncertainty  MHT  
447 +   c1->SetLogz(0);
448 +   TH2F*hsig_jec_mht = new TH2F("sigjecmht",";m_{0} [GeV]; m_{1/2} [GeV]; Signal JEC uncertainty",
449 +                     40,200,600,26,140,400);
450 +   plotTools->Area(hsig_jec_mht, Mzero, Mhalf, SignalUncertJEC);
451 +   hsig_jec_mht->SetMinimum(0.0);
452 +   hsig_jec_mht->SetMaximum(0.25);
453 +   hsig_jec_mht->SetContour(10);
454 +   hsig_jec_mht->Draw("colz");
455 +   if (gobsexcl)    gobsexcl->Draw("l");
456 +   c1->SaveAs("results_tb50/SigJEC_MHT_m0_m12_tb50.pdf");
457 +  
458 +   // Signal JEC Uncertainty  HT  
459 +   c1->SetLogz(0);
460 +   TH2F*hsig_jec_ht = new TH2F("sigjecht",";m_{0} [GeV]; m_{1/2} [GeV]; Signal JEC uncertainty",
461 +                     40,200,600,26,140,400);
462 +   plotTools->Area(hsig_jec_ht, Mzero, Mhalf, SignalUncertJEC);
463 +   hsig_jec_ht->SetMinimum(0.0);
464 +   hsig_jec_ht->SetMaximum(0.25);
465 +   hsig_jec_ht->SetContour(10);
466 +   hsig_jec_ht->Draw("colz");
467 +   if (gCLsObsExclHT)    gCLsObsExclHT->Draw("l");
468 +   c1->SaveAs("results_tb50/SigJEC_HT_m0_m12_tb50.pdf");
469 +  
470 +
471 +   // Signal MuIso Uncertainty  MHT  
472 +   c1->SetLogz(0);
473 +   TH2F*hsig_MuIso_mht = new TH2F("sigMuIsomht",";m_{0} [GeV]; m_{1/2} [GeV]; Signal #mu_{iso} uncertainty",
474 +                     40,200,600,26,140,400);
475 +   plotTools->Area(hsig_MuIso_mht, Mzero, Mhalf, SignalUncertMuIso);
476 +   hsig_MuIso_mht->SetMinimum(0.0);
477 +   hsig_MuIso_mht->SetMaximum(0.05);
478 +   hsig_MuIso_mht->SetContour(5);
479 +   hsig_MuIso_mht->Draw("colz");
480 +   if (gobsexcl)    gobsexcl->Draw("l");
481 +   c1->SaveAs("results_tb50/SigMuIso_MHT_m0_m12_tb50.pdf");
482 +  
483 +   // Signal MuIso Uncertainty  HT  
484 +   c1->SetLogz(0);
485 +   TH2F*hsig_MuIso_ht = new TH2F("sigMuIsoht",";m_{0} [GeV]; m_{1/2} [GeV]; Signal #mu_{iso} uncertainty",
486 +                     40,200,600,26,140,400);
487 +   plotTools->Area(hsig_MuIso_ht, Mzero, Mhalf, SignalUncertMuIso);
488 +   hsig_MuIso_ht->SetMinimum(0.0);
489 +   hsig_MuIso_ht->SetMaximum(0.05);
490 +   hsig_MuIso_ht->SetContour(5);
491 +   hsig_MuIso_ht->Draw("colz");
492 +   if (gCLsObsExclHT)    gCLsObsExclHT->Draw("l");
493 +   c1->SaveAs("results_tb50/SigMuIso_HT_m0_m12_tb50.pdf");
494 +  
495 +
496 +   // Signal kFactor Uncertainty  MHT  
497 +   c1->SetLogz(0);
498 +   TH2F*hsig_kFactor_mht = new TH2F("sigkFactormht",";m_{0} [GeV]; m_{1/2} [GeV]; Signal #mu_{iso} uncertainty",
499 +                     40,200,600,26,140,400);
500 +   plotTools->Area(hsig_kFactor_mht, Mzero, Mhalf, SignalUncertKfactor);
501 +   hsig_kFactor_mht->SetMinimum(0.1);
502 +   hsig_kFactor_mht->SetMaximum(0.2);
503 +   hsig_kFactor_mht->SetContour(10);
504 +   hsig_kFactor_mht->Draw("colz");
505 +   if (gobsexcl)    gobsexcl->Draw("l");
506 +   c1->SaveAs("results_tb50/SigkFactor_MHT_m0_m12_tb50.pdf");
507 +  
508 +   // Signal kFactor Uncertainty  HT  
509 +   c1->SetLogz(0);
510 +   TH2F*hsig_kFactor_ht = new TH2F("sigkFactorht",";m_{0} [GeV]; m_{1/2} [GeV]; Signal #mu_{iso} uncertainty",
511 +                     40,200,600,26,140,400);
512 +   plotTools->Area(hsig_kFactor_ht, Mzero, Mhalf, SignalUncertKfactor);
513 +   hsig_kFactor_ht->SetMinimum(0.1);
514 +   hsig_kFactor_ht->SetMaximum(0.2);
515 +   hsig_kFactor_ht->SetContour(10);
516 +   hsig_kFactor_ht->Draw("colz");
517 +   if (gCLsObsExclHT)    gCLsObsExclHT->Draw("l");
518 +   c1->SaveAs("results_tb50/SigkFactor_HT_m0_m12_tb50.pdf");
519 +  
520  
341 /*
521     //-----------------------------------------------------------------------------------
522     c1->SetLogz(1);
523  
# Line 347 | Line 526 | int plot(int argc, char** argv)
526  
527     // cross-section in squark - gluino mass
528     TH2F*hxsec_qg = new TH2F("xsec_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; cross section [pb]",
529 <                     60,200,1400,50,200,1200);
529 >                     40,200,900,30,200,900);
530     plotTools->Area(hxsec_qg, MSquarkL, MGluino, Xsection);
531     hxsec_qg->SetMinimum(0.01);
532     hxsec_qg->Draw("colz");
# Line 357 | Line 536 | int plot(int argc, char** argv)
536    
537     // Observed Limit in squark - gluino mass
538     TH2F*hobslimit_qg = new TH2F("obslimit_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Limit [pb]",
539 <                     60,200,1400,50,200,1200);
539 >                     40,200,900,30,200,900);
540     plotTools->Area(hobslimit_qg, MSquarkL, MGluino, ObsXsecLimit);
541     hobslimit_qg->SetMinimum(0.01);
542     hobslimit_qg->Draw("colz");
# Line 365 | Line 544 | int plot(int argc, char** argv)
544    
545     // Expected Limit in squark - gluino mass
546     TH2F*hexplimit_qg = new TH2F("explimit_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Expected Limit [pb]",
547 <                     60,200,1400,50,200,1200);
547 >                     40,200,900,30,200,900);
548     plotTools->Area(hexplimit_qg, MSquarkL, MGluino, ExpXsecLimit);
549     hexplimit_qg->SetMinimum(0.01);
550     hexplimit_qg->Draw("colz");
# Line 373 | Line 552 | int plot(int argc, char** argv)
552    
553     // Signal Acceptance in squark - gluino mass
554     TH2F*hsigacc_qg = new TH2F("sigacc_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; Signal Acceptance",
555 <                     60,200,1400,50,200,1200);
555 >                     40,200,900,30,200,900);
556     plotTools->Area(hsigacc_qg, MSquarkL, MGluino, SignalAcceptance);
557     hsigacc_qg->SetMinimum(0.01);
558     hsigacc_qg->SetMaximum(1.0);
# Line 383 | Line 562 | int plot(int argc, char** argv)
562     // Exp. Limit on Number of Signal Events in squark - gluino mass
563     c1->SetLogz(0);
564     TH2F*hexplimitnsig_qg = new TH2F("explimitnsig_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL exp. limit signal events [# ]",
565 <                     60,200,1400,50,200,1200);
565 >                     40,200,900,30,200,900);
566     plotTools->Area(hexplimitnsig_qg, MSquarkL, MGluino, ExpNSignLimit);
567     hexplimitnsig_qg->SetMinimum(0.0);
568     hexplimitnsig_qg->SetMaximum(20);
# Line 392 | Line 571 | int plot(int argc, char** argv)
571    
572     // Obs. Limit on Number of Signal Events in squark - gluino mass
573     TH2F*hobslimitnsig_qg = new TH2F("obslimitnsig_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL obs. limit signal events [# ]",
574 <                     60,200,1400,50,200,1200);
574 >                     40,200,900,30,200,900);
575     plotTools->Area(hobslimitnsig_qg, MSquarkL, MGluino, ObsNSignLimit);
576     hobslimitnsig_qg->SetMinimum(0.0);
577     hobslimitnsig_qg->SetMaximum(20);
# Line 402 | Line 581 | int plot(int argc, char** argv)
581     c1->SetLogz(0);
582     // Expected Exclusion in squark - gluino mass
583     TH2F*hexpexcl_qg = new TH2F("expexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Expected Exclusion",
584 <                     60,200,1400,50,200,1200);
584 >                     40,200,900,30,200,900);
585     plotTools->Area(hexpexcl_qg, MSquarkL, MGluino, ExpExclCL);
586     hexpexcl_qg->Draw("colz");
587     c1->SaveAs("results_tb50/ExpExclusion_mSql_mGl_tb50.pdf");
588    
589     // Observed Exclusion in squark - gluino mass
590     TH2F*hobsexcl_qg = new TH2F("obsexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
591 <                     60,200,1400,50,200,1200);
591 >                     40,200,900,30,200,900);
592     plotTools->Area(hobsexcl_qg, MSquarkL, MGluino, ObsExclCL);
593     //std::vector<TGraph *> vobsexcl_qg = plotTools->GetContours(hobsexcl_qg);
594     hobsexcl_qg->Draw("colz");
# Line 421 | Line 600 | int plot(int argc, char** argv)
600    
601     // TestContours in M0 - M1/2
602     TH2F*texcl_qg = new TH2F("texcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
603 <                     60,200,1400,50,200,1200);
603 >                     40,200,900,30,200,900);
604     TH2F*tPLobsexcl_qg=(TH2F*)texcl_qg->Clone();
605     plotTools->Area(tPLobsexcl_qg, MSquarkL, MGluino, PLObsExclusion);
606     TH2F*tPLexpexcl_qg=(TH2F*)texcl_qg->Clone();
# Line 452 | Line 631 | int plot(int argc, char** argv)
631  
632     // Observed Exclusion in squark - gluino mass
633     TH2F*hPLobsexcl_qg = new TH2F("plobsexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
634 <                     60,200,1400,50,200,1200);
634 >                     40,200,900,30,200,900);
635     plotTools->Area(hPLobsexcl_qg, MSquarkL, MGluino, PLObsExclusion);
636     //hPLobsexcl_qg->Draw("colz");
637     //c1->SaveAs("results_tb50/PL_ObsExclusion_mSql_mGl_tb50.pdf");
638    
639  
640  
462
463
641     // Exclusion in squark - gluino mass ----------------------------------------
642     TH2F*hexcl_qg = new TH2F("hexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
643 <                     60,200,1400,50,200,1200);
644 <   TGraph * gexpexcl_qg = plotTools->GetContour(hexpexcl_qg,3,0);
645 <   if (gexpexcl_qg) gexpexcl_qg->SetLineStyle(2);
646 <   TGraph * gobsexcl_qg = plotTools->GetContour(hobsexcl_qg,3,0);
647 <   TH2F*hPLexpexcl_qg=(TH2F*)hexcl_qg->Clone();
648 <   plotTools->Area(hPLexpexcl_qg, MSquarkL, MGluino, PLExpExclusion);  
649 <   TGraph * gPLexpexcl_qg = plotTools->GetContour(hPLexpexcl_qg,3,0);
650 <   if (gPLexpexcl_qg)   {gPLexpexcl_qg->SetLineStyle(2);gPLexpexcl_qg->SetLineColor(2);}
651 <   TGraph * gPLobsexcl_qg = plotTools->GetContour(hPLobsexcl_qg,3,0);
652 <   if (gPLobsexcl_qg) gPLobsexcl_qg->SetLineColor(2);
653 <   TH2F*hCLsExpHT_qg=(TH2F*)hexcl_qg->Clone();
654 <   TH2F*hCLsObsHT_qg=(TH2F*)hexcl_qg->Clone();
478 <   plotToolsHT->Area(hCLsExpHT_qg, MSquarkL, MGluino, ExpExclCL);
479 <   plotToolsHT->Area(hCLsObsHT_qg, MSquarkL, MGluino, ObsExclCL);
480 <   TGraph * gCLsExpExclHT_qg = plotTools->GetContour(hCLsExpHT_qg,3,0);
481 <   TGraph * gCLsObsExclHT_qg = plotTools->GetContour(hCLsObsHT_qg,3,0);
482 <   if (gCLsObsExclHT_qg) gCLsObsExclHT_qg->SetLineColor(2);
483 <   if (gCLsExpExclHT_qg) {gCLsExpExclHT_qg->SetLineStyle(2);gCLsExpExclHT_qg->SetLineColor(2);}
643 >                     40,200,900,30,200,900);
644 >   TGraph * gexpexcl_qg         = plotTools->GetContour(hexcl_qg,MSquarkL,MGluino,  NLOExpExclCL,       3,0, 2,2);
645 >   TGraph * gexpexcl_qg_LO      = plotTools->GetContour(hexcl_qg,MSquarkL,MGluino,  ExpExclCL,       3,0, 2,4);
646 >   TGraph * gobsexcl_qg         = plotTools->GetContour(hexcl_qg,MSquarkL,MGluino,  NLOObsExclCL,       3,0, 2,1);
647 >   TGraph * gMCMCexpexcl_qg     = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,MCMCExpExclusion,3,0, 3,2);
648 >   TGraph * gMCMCobsexcl_qg     = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,MCMCObsExclusion,3,0, 3,1);
649 >   TGraph * gCLsExpExclHT_qg    = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,NLOExpExclCL,       3,0, 1,2);
650 >   TGraph * gCLsExpExclHT_qg_LO = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,ExpExclCL,       3,0, 1,4);
651 >   TGraph * gCLsObsExclHT_qg    = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,NLOObsExclCL,       3,0, 1,1);
652 >   TGraph * gCLsExpExclHTm1_qg  = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,NLOExpExclCLm1sigma,3,0, 5,2);
653 >   TGraph * gCLsExpExclHTp1_qg  = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,NLOExpExclCLp1sigma,3,0, 5,2);
654 >   TGraph * gCLsExp1Sigma_qg    = MakeBand(gCLsExpExclHTp1_qg, gCLsExpExclHTm1_qg);
655     hexcl_qg->Draw("");
656 <   if (gobsexcl_qg) gobsexcl_qg->Draw("l");
656 >   //
657 >   if (gCLsExp1Sigma_qg) gCLsExp1Sigma_qg->Draw("lf");  
658 >   if (gobsexcl_qg)      gobsexcl_qg->Draw("l");
659     if (gCLsObsExclHT_qg) gCLsObsExclHT_qg->Draw("l");
660 <   if (gexpexcl_qg) gexpexcl_qg->Draw("l");
661 <   //if (gPLobsexcl_qg) gPLobsexcl_qg->Draw("l");
489 <   //if (gPLexpexcl_qg) gPLexpexcl_qg->Draw("l");
660 >   if (gexpexcl_qg)      gexpexcl_qg->Draw("l");
661 >   if (gexpexcl_qg_LO)   gexpexcl_qg_LO->Draw("l");
662     if (gCLsExpExclHT_qg) gCLsExpExclHT_qg->Draw("l");
663 +   if (gCLsExpExclHT_qg_LO) gCLsExpExclHT_qg_LO->Draw("l");
664 +   //
665     TLegend * leg_qg = new TLegend(0.45,0.78,0.85,0.89);
666 <   leg_qg->SetBorderSize(0);leg_qg->SetFillColor(0);
667 <   if (gobsexcl_qg) leg_qg->AddEntry(gobsexcl_qg,"Observed (MHT, CLs, TLimit)","l");
668 <   if (gexpexcl_qg) leg_qg->AddEntry(gexpexcl_qg,"Expected (MHT, CLs, TLimit)","l");
669 <   if (gCLsObsExclHT_qg) leg_qg->AddEntry(gCLsObsExclHT_qg,"Observed (HT, CLs, TLimit)","l");
670 <   if (gCLsExpExclHT_qg) leg_qg->AddEntry(gCLsExpExclHT_qg,"Expected (HT, CLs, TLimit)","l");
666 >   leg_qg->SetBorderSize(0);leg_qg->SetFillColor(0);leg->SetTextFont(42);
667 >   TGraph * expLeg_qg = (TGraph*)gCLsExpExclHT_qg->Clone();expLeg_qg->SetFillStyle(gCLsExp1Sigma_qg->GetFillStyle());expLeg_qg->SetFillColor(gCLsExp1Sigma_qg->GetFillColor());
668 >   if (gobsexcl_qg) leg_qg->AddEntry(gobsexcl_qg,"NLO Observed (MHT, CLs)","l");
669 >   if (gexpexcl_qg) leg_qg->AddEntry(gexpexcl_qg,"NLO Expected (MHT, CLs)","l");
670 >   if (gexpexcl_qg_LO) leg_qg->AddEntry(gexpexcl_qg_LO,"LO Expected (MHT, CLs)","l");
671 >   if (gCLsObsExclHT_qg) leg_qg->AddEntry(gCLsObsExclHT_qg,"NLO Observed (HT, CLs)","l");
672 >   if (gCLsExpExclHT_qg) leg_qg->AddEntry(expLeg_qg,"NLO Expected (HT, CLs)","lf");
673 >   if (gCLsExpExclHT_qg_LO) leg_qg->AddEntry(gCLsExpExclHT_qg_LO,"LO Expected (HT, CLs)","l");
674     //if (gPLobsexcl_qg) leg_qg->AddEntry(gPLobsexcl_qg,"Observed (PL, RooStat)","l");
675     //if (gPLexpexcl_qg) leg_qg->AddEntry(gPLexpexcl_qg,"Expected (PL, RooStat)","l");
676     leg_qg->Draw();
677     c1->SaveAs("results_tb50/Exclusion_mSql_mGl_tb50.pdf");
678 +   //c1->SaveAs("plot_tb10.pdf");
679 +
680 +
681    
682     //c1->SaveAs("plot_tb50.pdf");
503 */
683     c1->SetLogy(1);
684     c1->SetLogx(1);
685     TH2F*hUncertScan = new TH2F("hUncertScan",";relative signal uncertainty; number of signal events",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines