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

Comparing UserCode/auterman/SusyScan/PlotScript/plot3tb.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("tb3_mu1_a0_massscan.dat");
92 >   genpoints->FillGeneratorMasses("GenScan_tb3.dat");
93     genpoints->match();
94 <   genpointsHT->FillGeneratorMasses("tb3_mu1_a0_massscan.dat");
94 >   genpointsHT->FillGeneratorMasses("GenScan_tb3.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 295 | Line 295 | int plot(int argc, char** argv)
295     b.DrawLatex(  6,150,"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(248,129,"D0 #tilde{g}, #tilde{q}");
298 >   //b.DrawLatex(100,140,"CDF");
299 >   //b.DrawLatex(248,129,"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 317 | Line 317 | int plot(int argc, char** argv)
317     gPad->RedrawAxis();
318     c1->SaveAs("results_tb3/Exclusion_m0_m12_tb3.pdf");
319  
320 +   plotToolsHT->Print(Xsection, Mzero,Mhalf,gCLsObsExclHT, 10);
321 +
322     // Signal Contamination in M0 - M1/2
323     c1->SetLogz(0);
324     TH2F*hsigcont = new TH2F("sigcont",";m_{0} [GeV]; m_{1/2}; number of signal in bkg yield [events]",
# Line 340 | Line 342 | int plot(int argc, char** argv)
342     c1->SaveAs("results_tb3/SignalContamination_MHT_m0_m12_tb3.pdf");
343    
344  
343 /*
345     //-----------------------------------------------------------------------------------
346     c1->SetLogz(1);
347  
# Line 349 | Line 350 | int plot(int argc, char** argv)
350  
351     // cross-section in squark - gluino mass
352     TH2F*hxsec_qg = new TH2F("xsec_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; cross section [pb]",
353 <                     60,200,1400,50,200,1200);
353 >                     60,200,800,40,200,900);
354     plotTools->Area(hxsec_qg, MSquarkL, MGluino, Xsection);
355     hxsec_qg->SetMinimum(0.01);
356     hxsec_qg->Draw("colz");
# Line 359 | Line 360 | int plot(int argc, char** argv)
360    
361     // Observed Limit in squark - gluino mass
362     TH2F*hobslimit_qg = new TH2F("obslimit_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Limit [pb]",
363 <                     60,200,1400,50,200,1200);
363 >                     60,200,800,40,200,900);
364     plotTools->Area(hobslimit_qg, MSquarkL, MGluino, ObsXsecLimit);
365     hobslimit_qg->SetMinimum(0.01);
366     hobslimit_qg->Draw("colz");
# Line 367 | Line 368 | int plot(int argc, char** argv)
368    
369     // Expected Limit in squark - gluino mass
370     TH2F*hexplimit_qg = new TH2F("explimit_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Expected Limit [pb]",
371 <                     60,200,1400,50,200,1200);
371 >                     60,200,800,40,200,900);
372     plotTools->Area(hexplimit_qg, MSquarkL, MGluino, ExpXsecLimit);
373     hexplimit_qg->SetMinimum(0.01);
374     hexplimit_qg->Draw("colz");
# Line 375 | Line 376 | int plot(int argc, char** argv)
376    
377     // Signal Acceptance in squark - gluino mass
378     TH2F*hsigacc_qg = new TH2F("sigacc_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; Signal Acceptance",
379 <                     60,200,1400,50,200,1200);
379 >                     60,200,800,40,200,900);
380     plotTools->Area(hsigacc_qg, MSquarkL, MGluino, SignalAcceptance);
381     hsigacc_qg->SetMinimum(0.01);
382     hsigacc_qg->SetMaximum(1.0);
# Line 385 | Line 386 | int plot(int argc, char** argv)
386     // Exp. Limit on Number of Signal Events in squark - gluino mass
387     c1->SetLogz(0);
388     TH2F*hexplimitnsig_qg = new TH2F("explimitnsig_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL exp. limit signal events [# ]",
389 <                     60,200,1400,50,200,1200);
389 >                     60,200,800,40,200,900);
390     plotTools->Area(hexplimitnsig_qg, MSquarkL, MGluino, ExpNSignLimit);
391     hexplimitnsig_qg->SetMinimum(0.0);
392     hexplimitnsig_qg->SetMaximum(20);
# Line 394 | Line 395 | int plot(int argc, char** argv)
395    
396     // Obs. Limit on Number of Signal Events in squark - gluino mass
397     TH2F*hobslimitnsig_qg = new TH2F("obslimitnsig_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL obs. limit signal events [# ]",
398 <                     60,200,1400,50,200,1200);
398 >                     60,200,800,40,200,900);
399     plotTools->Area(hobslimitnsig_qg, MSquarkL, MGluino, ObsNSignLimit);
400     hobslimitnsig_qg->SetMinimum(0.0);
401     hobslimitnsig_qg->SetMaximum(20);
# Line 404 | Line 405 | int plot(int argc, char** argv)
405     c1->SetLogz(0);
406     // Expected Exclusion in squark - gluino mass
407     TH2F*hexpexcl_qg = new TH2F("expexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Expected Exclusion",
408 <                     60,200,1400,50,200,1200);
408 >                     60,200,800,40,200,900);
409     plotTools->Area(hexpexcl_qg, MSquarkL, MGluino, ExpExclCL);
410     hexpexcl_qg->Draw("colz");
411     c1->SaveAs("results_tb3/ExpExclusion_mSql_mGl_tb3.pdf");
412    
413     // Observed Exclusion in squark - gluino mass
414     TH2F*hobsexcl_qg = new TH2F("obsexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
415 <                     60,200,1400,50,200,1200);
415 >                     60,200,800,40,200,900);
416     plotTools->Area(hobsexcl_qg, MSquarkL, MGluino, ObsExclCL);
417     //std::vector<TGraph *> vobsexcl_qg = plotTools->GetContours(hobsexcl_qg);
418     hobsexcl_qg->Draw("colz");
# Line 423 | Line 424 | int plot(int argc, char** argv)
424    
425     // TestContours in M0 - M1/2
426     TH2F*texcl_qg = new TH2F("texcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
427 <                     60,200,1400,50,200,1200);
427 >                     60,200,800,40,200,900);
428     TH2F*tPLobsexcl_qg=(TH2F*)texcl_qg->Clone();
429     plotTools->Area(tPLobsexcl_qg, MSquarkL, MGluino, PLObsExclusion);
430     TH2F*tPLexpexcl_qg=(TH2F*)texcl_qg->Clone();
# Line 454 | Line 455 | int plot(int argc, char** argv)
455  
456     // Observed Exclusion in squark - gluino mass
457     TH2F*hPLobsexcl_qg = new TH2F("plobsexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
458 <                     60,200,1400,50,200,1200);
458 >                     60,200,800,40,200,900);
459     plotTools->Area(hPLobsexcl_qg, MSquarkL, MGluino, PLObsExclusion);
460     //hPLobsexcl_qg->Draw("colz");
461     //c1->SaveAs("results_tb3/PL_ObsExclusion_mSql_mGl_tb3.pdf");
462    
463  
464  
464
465
466   // Exclusion in squark - gluino mass ----------------------------------------
465     TH2F*hexcl_qg = new TH2F("hexcl_qg",";m_{#tilde{q}} [GeV]; m_{#tilde{g}} [GeV]; 95% CL Observed Exclusion",
466 <                     60,200,1400,50,200,1200);
467 <   TGraph * gexpexcl_qg = plotTools->GetContour(hexpexcl_qg,3,0);
468 <   if (gexpexcl_qg) gexpexcl_qg->SetLineStyle(2);
469 <   TGraph * gobsexcl_qg = plotTools->GetContour(hobsexcl_qg,3,0);
470 <   TH2F*hPLexpexcl_qg=(TH2F*)hexcl_qg->Clone();
471 <   plotTools->Area(hPLexpexcl_qg, MSquarkL, MGluino, PLExpExclusion);  
472 <   TGraph * gPLexpexcl_qg = plotTools->GetContour(hPLexpexcl_qg,3,0);
473 <   if (gPLexpexcl_qg)   {gPLexpexcl_qg->SetLineStyle(2);gPLexpexcl_qg->SetLineColor(2);}
474 <   TGraph * gPLobsexcl_qg = plotTools->GetContour(hPLobsexcl_qg,3,0);
475 <   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);}
466 >                     50,200,800,30,200,900);
467 >   TGraph * gexpexcl_qg         = plotTools->GetContour(hexcl_qg,MSquarkL,MGluino,ExpExclCL,       3,0, 2,2);
468 >   TGraph * gobsexcl_qg         = plotTools->GetContour(hexcl_qg,MSquarkL,MGluino,ObsExclCL,       3,0, 2,1);
469 >   TGraph * gMCMCexpexcl_qg     = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,MCMCExpExclusion,3,0, 3,2);
470 >   TGraph * gMCMCobsexcl_qg     = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,MCMCObsExclusion,3,0, 3,1);
471 >   TGraph * gCLsExpExclHT_qg    = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,ExpExclCL,       3,0, 1,2);
472 >   TGraph * gCLsObsExclHT_qg    = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,ObsExclCL,       3,0, 1,1);
473 >   TGraph * gCLsExpExclHTm1_qg  = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,ExpExclCLm1sigma,3,0, 5,2);
474 >   TGraph * gCLsExpExclHTp1_qg  = plotToolsHT->GetContour(hexcl_qg,MSquarkL,MGluino,ExpExclCLp1sigma,3,0, 5,2);
475 >   TGraph * gCLsExp1Sigma_qg    = MakeBand(gCLsExpExclHTp1_qg, gCLsExpExclHTm1_qg);
476     hexcl_qg->Draw("");
477 <   if (gobsexcl_qg) gobsexcl_qg->Draw("l");
477 >   //
478 >   if (gCLsExp1Sigma_qg) gCLsExp1Sigma_qg->Draw("lf");  
479 >   if (gobsexcl_qg)      gobsexcl_qg->Draw("l");
480     if (gCLsObsExclHT_qg) gCLsObsExclHT_qg->Draw("l");
481 <   if (gexpexcl_qg) gexpexcl_qg->Draw("l");
490 <   //if (gPLobsexcl_qg) gPLobsexcl_qg->Draw("l");
491 <   //if (gPLexpexcl_qg) gPLexpexcl_qg->Draw("l");
481 >   if (gexpexcl_qg)      gexpexcl_qg->Draw("l");
482     if (gCLsExpExclHT_qg) gCLsExpExclHT_qg->Draw("l");
483 +   //
484     TLegend * leg_qg = new TLegend(0.45,0.78,0.85,0.89);
485     leg_qg->SetBorderSize(0);leg_qg->SetFillColor(0);
486 <   if (gobsexcl_qg) leg_qg->AddEntry(gobsexcl_qg,"Observed (MHT, CLs, TLimit)","l");
487 <   if (gexpexcl_qg) leg_qg->AddEntry(gexpexcl_qg,"Expected (MHT, CLs, TLimit)","l");
488 <   if (gCLsObsExclHT_qg) leg_qg->AddEntry(gCLsObsExclHT_qg,"Observed (HT, CLs, TLimit)","l");
489 <   if (gCLsExpExclHT_qg) leg_qg->AddEntry(gCLsExpExclHT_qg,"Expected (HT, CLs, TLimit)","l");
486 >   if (gobsexcl_qg) leg_qg->AddEntry(gobsexcl_qg,"LO Observed (MHT, CLs)","l");
487 >   if (gexpexcl_qg) leg_qg->AddEntry(gexpexcl_qg,"LO Expected (MHT, CLs)","l");
488 >   if (gCLsObsExclHT_qg) leg_qg->AddEntry(gCLsObsExclHT_qg,"LO Observed (HT, CLs)","l");
489 >   if (gCLsExpExclHT_qg) leg_qg->AddEntry(gCLsExpExclHT_qg,"LO Expected (HT, CLs)","l");
490     //if (gPLobsexcl_qg) leg_qg->AddEntry(gPLobsexcl_qg,"Observed (PL, RooStat)","l");
491     //if (gPLexpexcl_qg) leg_qg->AddEntry(gPLexpexcl_qg,"Expected (PL, RooStat)","l");
492     leg_qg->Draw();
493     c1->SaveAs("results_tb3/Exclusion_mSql_mGl_tb3.pdf");
494 < */  
495 <   //c1->SaveAs("plot_tb3.pdf");
494 >   //c1->SaveAs("plot_tb10.pdf");
495 >
496 >
497  
498     c1->SetLogy(1);
499     c1->SetLogx(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines