This release is a pre-release and may not be stable for production use.
[TOC]
Fitter
This project is meant to automate:
- Building of models
- Fits to MC
- Fits to data
- Creation of validation plots, tables, etc
- Application of constraints
- Obtention of fitting information, specially:
- Mass scales, resolutions
- Signal yields for resonant and rare modes
And be used as an input for:
- Systematics evaluation
- Extraction of $R_K$ and $R_K^*$
- Calibrations
Ideally with minimal changes for new observables. The class is organized as in the diagram below:
This project makes heavy use of caching through the Cache class and thus:
- It allows for fast reruns
- It allows for the fitters to also be used to retrieve parameters
Usage
For fits to data do:
fit_rx_data -c rare/electron -q central -C 0.5 -P 0.5
to use the configuration in src/fitter_data/rare/electron/data.yaml
with an MVA working point of 0.5 for the combinatorial and part reco BDTs.
This should:
- Apply the selection on the MC and data
- Fit the MC
- Use the MC to create components for the fit to the data
- Fit the data and save everything
To do the same from a python script do:
from dmu.generic import utilities as gut
from rx_selection import selection as sel
from fitter.data_fitter import DataFitter
cfg = gut.load_conf(
package='fitter_data',
fpath ='rare/electron/data.yaml')
with sel.custom_selection(d_sel={
'nobr0' : 'nbrem != 0',
'bdt' : 'mva_cmb > 0.60 && mva_prc > 0.40'}):
ftr = DataFitter(
sample = 'DATA_24_*',
trigger= 'Hlt2RD_BuToKpEE_MVA',
project= 'rx',
q2bin = 'central',
cfg = cfg)
obj = ftr.run()
where obj is a DictConf (from the omegaconf project) dictionary where the
parameters and errors can be accessed as:
val = obj['name']['value']
err = obj['name']['error']
Metadata
Release files for rx-fitter 1.1.dev351
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rx_fitter-1.1.dev351.tar.gz | 26.5 kB | With provenance | Details for rx_fitter-1.1.dev351.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rx_fitter-1.1.dev351-py3-none-any.whl | Python 3 | none | any | Details for rx_fitter-1.1.dev351-py3-none-any.whl |
Total release size: 68.9 kB
Release files / rx_fitter-1.1.dev351.tar.gz
| Download URL | rx_fitter-1.1.dev351.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
021198f56d4283f7e87f8b6815dd0426a70fdf44c2d541186b7273483213b88f
|
|
BLAKE2b-256 checksum How to use checksums |
42d8f0f338f104b5d01f529b806e112e23ed4962a4598e723adf78bbb0f8b4ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 23, 2025.
Transparency logRelease files / rx_fitter-1.1.dev351-py3-none-any.whl
| Download URL | rx_fitter-1.1.dev351-py3-none-any.whl |
|---|---|
| Size | 42.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4843e4ff14f6aa00417612974b7977c5be901c6fded74e811d85cb6f4d5992f2
|
|
BLAKE2b-256 checksum How to use checksums |
c2a9cfb7174ec43e8f9d047865ffb364e5f99ae79190d7423279d2ac73886ec8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 23, 2025.
Transparency logSecurity for rx-fitter 1.1.dev351
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for rx_fitter-1.1.dev351.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 23, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.