606 |
|
if(isMC) prelimtext << "CMS Simulation, #sqrt{s} = " << energy; |
607 |
|
else prelimtext << "CMS" << prel << ", #sqrt{s} = " << energy; |
608 |
|
} else { |
609 |
< |
if(isMC) prelimtext << "CMS Simulation, #sqrt{s} = " << energy << ", #scale[0.6]{#int} L dt = " << std::setprecision(3) <<writelumi<<" "<<barn<<"^{-1}"; |
610 |
< |
else prelimtext << "CMS" << prel << ", #sqrt{s} = " << energy << ", #scale[0.6]{#int} L dt = " << std::setprecision(3) <<writelumi<<" "<<barn<<"^{-1}"; |
609 |
> |
if(isMC) prelimtext << "CMS Simulation, #sqrt{s} = " << energy << ", #scale[0.6]{#int}L dt = " << std::setprecision(3) <<writelumi<<" "<<barn<<"^{-1}"; |
610 |
> |
else prelimtext << "CMS" << prel << ", #sqrt{s} = " << energy << ", #scale[0.6]{#int}L dt = " << std::setprecision(3) <<writelumi<<" "<<barn<<"^{-1}"; |
611 |
|
} |
612 |
|
TPaveText *eventSelectionPaveText = new TPaveText(0.27, 0.93,0.77, 1.0,"blNDC"); |
613 |
|
eventSelectionPaveText->SetFillStyle(4000); |
1372 |
|
Ratio_main_canvas->Range(0,0,1,1); |
1373 |
|
Ratio_main_canvas->SetBorderSize(0); |
1374 |
|
Ratio_main_canvas->SetFrameFillColor(0); |
1375 |
– |
|
1375 |
|
mainpad->Draw(); |
1376 |
|
mainpad->cd(); |
1377 |
|
mainpad->Range(0,0,1,1); |
1398 |
|
bottompad->SetFillColor(kWhite); |
1399 |
|
TH1F *ratio = (TH1F*)nominator->Clone(GetNumericHistoName().c_str()); |
1400 |
|
ratio->Divide(denominator); |
1402 |
– |
|
1401 |
|
TGraphAsymmErrors *eratio; |
1402 |
|
TH1F *SystDown; |
1403 |
|
TH1F *SystUp; |
1435 |
|
SystUp->SetLineColor(TColor::GetColor("#006DE1")); |
1436 |
|
} |
1437 |
|
eratio->SetFillColor(TColor::GetColor("#00ADE1")); |
1440 |
– |
|
1438 |
|
ratio->SetTitle(""); |
1439 |
|
ratio->GetYaxis()->SetRangeUser(0.0,2.0); |
1440 |
|
if(do_bpred_ratio) ratio->GetYaxis()->SetRangeUser(0.0,2.0); |
1452 |
|
ratio->GetYaxis()->SetNdivisions(502,false); |
1453 |
|
ratio->SetFillColor(TColor::GetColor("#58D3F7")); |
1454 |
|
ratio->SetMarkerSize(0); |
1455 |
< |
ratio->Draw("e2"); |
1455 |
> |
ratio->Draw("e20"); |
1456 |
|
|
1457 |
|
TGraphAsymmErrors *ratio_center = (TGraphAsymmErrors*)eratio->Clone("ratio_center"); |
1458 |
|
for(int i=0;i<ratio_center->GetN();i++) { |
1459 |
|
ratio_center->SetPointError(i,ratio_center->GetErrorXlow(i),ratio_center->GetErrorXhigh(i),0.005,0.005); |
1460 |
|
} |
1464 |
– |
|
1461 |
|
ratio_center->SetFillColor(TColor::GetColor("#006381")); |
1462 |
|
|
1463 |
|
if(syshisto!=0) { |
1464 |
|
// sysratio->Draw("2"); |
1465 |
|
// eratio->Draw("2,same"); |
1466 |
< |
eratio->Draw("2"); |
1466 |
> |
eratio->Draw("20"); |
1467 |
|
SystDown->Draw("histo,same"); |
1468 |
|
SystUp->Draw("histo,same"); |
1469 |
|
} else { |
1470 |
< |
eratio->Draw("2"); |
1470 |
> |
eratio->Draw("20"); |
1471 |
|
} |
1472 |
< |
ratio_center->Draw("2"); |
1472 |
> |
ratio_center->Draw("20"); |
1473 |
|
ratio->Draw("same,axis"); |
1474 |
|
TLine *oneline = new TLine(ratio->GetXaxis()->GetBinLowEdge(1),1,ratio->GetXaxis()->GetBinLowEdge(ratio->GetNbinsX())+ratio->GetXaxis()->GetBinWidth(ratio->GetNbinsX()),1); |
1475 |
|
oneline->SetLineStyle(2); |
1476 |
|
oneline->SetLineColor(kBlue); |
1477 |
|
oneline->Draw("same"); |
1482 |
– |
|
1478 |
|
if(PlottingSetup::DrawMetSignalRegionMllLines) { |
1479 |
|
cout << "Drawing extra lines in ratio this time around ... " << endl; |
1480 |
|
float RatioYMax=2.0; |
1495 |
|
ZHiLine->Draw(); |
1496 |
|
} |
1497 |
|
|
1503 |
– |
|
1504 |
– |
|
1498 |
|
Ratio_main_canvas->cd(); |
1499 |
|
Ratio_main_canvas->Modified(); |
1500 |
|
Ratio_main_canvas->cd(); |
1643 |
|
|
1644 |
|
if(syshisto!=0) { |
1645 |
|
SysEnvelope->SetFillColor(TColor::GetColor("#FE9A2E")); |
1646 |
< |
SysEnvelope->Draw("2,same"); |
1646 |
> |
SysEnvelope->Draw("2,0,same"); |
1647 |
|
ratio->Draw("e0,same"); |
1648 |
|
} else { |
1649 |
|
eratio->Draw("0"); |