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

ensure puppi weights aren't overridden by a different PF candidate collection #79

Closed kpedro88 closed 3 years ago

kpedro88 commented 3 years ago

I noticed that, in a case where there are two different PFCandidate collections and PUPPI needs to be rerun for both collections, the toolbox gave the wrong answer by default because it just loaded the puppi module rather than making a new module. This PR changes the behavior, so a new puppiX module is created for each PF candidate collection X. (This code was originally tested on the 94X branch, and has now been ported to the 102X branch.)