How to make fit with log-likelihood method using TGraphErrors

It seems to me that you need to write your own “likelihood function”, and then you can use the "U" graph fit option, or maybe better: