Skip to main content

A binned fit intermediate representation library

Project description

rhalphalib

Codestyle

Ralph

Quickstart

CMSSW with EL8/EL9

We use the scram-venv utility to create a python virtual environment in our CMSSW area:

cmsrel CMSSW_14_1_0_pre4
cd CMSSW_14_1_0_pre4/src
cmsenv
scram-venv
cmsenv
git clone https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
cd HiggsAnalysis/CombinedLimit
git checkout v10.1.0
scram b -j4
python3 -m pip install git+https://github.com/nsmith-/rhalphalib.git

Elsewhere (no warranty)

First, install Combine v10 using your choice of installation instructions (with CMSSW, using LCG, or inside a Conda environment). In a python virtual environment, run:

python3 -m pip install --user git+https://github.com/nsmith-/rhalphalib.git

Usage

Take a look at test_rhalphalib.py for examples of how to use the package. You can run a test with, e.g.

curl -Ol https://raw.githubusercontent.com/nsmith-/rhalphalib/master/tests/test_rhalphalib.py
python3 test_rhalphalib.py
cd tmp/testModel
. build.sh
combine -M FitDiagnostics model_combined.root

An example output of the final line is:

 <<< Combine >>>
 <<< v10.1.0 >>>
>>> Random number generator seed is 123456
>>> Method used is FitDiagnostics

 --- FitDiagnostics ---
Best fit r: 0.999999  -0.208174/+0.212715  (68% CL)
Done in 0.59 min (cpu), 0.59 min (real)

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

rhalphalib-0.3.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rhalphalib-0.3.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file rhalphalib-0.3.0.tar.gz.

File metadata

  • Download URL: rhalphalib-0.3.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rhalphalib-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d7689b28e0e09af13f7464cc0cf7c77404ed0d859dfefff5f66dca215808a957
MD5 585624a5edd8891e44290ecf2e21cb86
BLAKE2b-256 b341776622413a262755a1a268bad54f94e8ff031cbf033740969c32d63bedc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for rhalphalib-0.3.0.tar.gz:

Publisher: pythonpublish.yml on nsmith-/rhalphalib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rhalphalib-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: rhalphalib-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rhalphalib-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32773a195bfc09f628f38d6ed522aaa9623abcb1ed4d6302717bf8d7f8e2b92f
MD5 f17a749ad17129324bb900e8e2c691d3
BLAKE2b-256 8c5b9c3dc0c70cbfd107cbc4ee876bc629ea011674ebc5635ef5938167fe1362

See more details on using hashes here.

Provenance

The following attestation bundles were made for rhalphalib-0.3.0-py3-none-any.whl:

Publisher: pythonpublish.yml on nsmith-/rhalphalib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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