Skip to main content

A tool for quick statistical analysis for HEP experiments

Project description

Setup

Clone the repository:

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

To setup:

source setup.sh

For the first time:

quickstats compile

Run Pulls

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 Pulls

quickstats plot_pulls --help

Run Likelihood Scan

quickstats likelihood_scan --help

Inspect Workspace

quickstats inspect_ws --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.4.1.tar.gz (63.1 kB view details)

Uploaded Source

Built Distribution

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

quickstats-0.4.1-py3-none-any.whl (76.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quickstats-0.4.1.tar.gz
  • Upload date:
  • Size: 63.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.10

File hashes

Hashes for quickstats-0.4.1.tar.gz
Algorithm Hash digest
SHA256 0ccd60a25bba1b5dca03e00719b1b66c5cb64ca8bd88f491e044e0c6f6804472
MD5 969b7afafadc17e43d5b3962a6da8b57
BLAKE2b-256 f940521d26c816a7c7ecd4f0c85e3b2aafbd320c7b3ef3230232e6cb36ccc0e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quickstats-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 76.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.10

File hashes

Hashes for quickstats-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee5a7ffb28e767795e72412d9f05b5526b3daf6f214347da482ed40e1cf340a2
MD5 a1fdddf1a3cf1232248abf362eee8222
BLAKE2b-256 739ea36b10f649e934dbf01a696dd273eb53b38509cb9d148e948799ec70725f

See more details on using hashes here.

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