Closed cverstege closed 1 year ago
Rebased onto master and updated the code. Please review again @HerrHorizontal @RHofsaess
This producer should be ready to merege. Debug output looks like this:
[PUJetIDWeightProducer]
Number of Jets 8
Number of GenJets 6
Checking Jet with Pt115.906
Matched GenJet Pt 114.515
No PuJetID Efficiency available.
Checking Jet with Pt25.5411
Matched GenJet Pt 20.8111
PuJetID Efficiency found.
Checking Jet with Pt15.0642
Checking Jet with Pt14.3624
Checking Jet with Pt13.9971
Checking Jet with Pt12.9822
Checking Jet with Pt12.9388
Matched GenJet Pt 10.7671
No PuJetID Efficiency available.
Checking Jet with Pt12.0399
puJetIDWeight: 0.959849 +/- 0.0333465
Please review again @HerrHorizontal @RHofsaess .
The twiki states The SFs should be applied for any AK4 CHS jet in MC that passes the [PileUpJetID](https://twiki.cern.ch/twiki/bin/edit/CMS/PileUpJetID?topicparent=CMS.PileupJetIDUL;nowysiwyg=1) and is also geometrically matched (ΔR < 0.4) to AK4 Gen jets.
So I updated the producer to do exactly this.
https://twiki.cern.ch/twiki/bin/view/CMS/PileupJetIDUL#Data_MC_Efficiency_Scale_Factors
Note that the 'producer:ValidZllGenJetsProducer'
followed by the producer:RecoJetGenJetMatchingProducer
need to run first.
For review it's better to look at the two commits separately. This will clarify a few things.