contur.config package

Submodules

contur.config.config module

Global configuration class setting default behaviour. Importing contur loads all of the following

Module members:

Where these are setable from the command line of a given script, see ` --help` for documentation.

  • spey_models_config (dict) each key is an analysis, the value is a dictionary with a ‘name key containing the name of the spey model to use

  • spey_calculations_config (dict) each key is the name of a computation, the value is a dictionary with the spey function name and any options passed to it

Default file names

  • mceg_template (default “herwig.in”)

  • paramfile (default “params.dat”)

  • tag (default “runpoint”)

  • param_steering_file (default “param_file.dat”)

  • output_dir (default ANALYSIS)

  • batch_output_dir (default myscan00)

  • config_file (default “config.dat”)

  • unneeded_files (default [“herwig.run”,”Looptools.log”, “py.py”, “mgevents”]) These files will be removed when runing `contur-gridtool`

These are used internally, set from other conditions.

  • silenceWriter (bool) – Disables a lot of plotting output, for when it is not needed (eg in grid mode).

  • contur_log (logging.logger) logger object

  • stat_types [“DATABG”,”SMBG”,”EXP”,”HLEXP”] This indexes different ways of evaluating a likelihood.

    DATABG: using the data as the background. Off by default. SMBG: if we have the Standard Model prediction, we evaluate the exclusion using this as the background too. EXP: this is the expected limit. Evaluated by moving the data central value to the SM prediction (when we have one) HLEXP: this is the expected limit. Evaluated as above, but reducing the uncertainties by sqrt of lumi ratio to the projected HL-LHC

exception contur.config.config.ConturError[source]

Bases: Exception

contur.config.config.setup_logger(filename='contur.log', logstream=None, level='ERROR')[source]

set up the logger object

Parameters:

filename – name of log file

contur.config.paths module

contur.config.paths.data_path(*relpaths)[source]

Get the complete path to a sub-path in the user’s local Contur installation

contur.config.paths.root_path()[source]

Get the root paths of the contur installation

contur.config.paths.user_path(*relpaths)[source]

Get the complete path to a sub-path in the user’s local Contur installation

contur.config.version module

set the version number

Module contents