sidnarayanan / PandaAnalysis

Analysis code to run on PandA
Other
0 stars 25 forks source link

CMVA event scale factors are messed up #49

Closed DylanHsu closed 6 years ago

DylanHsu commented 6 years ago

CSVHelper class applies a cut on the discriminator value > 0 which really screws things up for CMVA!

So the event scale factors are wrong. Furthermore, the variations of the weights are taken as the quadrature sum and should be split. We can remove them from the ntuple to make space, and let the user apply them offline in the analysis macro.

I plan to add a short term fix is to add a member function to CSVHelper which gives the per-jet event weight scale factor. Then we can fix the central CMVA weight in PandaAnalysis and drop the CMVA uncertainty branches from GeneralTree.

DylanHsu commented 6 years ago

If gen jet reclustering is off, the jet gen flavor is still computed in ModulesBTagSFs, so the CMVA variations are correct online and are stored. but this jet gen flavor is not stored, so individual jet variations cannot be recomputed further down the chain.

sidnarayanan commented 6 years ago

I take it this is fixed, modulo #56 ?