The GSLNLSMInimizer is a special class of minimizer which work only on some specific type of function to minimize and not whatever function.
They can work for example on least square functions or also on negative log-likelihood functions.
You need to pass a function to minimize which inherits from the ROOT::Math::BasicFitMethodFunction interface. See