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.3 by auterman, Wed Feb 9 21:00:29 2011 UTC vs.
Revision 1.4 by auterman, Sun Feb 13 14:39:33 2011 UTC

# Line 89 | Line 89 | int plot(int argc, char** argv)
89     //Replace read limits with specific numbers
90     //genpoints->OverwriteLimits("ABCD_MHT");
91    
92 <   genpoints->FillGeneratorMasses("tb50_mu1_a0_massscan.dat");
92 >   genpoints->FillGeneratorMasses("GenScan_tb50.dat");
93     genpoints->match();
94 <   genpointsHT->FillGeneratorMasses("tb50_mu1_a0_massscan.dat");
94 >   genpointsHT->FillGeneratorMasses("GenScan_tb50.dat");
95     genpointsHT->match();
96  
97     //the plotting ----------------------------------------------------------------------
# Line 282 | Line 282 | int plot(int argc, char** argv)
282     sThird->SetLineWidth(3);
283     TEV_sn_d0_1->Draw("fsame");
284     TEV_sn_d0_2->Draw("fsame");
285 <   //TEV_sg_d0->Draw("fsame");
286 <   //TEV_sg_cdf->Draw("fsame");
285 >   TEV_sg_d0->Draw("fsame");
286 >   TEV_sg_cdf->Draw("fsame");
287     LEP_ch->Draw("fsame");
288     LEP_sl->Draw("fsame");
289     stau->Draw("fsame");
# Line 292 | Line 292 | int plot(int argc, char** argv)
292     sThird->Draw("same");
293     TLatex b; b.SetTextSize(0.02); b.SetTextColor(1);
294     //b.DrawLatex( 10,420,"#tilde{#tau} LSP");
295 <   //b.DrawLatex(  6,150,"LEP2");
295 >   b.DrawLatex(230,145,"LEP2");
296     //b.DrawLatex( 22,138,"#tilde{l}^{#pm}");
297     //b.DrawLatex(360,110,"LEP2 #tilde{#chi}^{#pm}");
298     //b.DrawLatex(100,140,"CDF");
299 <   b.DrawLatex(230,145,"D0 #tilde{g}, #tilde{q}");
299 >   //b.DrawLatex(230,145,"D0 #tilde{g}, #tilde{q}");
300     //b.DrawLatex( 80,180,"D0 #tilde{#nu}");
301     TLegend * leg = new TLegend(0.45,0.7,0.85,0.89);
302     leg->SetBorderSize(0);leg->SetFillColor(0);
# Line 340 | Line 340 | int plot(int argc, char** argv)
340     c1->SaveAs("results_tb50/SignalContamination_MHT_m0_m12_tb50.pdf");
341    
342  
343 /*
343     //-----------------------------------------------------------------------------------
344     c1->SetLogz(1);
345  
# Line 349 | Line 348 | int plot(int argc, char** argv)
348  
349     // cross-section in squark - gluino mass
350     TH2F*hxsec_qg = new TH2F("xsec_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; cross section [pb]",
351 <                     60,200,1400,50,200,1200);
351 >                     40,200,900,30,200,900);
352     plotTools->Area(hxsec_qg, MSquarkL, MGluino, Xsection);
353     hxsec_qg->SetMinimum(0.01);
354     hxsec_qg->Draw("colz");
# Line 359 | Line 358 | int plot(int argc, char** argv)
358    
359     // Observed Limit in squark - gluino mass
360     TH2F*hobslimit_qg = new TH2F("obslimit_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Limit [pb]",
361 <                     60,200,1400,50,200,1200);
361 >                     40,200,900,30,200,900);
362     plotTools->Area(hobslimit_qg, MSquarkL, MGluino, ObsXsecLimit);
363     hobslimit_qg->SetMinimum(0.01);
364     hobslimit_qg->Draw("colz");
# Line 367 | Line 366 | int plot(int argc, char** argv)
366    
367     // Expected Limit in squark - gluino mass
368     TH2F*hexplimit_qg = new TH2F("explimit_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Expected Limit [pb]",
369 <                     60,200,1400,50,200,1200);
369 >                     40,200,900,30,200,900);
370     plotTools->Area(hexplimit_qg, MSquarkL, MGluino, ExpXsecLimit);
371     hexplimit_qg->SetMinimum(0.01);
372     hexplimit_qg->Draw("colz");
# Line 375 | Line 374 | int plot(int argc, char** argv)
374    
375     // Signal Acceptance in squark - gluino mass
376     TH2F*hsigacc_qg = new TH2F("sigacc_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; Signal Acceptance",
377 <                     60,200,1400,50,200,1200);
377 >                     40,200,900,30,200,900);
378     plotTools->Area(hsigacc_qg, MSquarkL, MGluino, SignalAcceptance);
379     hsigacc_qg->SetMinimum(0.01);
380     hsigacc_qg->SetMaximum(1.0);
# Line 385 | Line 384 | int plot(int argc, char** argv)
384     // Exp. Limit on Number of Signal Events in squark - gluino mass
385     c1->SetLogz(0);
386     TH2F*hexplimitnsig_qg = new TH2F("explimitnsig_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL exp. limit signal events [# ]",
387 <                     60,200,1400,50,200,1200);
387 >                     40,200,900,30,200,900);
388     plotTools->Area(hexplimitnsig_qg, MSquarkL, MGluino, ExpNSignLimit);
389     hexplimitnsig_qg->SetMinimum(0.0);
390     hexplimitnsig_qg->SetMaximum(20);
# Line 394 | Line 393 | int plot(int argc, char** argv)
393    
394     // Obs. Limit on Number of Signal Events in squark - gluino mass
395     TH2F*hobslimitnsig_qg = new TH2F("obslimitnsig_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL obs. limit signal events [# ]",
396 <                     60,200,1400,50,200,1200);
396 >                     40,200,900,30,200,900);
397     plotTools->Area(hobslimitnsig_qg, MSquarkL, MGluino, ObsNSignLimit);
398     hobslimitnsig_qg->SetMinimum(0.0);
399     hobslimitnsig_qg->SetMaximum(20);
# Line 404 | Line 403 | int plot(int argc, char** argv)
403     c1->SetLogz(0);
404     // Expected Exclusion in squark - gluino mass
405     TH2F*hexpexcl_qg = new TH2F("expexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Expected Exclusion",
406 <                     60,200,1400,50,200,1200);
406 >                     40,200,900,30,200,900);
407     plotTools->Area(hexpexcl_qg, MSquarkL, MGluino, ExpExclCL);
408     hexpexcl_qg->Draw("colz");
409     c1->SaveAs("results_tb50/ExpExclusion_mSql_mGl_tb50.pdf");
410    
411     // Observed Exclusion in squark - gluino mass
412     TH2F*hobsexcl_qg = new TH2F("obsexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
413 <                     60,200,1400,50,200,1200);
413 >                     40,200,900,30,200,900);
414     plotTools->Area(hobsexcl_qg, MSquarkL, MGluino, ObsExclCL);
415     //std::vector<TGraph *> vobsexcl_qg = plotTools->GetContours(hobsexcl_qg);
416     hobsexcl_qg->Draw("colz");
# Line 423 | Line 422 | int plot(int argc, char** argv)
422    
423     // TestContours in M0 - M1/2
424     TH2F*texcl_qg = new TH2F("texcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
425 <                     60,200,1400,50,200,1200);
425 >                     40,200,900,30,200,900);
426     TH2F*tPLobsexcl_qg=(TH2F*)texcl_qg->Clone();
427     plotTools->Area(tPLobsexcl_qg, MSquarkL, MGluino, PLObsExclusion);
428     TH2F*tPLexpexcl_qg=(TH2F*)texcl_qg->Clone();
# Line 454 | Line 453 | int plot(int argc, char** argv)
453  
454     // Observed Exclusion in squark - gluino mass
455     TH2F*hPLobsexcl_qg = new TH2F("plobsexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
456 <                     60,200,1400,50,200,1200);
456 >                     40,200,900,30,200,900);
457     plotTools->Area(hPLobsexcl_qg, MSquarkL, MGluino, PLObsExclusion);
458     //hPLobsexcl_qg->Draw("colz");
459     //c1->SaveAs("results_tb50/PL_ObsExclusion_mSql_mGl_tb50.pdf");
460    
461  
462  
464
465
463     // Exclusion in squark - gluino mass ----------------------------------------
464     TH2F*hexcl_qg = new TH2F("hexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
465 <                     60,200,1400,50,200,1200);
466 <   TGraph * gexpexcl_qg = plotTools->GetContour(hexpexcl_qg,3,0);
467 <   if (gexpexcl_qg) gexpexcl_qg->SetLineStyle(2);
468 <   TGraph * gobsexcl_qg = plotTools->GetContour(hobsexcl_qg,3,0);
469 <   TH2F*hPLexpexcl_qg=(TH2F*)hexcl_qg->Clone();
470 <   plotTools->Area(hPLexpexcl_qg, MSquarkL, MGluino, PLExpExclusion);  
471 <   TGraph * gPLexpexcl_qg = plotTools->GetContour(hPLexpexcl_qg,3,0);
472 <   if (gPLexpexcl_qg)   {gPLexpexcl_qg->SetLineStyle(2);gPLexpexcl_qg->SetLineColor(2);}
473 <   TGraph * gPLobsexcl_qg = plotTools->GetContour(hPLobsexcl_qg,3,0);
474 <   if (gPLobsexcl_qg) gPLobsexcl_qg->SetLineColor(2);
478 <   TH2F*hCLsExpHT_qg=(TH2F*)hexcl_qg->Clone();
479 <   TH2F*hCLsObsHT_qg=(TH2F*)hexcl_qg->Clone();
480 <   plotToolsHT->Area(hCLsExpHT_qg, MSquarkL, MGluino, ExpExclCL);
481 <   plotToolsHT->Area(hCLsObsHT_qg, MSquarkL, MGluino, ObsExclCL);
482 <   TGraph * gCLsExpExclHT_qg = plotTools->GetContour(hCLsExpHT_qg,3,0);
483 <   TGraph * gCLsObsExclHT_qg = plotTools->GetContour(hCLsObsHT_qg,3,0);
484 <   if (gCLsObsExclHT_qg) gCLsObsExclHT_qg->SetLineColor(2);
485 <   if (gCLsExpExclHT_qg) {gCLsExpExclHT_qg->SetLineStyle(2);gCLsExpExclHT_qg->SetLineColor(2);}
465 >                     40,200,900,30,200,900);
466 >   TGraph * gexpexcl_qg         = plotTools->GetContour(hexcl_qg,MSquarkL,MGluino,ExpExclCL,       3,0, 2,2);
467 >   TGraph * gobsexcl_qg         = plotTools->GetContour(hexcl_qg,MSquarkL,MGluino,ObsExclCL,       3,0, 2,1);
468 >   TGraph * gMCMCexpexcl_qg     = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,MCMCExpExclusion,3,0, 3,2);
469 >   TGraph * gMCMCobsexcl_qg     = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,MCMCObsExclusion,3,0, 3,1);
470 >   TGraph * gCLsExpExclHT_qg    = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,ExpExclCL,       3,0, 1,2);
471 >   TGraph * gCLsObsExclHT_qg    = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,ObsExclCL,       3,0, 1,1);
472 >   TGraph * gCLsExpExclHTm1_qg  = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,ExpExclCLm1sigma,3,0, 5,2);
473 >   TGraph * gCLsExpExclHTp1_qg  = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,ExpExclCLp1sigma,3,0, 5,2);
474 >   TGraph * gCLsExp1Sigma_qg    = MakeBand(gCLsExpExclHTp1_qg, gCLsExpExclHTm1_qg);
475     hexcl_qg->Draw("");
476 <   if (gobsexcl_qg) gobsexcl_qg->Draw("l");
476 >   //
477 >   if (gCLsExp1Sigma_qg) gCLsExp1Sigma_qg->Draw("lf");  
478 >   if (gobsexcl_qg)      gobsexcl_qg->Draw("l");
479     if (gCLsObsExclHT_qg) gCLsObsExclHT_qg->Draw("l");
480 <   if (gexpexcl_qg) gexpexcl_qg->Draw("l");
490 <   //if (gPLobsexcl_qg) gPLobsexcl_qg->Draw("l");
491 <   //if (gPLexpexcl_qg) gPLexpexcl_qg->Draw("l");
480 >   if (gexpexcl_qg)      gexpexcl_qg->Draw("l");
481     if (gCLsExpExclHT_qg) gCLsExpExclHT_qg->Draw("l");
482 +   //
483     TLegend * leg_qg = new TLegend(0.45,0.78,0.85,0.89);
484     leg_qg->SetBorderSize(0);leg_qg->SetFillColor(0);
485 <   if (gobsexcl_qg) leg_qg->AddEntry(gobsexcl_qg,"Observed (MHT, CLs, TLimit)","l");
486 <   if (gexpexcl_qg) leg_qg->AddEntry(gexpexcl_qg,"Expected (MHT, CLs, TLimit)","l");
487 <   if (gCLsObsExclHT_qg) leg_qg->AddEntry(gCLsObsExclHT_qg,"Observed (HT, CLs, TLimit)","l");
488 <   if (gCLsExpExclHT_qg) leg_qg->AddEntry(gCLsExpExclHT_qg,"Expected (HT, CLs, TLimit)","l");
485 >   if (gobsexcl_qg) leg_qg->AddEntry(gobsexcl_qg,"LO Observed (MHT, CLs)","l");
486 >   if (gexpexcl_qg) leg_qg->AddEntry(gexpexcl_qg,"LO Expected (MHT, CLs)","l");
487 >   if (gCLsObsExclHT_qg) leg_qg->AddEntry(gCLsObsExclHT_qg,"LO Observed (HT, CLs)","l");
488 >   if (gCLsExpExclHT_qg) leg_qg->AddEntry(gCLsExpExclHT_qg,"LO Expected (HT, CLs)","l");
489     //if (gPLobsexcl_qg) leg_qg->AddEntry(gPLobsexcl_qg,"Observed (PL, RooStat)","l");
490     //if (gPLexpexcl_qg) leg_qg->AddEntry(gPLexpexcl_qg,"Expected (PL, RooStat)","l");
491     leg_qg->Draw();
492     c1->SaveAs("results_tb50/Exclusion_mSql_mGl_tb50.pdf");
493 +   //c1->SaveAs("plot_tb10.pdf");
494 +
495 +
496    
497     //c1->SaveAs("plot_tb50.pdf");
505 */
498     c1->SetLogy(1);
499     c1->SetLogx(1);
500     TH2F*hUncertScan = new TH2F("hUncertScan",";relative signal uncertainty; number of signal events",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines