cms-nanoAOD / nanoAOD-tools

Tools for working with NanoAOD (requiring only python + root, not CMSSW)
42 stars 326 forks source link

Prefiring module #136

Closed DennRoy closed 5 years ago

DennRoy commented 5 years ago

Hi, as mentioned in the previous CrossPOG meeting, here is a module that computes the prefire weights: https://github.com/latinos/LatinoAnalysis/blob/master/NanoGardener/python/modules/PrefireCorr.py Aside from the paths pointing to the maps, I think it should work out-of-the-box. Can you please let me know, if there are any changes I should make?

adewit commented 5 years ago

Hi, I'm not one of the central developers, but it's probably easiest if you can make a pull request into this repository to include the module and the maps. Then if someone has comments on things in the code they can comment directly on the diff. For what it's worth, I picked up the module you link above and it did seem to work out of the box after changing the paths pointing to the maps.

DennRoy commented 5 years ago

Thanks, I made a PR here:

139