The fix should enter in the skimmers only for NLO ggHH samples as:
if ( abs(theBigTree.aMCatNLOweight) > 0.5 ) continue.
The fix should be put at the very beginning of the skim: e.g. here for 2016 skimmer
NB
The aMCatNLOweight branch (which is genEvt->weight() in LLR ) is not exactly the one that Luca points out in his slides (originalXWGTUP), but the difference of the two weights is actually really small (e.g. 5 different events over 1M, all of them with a very small genWeight) so the aMCatNLOweight branch can be used.
As reported by @l-cadamuro in: https://indico.cern.ch/event/922760/contributions/3885448/attachments/2048961/3433794/HH_powheg_anomalous_weights_2Giu2020.pdf some events of the ggHH NLO samples need to be rejected.
The fix should enter in the skimmers only for NLO ggHH samples as:
if ( abs(theBigTree.aMCatNLOweight) > 0.5 ) continue
. The fix should be put at the very beginning of the skim: e.g. here for 2016 skimmerNB The
aMCatNLOweight
branch (which isgenEvt->weight()
in LLR ) is not exactly the one that Luca points out in his slides (originalXWGTUP
), but the difference of the two weights is actually really small (e.g. 5 different events over 1M, all of them with a very small genWeight) so theaMCatNLOweight
branch can be used.