Added gradient check and changed select
Added gradient check and changed select

Seems to be a problem with the gradient, so trying to print it, but that
proves difficult. After that, tried changing the select statement to a
maximum (that's what it does, really).

roofit-dev/parallel-roofit-scripts,roofit-dev/parallel-roofit-scripts,roofit-dev/parallel-roofit-scripts,roofit-dev/parallel-roofit-scripts,roofit-dev/parallel-roofit-scripts