Skip to content

Commit

Permalink
Merge pull request vukasinmilosevic#5 from nucleosynthesis/nckw_useZv…
Browse files Browse the repository at this point in the history
…vforggHJES

Use Zvv JES templates for ggH signal process
  • Loading branch information
amagnan authored Sep 10, 2020
2 parents 7e45f87 + 1a04a57 commit eccdc07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions makeSignalWS.C
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void makeSignalWS(std::string year="2017", std::string cat="MTR"){
TFile *finputJES = TFile::Open("../vbf_shape_jes_uncs.root");

const unsigned nP = 2;
std::string lProcs[nP] = {"VBFHtoInv","GluGluHtoInv"};

std::string lProcs[nP] = {"VBFHtoInv","GluGluHtoInv"};
std::string lJESLabel[nP] = {"VBF" ,"ZJetsToNuNu"}; // for now, use the Z->vv sample calculation for ggH

const unsigned nN = 7;
std::string lSysts[nN] = {"bjet_veto","pileup","tau_veto",
Expand Down Expand Up @@ -95,8 +95,8 @@ void makeSignalWS(std::string year="2017", std::string cat="MTR"){
for (unsigned iJ(0); iJ < nJ; ++iJ){


TH1F *hSUp = (TH1F*)finputJES->Get(Form("VBF%s_%sUp_smoothed",year.c_str(),lJes[iJ].c_str()));
TH1F *hSDown = (TH1F*)finputJES->Get(Form("VBF%s_%sDown_smoothed",year.c_str(),lJes[iJ].c_str()));
TH1F *hSUp = (TH1F*)finputJES->Get(Form("%s%s_%sUp_smoothed",lJESLabel[iP].c_str(),year.c_str(),lJes[iJ].c_str()));
TH1F *hSDown = (TH1F*)finputJES->Get(Form("%s%s_%sDown_smoothed",lJESLabel[iP].c_str(),year.c_str(),lJes[iJ].c_str()));

TH1F *hSUpnew = (TH1F*)Thist->Clone(); hSUpnew->SetName(Form("%s/%s_%sUp",lRegions.c_str(),lProcs[iP].c_str(),lJes[iJ].c_str()));
TH1F *hSDownnew = (TH1F*)Thist->Clone(); hSDownnew->SetName(Form("%s/%s_%sDown",lRegions.c_str(),lProcs[iP].c_str(),lJes[iJ].c_str()));
Expand Down

0 comments on commit eccdc07

Please sign in to comment.