Skip to content

Statistical inference

How to run limits

  1. As a temporary workaround, if you want to run multiplie commands, to avoid delays to load environment each time run:

    cmbEnv /bin/zsh # or /bin/bash
    
    Alternatively add cmbEnv in front of each command. E.g.
    cmbEnv python3 -c 'print("hello")'
    

  2. Create datacards.

    python3 StatInference/dc_make/create_datacards.py --input PATH_TO_SHAPES  --output PATH_TO_CARDS --config PATH_TO_CONFIG
    
    Available configurations:

  3. Run limits.

    law run PlotResonantLimits --version dev --datacards 'PATH_TO_CARDS/*.txt' --xsec fb --y-log
    
    Hints:

    • use --workflow htcondor to submit on HTCondor (by default it runs locally)
    • add --remove-output 4,a,y to remove previous output files
    • add --print-status 0 to get status of the workflow (where 0 is a depth). Useful to get the output file name.
    • for more details see cms-hh inference documentation