Skip to content

Commit

Permalink
adding custom PU weight function. Adding HT5/HT filter to baseline se…
Browse files Browse the repository at this point in the history
…lection for HDP and LDP regions
  • Loading branch information
awhitbeck committed Feb 23, 2017
1 parent 695ad6f commit c0442c2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ template<typename ntupleType> bool cutFlow_btagsZero(ntupleType* ntuple){
return ntuple->BTags==0;
}
template<typename ntupleType> bool cutFlow_filters(ntupleType* ntuple){
return ntuple->globalTightHalo2016Filter==1
return ntuple->HT5/ntuple->HT < 2.
&& ntuple->globalTightHalo2016Filter==1
&& ntuple->HBHENoiseFilter==1
&& ntuple->HBHEIsoNoiseFilter==1
&& ntuple->eeBadScFilter==1
Expand All @@ -87,10 +88,6 @@ template<typename ntupleType> bool cutFlow_filters(ntupleType* ntuple){
/******************************************/
/* custom weights */
/******************************************/
template<typename ntupleType> double dRweights(ntupleType* ntuple){
double intercept,slope;
return 1./(min(ntuple->HT,900.)*slope+intercept);
}
template<typename ntupleType> double customPUweights(ntupleType* ntuple){
int nVtx = ntuple->NVtx;
return puWeightHist->GetBinContent(puWeightHist->FindBin(nVtx));
Expand Down

0 comments on commit c0442c2

Please sign in to comment.