How To's
Below we provide a few examples for using SModelS and some of the SModelS tools <smodelsTools>
as a Python library1.
- How to run SModelS using a parameter file (download the Python code
here <recipes/runWithParameterFile.py>
, IPython notebookhere <recipes/runWithParameterFile.ipynb>
) - How to run SModelS as a python library (download the Python code
here <recipes/runAsLibrary.py>
, IPython notebookhere <recipes/runAsLibrary.ipynb>
)
- How to load the database (download the Python code
here <recipes/load_database.py>
, IPython notebookhere <recipes/load_database.ipynb>
) - How to obtain experimental upper limits (download the Python code
here <recipes/lookup_upper_limit.py>
, IPython notebookhere <recipes/lookup_upper_limit.ipynb>
) - How to obtain experimental efficiencies (download the Python code
here <recipes/lookup_efficiency.py>
, IPython notebookhere <recipes/lookup_efficiency.ipynb>
) - How to print decomposition results (download the Python code
here <recipes/print_decomposition.py>
, IPython notebookhere <recipes/print_decomposition.ipynb>
) - How to print theory predictions (download the Python code
here <recipes/print_theoryPrediction.py>
, IPython notebookhere <recipes/print_theoryPrediction.ipynb>
) - How to compare theory predictions with experimental limits (download the Python code
here <recipes/compareUL.py>
, IPython notebookhere <recipes/compareUL.ipynb>
) - How to compute the likelihood and chi2 for a theory predictions (download the Python code
here <recipes/compute_likelihood.py>
, IPython notebookhere <recipes/compute_likelihood.ipynb>
) - How to find missing topologies (download the Python code
here <recipes/missingTopologies.py>
, IPython notebookhere <recipes/missingTopologies.ipynb>
) - How to generate ascii graphs (download the Python code
here <recipes/ascii_graph_from_lhe.py>
, IPython notebookhere <recipes/ascii_graph_from_lhe.ipynb>
) - How to marginalize a combined limit instead of profiling it (download the Python code
here <recipes/marginalize.py>
, IPython notebookhere <recipes/marginalize.ipynb>
)
- How to compute leading order cross sections (for MSSM) (download the Python code
here <recipes/lo_xsecs_from_slha.py>
, IPython notebookhere <recipes/lo_xsecs_from_slha.ipynb>
) - How to compute next-to-leading order cross sections (for MSSM) (download the Python code
here <recipes/nll_xsecs_from_slha.py>
, IPython notebookhere <recipes/nll_xsecs_from_slha.ipynb>
)
- How to obtain upper limits (download the Python code
here <recipes/browserExample2.py>
, IPython notebookhere <recipes/browserExample2.ipynb>
) - How to select specific results (download the Python code
here <recipes/browserExample3.py>
, IPython notebookhere <recipes/browserExample3.ipynb>
)
- How to make interactive plots (download the Python code
here <recipes/interactivePlotsExample.py>
, IPython notebookhere <recipes/interactivePlotsExample.ipynb>
)
Some of the output may change depending on the database version used.↩