ERROR:InputArguments -- RooBinning::binEdges ERROR:bin number must be in range

It seems you have wrong inout arguments.
May be @moneta can give some hints.