Pileup reweighting
Addresses #9 (closed)
I figured I could reuse the BinnedValues classes that are also used for scalefactors, so I just added a script to make a JSON file (from the PU profile in MC and the output of pileupCalc), and also put a few improvements to those (PU weight has more bins, so I changed the bin search from a linear search to logarithmic (std::upper_bound
). Integration
Still to do:
-
add the workflow to the documentation -
move the BinnedValues helpers (eg. the SystVariation enum) into a namespace (this could wait a bit more if anyone urgently needs this)
Edited by Pieter David