Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quickstats

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quickstats

A tool for quick statistical analysis for HEP experiments

  • 0.8.2.3.1
  • PyPI
  • Socket score

Maintainers
1

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

OptionDescriptionDefault
-i/--input_filePath to the input workspace file-
-w/--workspaceName of workspace. Auto-detect by default.None
-m/--model_configName of model config. Auto-detect by default.None
-d/--dataName of dataset"combData"
-p/--parameterNuisance parameter(s) to run pulls on. Multiple parameters are separated by commas. Wildcards are accepted. All NPs will be run over by default""
-x/--poiPOIs to measure. If empty, impact on POI will not be calculated.""
-r/--profileParameters to profile""
-f/--fixParameters to fix""
-s/--snapshotName of initial snapshot"nominalNuis"
-o/--outdirOutput directory"pulls"
-t/--minimizer_typeMinimizer type"Minuit2"
-a/--minimizer_algoMinimizer algorithm"Migrad"
-c/--num_cpuNumber of CPUs to use per parameter1
--binned/--unbinnedWhether to use binned likelihoodTrue
-q/--precisionPrecision for scan0.001
-e/--epsTolerance1.0
-l/--log_levelLog level"INFO"
--eigen/--no-eigenCompute eigenvalues and vectorsFalse
--strategyDefault fit strategy0
--fix-cache/--no-fix-cacheFix StarMomentMorph cacheTrue
--fix-multi/--no-fix-multiFix MultiPdf level 2True
--offset/--no-offsetOffset likelihoodTrue
--optimize/--no-optimizeOptimize constant termsTrue
--max_callsMaximum number of function calls-1
--max_itersMaximum number of Minuit iterations-1
--parallelParallelize job across different nuisanceparameters using N workers. Use -1 for N_CPU workers.0
--cache/--no-cacheCache existing resultTrue
--excludeExclude 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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc