SMEFTglob

Common functions used to calculate likelihood values and pulls of the fits.

SMEFT19.SMEFTglob.fastmeas(obs)[source]

Checks if the observable is part of a <<fast-measurement>> in smelli.

SMEFT19.SMEFTglob.likelihood_fits(x, wfun)[source]

Calculates the log-likelihood of a NP hypothesis for several classes of observables.

Arguments
  • x: Point in parameter space to be evaluated.

  • wfun: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents.

Returns
  • A dictionary of log-likelihoods, for each of the classes of observables defined by smelli.

SMEFT19.SMEFTglob.likelihood_global(x, wfun)[source]

Calculates the global log-likelihood of a NP hypothesis.

Arguments
  • x: Point in parameter space to be evaluated.

  • wfun: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents.

Returns
  • The global log-likelihood.

SMEFT19.SMEFTglob.loadobslist(new=False)[source]

Loads from a .yaml file a list of all observables available, ordered by their pull in the SM. If the file does not exist, this functions creates it.

Returns
  • A list with all observables available.

SMEFT19.SMEFTglob.newlist()[source]

Creates a .yaml file with a list of all observables available, ordered by their pull in the SM.

SMEFT19.SMEFTglob.prediction(x, obs, wfun)[source]

Interfaces flavio to compute the NP prediction of a given observable.

Arguments
  • x: Point in parameter space to be evaluated.

  • obs: observable, as defined by flavio, whose prediction will be computed. If the observable does not depend on any parameter, obs is a string. If the observable depends on numerical parameters (such as q2), obs is a list containing a string and one or more floats.

  • wfun: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents.

Returns
  • The prediction of the observable.

SMEFT19.SMEFTglob.pull_obs(x, obs, wfun)[source]

Calculates the pull, in sigmas, of the prediction of a given observable in NP with respect to its experimental value.

Arguments
  • x: Point in parameter space to be evaluated.

  • obs: observable, as defined by flavio, whose prediction will be computed. If the observable does not depend on any parameter, obs is a string. If the observable depends on numerical parameters (such as q2), obs is a list containing a string and one or more floats.

  • wfun: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents.

Returns
  • The pull of the observable.

SMEFT19.SMEFTglob.restart_smelli(include_likelihoods=None, add_measurements=None, remove_measurements=None, custom_likelihoods=None)[source]

Re-starts smelli’s Global Likelihood with new parameters.

Arguments
  • include_likelihoods: If not None, only the specified likelihoods will be included.

  • add_measurements: Adds more experimental measurements not included by smelli.

  • remove_measurements: Removes more experimental measurements not included by smelli.

  • custom_likelihoods: Adds new likelihoods.