Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PU reweight for 2016 #14

Merged
merged 5 commits into from
Jan 30, 2019
Merged

PU reweight for 2016 #14

merged 5 commits into from
Jan 30, 2019

Conversation

sungbinoh
Copy link
Contributor

@sungbinoh sungbinoh commented Jan 28, 2019

A new function
double MCCorrection::GetPileUpWeight(int syst, int N_vtx)
is added for 2016 pileup reweight based on the official recommendation.
(min-biax X-sec = 69.2 mb, and 66.017 / 72.388 mb for down/up systematics)

If 2017 MC samples without PU profile bug are arrived, we just need to make a new histmap and rootfile to use same function for both campaigns.

For now, the new function "double MCCorrection::GetPileUpWeight(int syst, int N_vtx)"
is only available for 2016 campaign.

So in analysis code, call PU reweight like this

double pileup_reweight = 1.;
if(DataYear == 2016){
pileup_reweight = mcCorr. GetPileUpWeight(0, nPileUp);
}
else(DataYear == 2017){
pileup_reweight = mcCorr.GetPileUpWeightAsSampleName(0, nPileUp);
}
else{
cout << "Whatever" << endl;
}

@sungbinoh sungbinoh mentioned this pull request Jan 28, 2019
@sungbinoh
Copy link
Contributor Author

Also, TTLJ_powheg and TTJJ_powheg PU reweights for 2017 are added

@jedori0228 jedori0228 merged commit 4dce5a9 into CMSSNU:master Jan 30, 2019
wonpoint4 pushed a commit to wonpoint4/SKFlatAnalyzer that referenced this pull request Jul 31, 2020
jbhyun pushed a commit to jbhyun/SKFlatAnalyzer that referenced this pull request Feb 16, 2022
Hooooon12 pushed a commit to Hooooon12/SKFlatAnalyzer that referenced this pull request May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants