Skip to content

Conversation

@jainshilpi
Copy link
Contributor

@jainshilpi jainshilpi commented Oct 13, 2020

Hi Sam,

As we discussed, I have now ported changes from Francesco M. and Vinzenz Stampf. It was good to see that the base was there - only a few debugs + porting to EgammaPostRecoTools.
I started with the CMSDAS2020 version of EgammaPostRecoTools.py which I assume had Jonas's last commits and my UL scale/smearing updates.

Here is the setup needed:
https://github.com/jainshilpi/cmssw/tree/IDSFs

and the slides from the main developers: https://indico.cern.ch/event/842077/contributions/3633040/attachments/1941671/3219683/egm_08Nov19.pdf

Files added:
(1) RecoEgamma/EgammaTools/plugins/EGammaSFModifier.cc
(2) RecoEgamma/EgammaTools/plugins/json_wrapper.cc
(3) RecoEgamma/EgammaTools/interface/json_wrapper.h
(4) ecoEgamma/EgammaTools/data/run2_PhoIDs.json
(5) ecoEgamma/EgammaTools/data/run2_EleIDs.json

Code modified:
(1) RecoEgamma/EgammaTools/python/egammaObjectModificationsInMiniAOD_cff.py

This currently gives only 1 set of ele and pho SFs at a time.
Probably EgammaPostRecoTools can be adapted to run this for several
SFs in loop?

The EgammaPostRecoTools is setup to deal with UL2017 and UL2018 ID SFs.
The remaining : ele reco SFs and photon veto SFs are still needed to be done.

I think the setup can be improved e.g. json_wrapper.cc can be modified a bit by giving the input json file name to
constructor.

Please let me know if you have any suggestions to it.

For now, this setup works and printouts give expected result. We need to just plot the 2D SF plot in one go to be sure of all the pT, eta and ID bins.

Thanks,
Shilpi

Setup to convert to JSON: https://github.com/cms-egamma/json_converter_egID

@jainshilpi jainshilpi requested a review from Sam-Harper October 13, 2020 01:07
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.

3 participants