Skip to content

Commit

Permalink
Merge pull request vukasinmilosevic#6 from nucleosynthesis/nckw_small…
Browse files Browse the repository at this point in the history
…FixForLastBin

Fix an issue with the scale in last bin
  • Loading branch information
amagnan authored Sep 24, 2020
2 parents eccdc07 + c6613f7 commit 8fe4e33
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion makeWS_percategory.C
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,13 @@ int makeWS_percategory(std::string year="2017", std::string cat="MTR"){
double WZratioSyst_muF = histos[0][PROCESS::QCDW][29]->GetBinContent(iB);
double WZratioSyst_muR = histos[0][PROCESS::QCDW][31]->GetBinContent(iB);
double WZratioSyst_pdf = histos[0][PROCESS::QCDW][33]->GetBinContent(iB);

// Fix a small issue in the last bin of the W/Z ratio for the renorm scale
// For some reason the last bin is underestimated in mjj, so we use the previous one
if ( iB == nB ) {
WZratioSyst_nom = histos[0][PROCESS::QCDW][0]->GetBinContent(iB-1);
WZratioSyst_muF = histos[0][PROCESS::QCDW][29]->GetBinContent(iB-1);
WZratioSyst_muR = histos[0][PROCESS::QCDW][31]->GetBinContent(iB-1);
}

WZratioSyst_muF = 1.0*WZratioSyst_muF/WZratioSyst_nom;
WZratioSyst_muR = 1.0*WZratioSyst_muR/WZratioSyst_nom;
Expand Down

0 comments on commit 8fe4e33

Please sign in to comment.