Skip to main content

A tool for quick statistical analysis for HEP experiments

Reason this release was yanked:

Buggy

Project description

Setup

Clone the repository:

git clone ssh://git@gitlab.cern.ch:7999/clcheng/quickstats.git

1. CERN User

To set up from lxplus, just do

source setup.sh

2. Genearl User

To set up locally, make sure you have pyROOT 6.24+ installed (using conda is recommended), and do

pip install quickstats

Installing pyROOT

Simplest way to install pyROOT is via conda

conda install -c conda-forge ROOT

Important: First-time compilation

To compile c++ dependencies, do this for first time use

quickstats compile

Command Line Tools

Run Nuisance Parameter Pulls and Ranking

quickstats run_pulls -i <input_ws_path> -d <dataset_name> -p <np_name/pattern> --poi <poi_name> --parallel -1 -o <output_dir>

The following options are available

Option Description Default
-i/--input_file Path to the input workspace file -
-w/--workspace Name of workspace. Auto-detect by default. None
-m/--model_config Name of model config. Auto-detect by default. None
-d/--data Name of dataset "combData"
-p/--parameter Nuisance parameter(s) to run pulls on. Multiple parameters are separated by commas. Wildcards are accepted. All NPs will be run over by default ""
-x/--poi POIs to measure. If empty, impact on POI will not be calculated. ""
-r/--profile Parameters to profile ""
-f/--fix Parameters to fix ""
-s/--snapshot Name of initial snapshot "nominalNuis"
-o/--outdir Output directory "pulls"
-t/--minimizer_type Minimizer type "Minuit2"
-a/--minimizer_algo Minimizer algorithm "Migrad"
-c/--num_cpu Number of CPUs to use per parameter 1
--binned/--unbinned Whether to use binned likelihood True
-q/--precision Precision for scan 0.001
-e/--eps Tolerance 1.0
-l/--log_level Log level "INFO"
--eigen/--no-eigen Compute eigenvalues and vectors False
--strategy Default fit strategy 0
--fix-cache/--no-fix-cache Fix StarMomentMorph cache True
--fix-multi/--no-fix-multi Fix MultiPdf level 2 True
--offset/--no-offset Offset likelihood True
--optimize/--no-optimize Optimize constant terms True
--max_calls Maximum number of function calls -1
--max_iters Maximum number of Minuit iterations -1
--parallel Parallelize job across different nuisanceparameters using N workers. Use -1 for N_CPU workers. 0
--cache/--no-cache Cache existing result True
--exclude Exclude NPs (wildcard is accepted) ""

Plot Nuisance Parameter Pulls and Ranking

quickstats plot_pulls --help

Likelihood Fit (Best-fit)

quickstats likelihood_fit --help

Run Likelihood Scan

quickstats likelihood_scan --help

Asymptotic CLs Limit

quickstats cls_limit --help

CLs Limit Scan

quickstats limit_scan --help

Generate Asimov dataset

quickstats generate_standard_asimov --help

Inspect Workspace

quickstats inspect_workspace --help

Create Workspace from XML Cards

quickstats build_xml_ws --help

Modify Workspace from XML Cards or Json Config

quickstats modify_ws --help

Combine Workspace from XML Cards or Json Config

quickstats combine_ws --help

Compare Workspaces

quickstats compare_ws --help

Run Event Loop from Custom Config File

quickstats process_rfile --help

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

quickstats-0.8.1.1.tar.gz (633.4 kB view details)

Uploaded Source

Built Distribution

quickstats-0.8.1.1-py3-none-any.whl (775.8 kB view details)

Uploaded Python 3

File details

Details for the file quickstats-0.8.1.1.tar.gz.

File metadata

  • Download URL: quickstats-0.8.1.1.tar.gz
  • Upload date:
  • Size: 633.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for quickstats-0.8.1.1.tar.gz
Algorithm Hash digest
SHA256 8a53f80a2fd153341c9eba5d5128d089f4811dd31b98b9375925c893793bf43d
MD5 6368837d55ab5434f00fcbdd7e17dbf2
BLAKE2b-256 dbd62ed2c174deb8eef2cf9d444bb0195cbd760e9b36b50970c99e39ce391dba

See more details on using hashes here.

File details

Details for the file quickstats-0.8.1.1-py3-none-any.whl.

File metadata

  • Download URL: quickstats-0.8.1.1-py3-none-any.whl
  • Upload date:
  • Size: 775.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for quickstats-0.8.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd26d8cd80da98890d7502294d5c8f52cd8d18eb3d0fbfe3c012cc56a7c4aba9
MD5 8eeff0b8a11574ce7ee0d4c5a3819163
BLAKE2b-256 d0ab770de7fef8c563a26b73114fd9a5c3573c6021b3a74f820bbcfaa59aa8a6

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