template_functions

Documentation for the functions in the template_fit.template_functions module:

template_fit.template_functions.initialize_library()[source]

Function that loads into the Python environment the shared library containing the fit functions, via the Declare and CompileMacro methods.

template_fit.template_functions.DoubleGaussian(func_limits, funcname='DoubleGaussian', pars=(100000.0, 0.16, 5.28, 0.08, 5.29, 0.04))[source]

Function that creates a ROOT::TF1 object consisting in a weighted sum of two Gaussians; its expression is written in a C++ shared library and is imported in the Python environment by the InitializeFunctionsLibrary() function.

Parameters:
  • func_limits (tuple[float]) – Limits of the axis where the function is defined

  • funcname (str) – Name of the TF1 created

  • pars (tuple[float]) – Initial parameters given to the function

Returns:

The corresponding ROOT function

Return type:

ROOT::TF1

template_fit.template_functions.GaussJohnson(func_limits, funcname='Gauss+Johnson', pars=(100000.0, 0.991, 1.57, 0.045, 5.29, 1.02, 5.28, 0.00043))[source]

Function that creates a ROOT::TF1 object constisting in a weighted sum of an SU-Johnson and a Gaussian; its expression is written in a C++ shared library and is imported in the Python environment by the InitializeFunctionsLibrary() function.

Parameters:
  • func_limits (tuple[float]) – Limits of the axis where the function is defined

  • funcname (str) – Name of the TF1 created

  • pars (tuple[float]) – Initial parameters given to the function

Returns:

The corresponding ROOT function

Return type:

ROOT::TF1