63 |
|
int Approved=0; // Approved=true will only plot approved plots |
64 |
|
bool is2012=true; |
65 |
|
bool is53reco=true; |
66 |
< |
bool openBox = false; |
66 |
> |
bool openBox = true; |
67 |
|
} |
68 |
|
|
69 |
|
bool dopng=false; |
946 |
|
|
947 |
|
if(incut=="id1==0") return "ee"; |
948 |
|
if(incut=="id1==1") return "#mu#mu"; |
949 |
< |
if(incut=="abs(mll-91.2)<20") return "|m_{l^{+}l^{-}}-m_{Z}|<20"; |
949 |
> |
if(incut=="abs(mll-91)<10") return "|m_{l^{+}l^{-}}-m_{Z}|<10"; |
950 |
|
if(incut=="pfJetGoodID[0]") return ""; |
951 |
|
if(incut=="pfJetGoodID[1]") return ""; |
952 |
|
if((int)incut.find("pfJetGoodNum")>-1) { |
1569 |
|
TBox *sysbox = new TBox(SysRatio->GetXaxis()->GetBinLowEdge(1),1-systematic,SysRatio->GetXaxis()->GetBinLowEdge(SysRatio->GetNbinsX())+SysRatio->GetXaxis()->GetBinWidth(SysRatio->GetNbinsX()),1+systematic); |
1570 |
|
sysbox->SetFillColor(TColor::GetColor("#82FA58")); // light green |
1571 |
|
|
1572 |
< |
SysRatio->SetMarkerSize(0); |
1573 |
< |
SysRatio->Draw(); |
1572 |
> |
SysRatio->Draw("e1"); |
1573 |
|
sysbox->Draw(); |
1574 |
< |
SysRatio->Draw("same"); |
1574 |
> |
SysRatio->Draw("e1,same"); |
1575 |
> |
SysRatio->Draw("e1,axis,same"); |
1576 |
|
|
1577 |
– |
SysRatio->Draw("same,axis"); |
1577 |
|
TLine *oneline = new TLine(SysRatio->GetXaxis()->GetBinLowEdge(1),1,SysRatio->GetXaxis()->GetBinLowEdge(SysRatio->GetNbinsX())+SysRatio->GetXaxis()->GetBinWidth(SysRatio->GetNbinsX()),1); |
1578 |
|
oneline->SetLineStyle(2); |
1579 |
|
oneline->SetLineColor(kBlue); |
1585 |
|
MainCanvas->SetSelected(MainCanvas); |
1586 |
|
|
1587 |
|
CompleteSave(MainCanvas,savemeas+"_withSYSSysRatio"); |
1589 |
– |
cout << __LINE__ << endl; |
1588 |
|
delete SysRatio; |
1591 |
– |
cout << __LINE__ << endl; |
1589 |
|
delete MainCanvas; |
1593 |
– |
cout << __LINE__ << endl; |
1590 |
|
} |
1591 |
|
|
1592 |
|
TH1F* CollapseStack(THStack stack) { |
1840 |
|
//TODO: Write a bug summary at the end. |
1841 |
|
|
1842 |
|
float pSTAR(float mglu, float mlsp, float mchi2) { |
1843 |
< |
float mz=91.2; |
1843 |
> |
float mz=91.0; |
1844 |
|
float res=((mchi2*mchi2)-(mlsp+mz)*(mlsp+mz)); |
1845 |
|
res*=((mchi2*mchi2)-(mlsp-mz)*(mlsp-mz)); |
1846 |
|
res=TMath::Sqrt(res)/(2*mchi2); |