diff --git a/scripts/checkTrackSelection.py b/scripts/checkTrackSelection.py index 2daab24..653fdd3 100644 --- a/scripts/checkTrackSelection.py +++ b/scripts/checkTrackSelection.py @@ -3,7 +3,7 @@ # @Author: Elena Graverini # @Date: 2015-10-27 18:26:49 # @Last Modified by: Elena Graverini -# @Last Modified time: 2017-05-22 16:59:06 +# @Last Modified time: 2017-05-22 17:01:53 import sys import os from math import sqrt @@ -257,7 +257,7 @@ def myTFunc(name, classname, func, func_range, par_names, par_inits=[], par_limits=[]): n_pars = len(par_names) - f = r.__getattr__(classname)(name, MyFitFunction(func), *func_range, n_pars) + f = r.__getattr__(classname)(name, MyFitFunction(func), *(func_range + (n_pars,))) f.SetParNames(*par_names) if par_inits: f.SetParameters(*par_inits)