Updates to derive_and_apply_reweighting.py
Here's is a summary of today's discussion concerning on how to update https://gitlab.cern.ch/htx/FCNC-Analysis/-/blob/master/python/derive_and_apply_reweighting.py.
- Need to restrict the reweighting calculation to the 2btight+1loose region. Perhaps the best way is to change https://gitlab.cern.ch/htx/FCNC-Analysis/-/blob/master/python/derive_and_apply_reweighting.py#L34 to something which cuts on to suitably define the 2b+1loose selection, the cuts configuration maybe passed from option though the function
- The reweigthing should be derived for all jet multiplicities separately, could be done by extending the setup from bullet 1. So instead of having a single meff histogram (e.g. for ttbar here https://gitlab.cern.ch/htx/FCNC-Analysis/-/blob/master/python/derive_and_apply_reweighting.py#L162) one would have three output root files for MC and 3 for data, then one can derive multiple fit functions by essentially duplicating here https://gitlab.cern.ch/htx/FCNC-Analysis/-/blob/master/python/derive_and_apply_reweighting.py#L174.
- Subtract the non-ttbar from data ! Best way might be to define in the input file folder a total-non ttbar and propagate it though the code, need to see what is the most convenient thing to do for you.