cms-jet / JetToolbox

Python framework for configuration of jet tools via the jet toolbox.
https://twiki.cern.ch/twiki/bin/viewauth/CMS/JetToolbox
7 stars 36 forks source link

Attempt to automate use of updateJetCollection for PAT-dependent discriminators #85

Open kpedro88 opened 2 years ago

kpedro88 commented 2 years ago

I came up with a "smart" addJetCollection() wrapper that detects when an updateJetCollection()-dependent discriminator is requested and runs both functions in succession, with the module names modified so the final output looks the same as it normally would.

Marked as draft because I'm honestly not sure how maintainable this code is. It's also not cleaned up or complete (could probably be extended to DeepFlavour, maybe others). But it does work, so feedback is welcome...