Skip to content

Conversation

@mcremone
Copy link

This PR includes the capability to add statistical uncertainties in TransferFactorSample. This is essential when defining transfer factors as ratios of MCs. In those case, the statistical uncertainty can be computed via the propagation of error using the sumw2 of the numerator and denominator and it needs to be added. At the same time, it also needs to be included in the computation of the bin-by-bin BB-lite uncertainty in each channel, as suggested by J. Conway (https://indico.cern.ch/event/107747/contributions/32677/). This approach has been tested in the context of the dark Higgs boson search (SUS-23-013).

Independently from the source, this PR allows TransferFactorSample to take an array that represents the statistical uncertainty in input:

https://github.com/mcremone/rhalphalib/blob/master/rhalphalib/sample.py#L643

Which is then incorporated:

https://github.com/mcremone/rhalphalib/blob/master/rhalphalib/sample.py#L671-L684

The capability to define "nominal values" for the TransferFactorSample is also implemented:

https://github.com/mcremone/rhalphalib/blob/master/rhalphalib/sample.py#L642

This is needed to then add the TransferFactorSample statistical uncertainty to the BB-lite parameters. This is achieved here:

https://github.com/mcremone/rhalphalib/blob/master/rhalphalib/model.py#L374-L397

Other modifications included in this PR are to enable the usage of DependentParameter in the measurement of double-b tagging scale factors performed in the context of the dark Higgs analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant