Skip to main content

Library for calibrating flavour tagging algorithms at LHCb

Project description

lhcb_ftcalib

pipeline status

LHCb Flavour Tagging calibration software

At high-energy proton-proton collider experiments, the production flavour of neutral B mesons needs to be reconstructed from particle charges from hadronisation processes in the associated event, i.e. from additional hadronisations on the signal meson side, as well as hadronisation and decays of the partner B hadron. This is commonly done with ML techniques like (recurrent) neural networks or boosted decision trees. The mistag probability estimates of these models (probability that predicted production flavour is wrong) usually need to have the property of probabilities. This calibration tool optimizes a GLM function to predict the mistag probabilities and takes into account the fact that neutral mesons can undergo oscillation before they decay. In addition, it provides helper functions to measure the performance and correlations of these models.

Documentation: Read the Docs

Installation

pip install lhcb_ftcalib

Command Line Interface Examples

Run ftcalib --help for a list of all options or read the docs

1. Calibrating opposite side taggers in a sample and saving result

ftcalib file:tree -OS VtxCh Charm OSElectronLatest OSMuonLatest OSKaonLatest \
        -mode Bd -tau B_tau -id B_ID -op calibrate -out output

2. Calibrating both tagging sides, combining them inidividually, and calibrating+saving the results

ftcalib file:tree -OS VtxCh Charm OSElectronLatest OSMuonLatest OSKaonLatest \
        -SS SSPion SSProton \
        -mode Bd -tau B_tau -id B_ID -op calibrate combine calibrate -out output

Note: The command line interface is by design not feature complete. Use the API to fine tune the calibration settings.

Requirements

A ROOT installation needs to be present on the system, for example through a conda-forge environment. When uproot4 can write data to files, the dependencies root and root_pandas (and root_numpy) can be dropped.

  • root
  • uproot >= 4
  • root_pandas
  • iminuit >= 2.3.0
  • pandas
  • numpy
  • scipy
  • matplotlib
  • uncertainties

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lhcb_ftcalib-0.0.7.tar.gz (80.9 kB view details)

Uploaded Source

Built Distribution

lhcb_ftcalib-0.0.7-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

Details for the file lhcb_ftcalib-0.0.7.tar.gz.

File metadata

  • Download URL: lhcb_ftcalib-0.0.7.tar.gz
  • Upload date:
  • Size: 80.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for lhcb_ftcalib-0.0.7.tar.gz
Algorithm Hash digest
SHA256 700bebe1e491f0f54c671eb9138d252c7064c2d408895564d55bbdc3981226c3
MD5 4afd462c3ae8b34fc47197e32c2c9052
BLAKE2b-256 cc6cb03c8d093b6607a0ae67ab8efcf82699c379a50243a197f9292d5699c2ed

See more details on using hashes here.

File details

Details for the file lhcb_ftcalib-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: lhcb_ftcalib-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 49.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for lhcb_ftcalib-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cf8808b488ed0ade189040e37f2704d76ede1890190dfaf3d2e73e6533356433
MD5 f3358db8d699e72f6c26adf940080aa1
BLAKE2b-256 c2fe50b94a7620744986a168bd3ca4a04e4aa4906314d1214a28dfc435466119

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page