.. index:: How To's
Below we provide a few examples for using SModelS and some of the :ref:`SModelS tools <smodelsTools>` as a Python library [1].
- How to run SModelS using a parameter file (download the Python code :download:`here <recipes/runWithParameterFile.py>`, IPython notebook :download:`here <recipes/runWithParameterFile.ipynb>`)
- How to run SModelS as a python library (download the Python code :download:`here <recipes/runAsLibrary.py>`, IPython notebook :download:`here <recipes/runAsLibrary.ipynb>`)
- How to load the database (download the Python code :download:`here <recipes/load_database.py>`, IPython notebook :download:`here <recipes/load_database.ipynb>`)
- How to obtain experimental upper limits (download the Python code :download:`here <recipes/lookup_upper_limit.py>`, IPython notebook :download:`here <recipes/lookup_upper_limit.ipynb>`)
- How to obtain experimental efficiencies (download the Python code :download:`here <recipes/lookup_efficiency.py>`, IPython notebook :download:`here <recipes/lookup_efficiency.ipynb>`)
- How to print decomposition results (download the Python code :download:`here <recipes/print_decomposition.py>`, IPython notebook :download:`here <recipes/print_decomposition.ipynb>`)
- How to print theory predictions (download the Python code :download:`here <recipes/print_theoryPrediction.py>`, IPython notebook :download:`here <recipes/print_theoryPrediction.ipynb>`)
- How to compare theory predictions with experimental limits (download the Python code :download:`here <recipes/compareUL.py>`, IPython notebook :download:`here <recipes/compareUL.ipynb>`)
- How to draw SMS graphs (download the Python code :download:`here <recipes/drawingGraphs.py>`, IPython notebook :download:`here <recipes/drawingGraphs.ipynb>`)
- How to use a LHE input including width information (download the Python code :download:`here <recipes/lheLLPExample.py>`, IPython notebook :download:`here <recipes/lheLLPExample.ipynb>`)
- How to compute the likelihood and chi2 for a theory predictions (download the Python code :download:`here <recipes/compute_likelihood.py>`, IPython notebook :download:`here <recipes/compute_likelihood.ipynb>`)
- How to find missing topologies (download the Python code :download:`here <recipes/missingTopologies.py>`, IPython notebook :download:`here <recipes/missingTopologies.ipynb>`)
- How to generate ascii graphs (download the Python code :download:`here <recipes/ascii_graph_from_lhe.py>`, IPython notebook :download:`here <recipes/ascii_graph_from_lhe.ipynb>`)
- How to plot likelihoods from analysis combinations (download the Python code :download:`here <recipes/plotCombinedLikelihood.py>`, IPython notebook :download:`here <recipes/plotCombinedLikelihood.ipynb>`)
- How to use a combinations matrix (download the Python code :download:`here <recipes/combinationsmatrix.py>`, IPython notebook :download:`here <recipes/combinationsmatrix.ipynb>`)
- How to compute leading order cross sections (for MSSM) (download the Python code :download:`here <recipes/lo_xsecs_from_slha.py>`, IPython notebook :download:`here <recipes/lo_xsecs_from_slha.ipynb>`)
- How to compute next-to-leading order cross sections (for MSSM) (download the Python code :download:`here <recipes/nll_xsecs_from_slha.py>`, IPython notebook :download:`here <recipes/nll_xsecs_from_slha.ipynb>`)
- How to obtain upper limits (download the Python code :download:`here <recipes/browserExample2.py>`, IPython notebook :download:`here <recipes/browserExample2.ipynb>`)
- How to select specific results (download the Python code :download:`here <recipes/browserExample3.py>`, IPython notebook :download:`here <recipes/browserExample3.ipynb>`)
- How to make interactive plots (download the Python code :download:`here <recipes/interactivePlotsExample.py>`, IPython notebook :download:`here <recipes/interactivePlotsExample.ipynb>`)
[1] | Some of the output may change depending on the database version used. |